Skip to content

Language Server does not work with PYTHONPATH=./ #5036

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DonJayamanne opened this issue Apr 1, 2019 · 2 comments
Closed

Language Server does not work with PYTHONPATH=./ #5036

DonJayamanne opened this issue Apr 1, 2019 · 2 comments
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug

Comments

@DonJayamanne
Copy link

DonJayamanne commented Apr 1, 2019

  • Open the behave repo
  • Use python 3.7
  • OS Mac
  • Enable the following in settings.json
	"python.analysis.downloadChannel": "daily",
	"python.analysis.logLevel": "Trace",
  • Add a .env file with the following contents:
PYTHONPATH=./

Delete the above .env file then it works

None of the Language Server functionality works

Screen Shot 2019-03-31 at 7 32 02 PM

@ghost ghost added the triage-needed Needs assignment to the proper sub-team label Apr 1, 2019
@DonJayamanne DonJayamanne changed the title Language Server does not work in behave repo Language Server does not work with PYTHONPATH=./ Apr 1, 2019
@DonJayamanne DonJayamanne added bug Issue identified by VS Code Team member as probable bug upstream-language server labels Apr 1, 2019
@ghost ghost removed triage-needed Needs assignment to the proper sub-team labels Apr 1, 2019
@DonJayamanne DonJayamanne added the area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. label Apr 1, 2019
@dzpt
Copy link

dzpt commented Apr 15, 2019

It doesn't work either if i set PYTHONPATH on any path on macos?
I need python to work on external local package so i set PYTHONPATH to one shared package and intellisense doesn't work either.

  • project : /var/www/pyweb/
  • package: /var/www/packagetoshare/

PYTHONPATH=/var/www/

Inside pyweb, i already install packagetoshare by pip install -e ../packagetoshare/
Everything works excepts intellisense

@luabud
Copy link
Member

luabud commented Sep 11, 2019

Fixed upstream.

@luabud luabud closed this as completed Sep 11, 2019
@ghost ghost removed the needs upstream fix label Sep 11, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Sep 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-intellisense LSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc. bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants