Comments (9)
I've got the same issue here microsoft/vscode-python#21265
So last working version on VSCode was jedi-language-server==0.34.12 used in Python extension 2021.12.*
from jedi-language-server.
Apparently, this is not only in vscode, but I'm using neovim and algo get the same problem. Completions for builtin libs fine, but for any external package no sign
from jedi-language-server.
Apparently, this is not only in vscode, but I'm using neovim and algo get the same problem. Completions for builtin libs fine, but for any external package no sign
Have you activated your virtual environment before opening Vim? I'm using neovim, just tested out completions from a 3rd party package, and things work fine for me.
from jedi-language-server.
Apparently, this is not only in vscode, but I'm using neovim and algo get the same problem. Completions for builtin libs fine, but for any external package no sign
Have you activated your virtual environment before opening Vim? I'm using neovim, just tested out completions from a 3rd party package, and things work fine for me.
Yes, in my setup I use the Mason plugin to install the language servers, and apart from that, I have the virtual environment I work on properly activated, and yet no completions for third part packages
from jedi-language-server.
I have the same issue with VSCode.
It seems when initializing the language server options the environment is not passed. If I print the environment path where the lsp is initialized, it's None already. So I gues this should be passed somehow.
Enabling verbose mode using
sys.argv += ['-v']
sys.exit(cli())
when starting the language server in the vscode extension the messages are printed, and I don't see VSCode passing the environment anywhere
2023-11-17 11:04:44.535 [info] INFO:pygls.protocol:Language server initialized InitializeParams(... LOTS OF PARAMS ..., client_info=InitializeParamsClientInfoType(name='Visual Studio Code', version='1.84.2'), locale='en', root_path='/home/rego/.vscode-server/extensions/ms-python.python-2023.20.0', root_uri='file:///home/rego/.vscode-server/extensions/ms-python.python-2023.20.0', initialization_options={'markupKindPreferred': 'markdown', 'completion': {'resolveEagerly': False, 'disableSnippets': True}, 'diagnostics': {'enable': True, 'didOpen': True, 'didSave': True, 'didChange': True}, 'hover': {'disable': {'keyword': {'all': True}}}, 'workspace': {'extraPaths': ['/home/rego/.vscode-server/extensions/ms-python.python-2023.20.0'], 'symbols': {'maxSymbols': 0}}}, trace=<TraceValues.Off: 'off'>, work_done_token=None, workspace_folders=[WorkspaceFolder(uri='file:///home/rego/.vscode-server/extensions/ms-python.python-2023.20.0', name='ms-python.python-2023.20.0')])
from jedi-language-server.
Any fix for this? I seem to have similar problem and I have described it in coder/code-server#6619
I hope this can be fixed..
from jedi-language-server.
I have the same question!!!
from jedi-language-server.
You guys have to help us somehow with what's actually going wrong. It feels like the wrong environment is detected. But why is the wrong environment detected? What is special about your installations? How many Python versions have you installed? Are you using virtualenvs? What is your editor/IDE?
Writing "I have the same question!!!" is not helpful at all. If you want us to put in work always think of us as humans, too. Try to put in your absolute best into helping us solve the problem.
from jedi-language-server.
You guys have to help us somehow with what's actually going wrong. It feels like the wrong environment is detected. But why is the wrong environment detected? What is special about your installations? How many Python versions have you installed? Are you using virtualenvs? What is your editor/IDE?
Writing "I have the same question!!!" is not helpful at all. If you want us to put in work always think of us as humans, too. Try to put in your absolute best into helping us solve the problem.
OK,I have solved the problem this afternoon, just download "Pyright" extention from vscode market, it can solve all problems. Because of the consideration of security, I have to use "code-server" to attach the server, but "Pylance" can not be used in code-server. So I have to use jedi, while it seems that it can not detect the virtual conda environment automatically...
So just use "Pyright", it can solve all problems. Thank you for all efforts trying to solve the problem for almost one year.
from jedi-language-server.
Related Issues (20)
- Make `textDocument/documentSymbol` ignore imported symbols
- Variable type not showing in hover window HOT 1
- Unrecoverable error when upgrading from 0.41.1 to 0.41.2 HOT 3
- Problems with import resolution HOT 4
- ValueError: `column` parameter (1) is not in a valid range (0-0) for line 14 ('\n') HOT 1
- Renaming variables broken in VSCode
- Language server crashes when using rtx 3.12 installation of python. HOT 5
- Parentheses autocompletion in VSCode+Python Extension HOT 5
- jedi-language-server crashes right after start with failed import HOT 2
- Why is Go to implementation not implemented? HOT 1
- Upgrading docstring-to-markdown to 0.15 breaks tests HOT 1
- "E15: Invalid expression: " when pressing enter for newline in neovim HOT 1
- Variable detection is amiss HOT 1
- Redundant parentheses added when autocompletion in lazyvim(nvim)
- test_publish_diagnostics_on_change fails on Darwin HOT 3
- feature request: filter out special methods / magic methods from completion HOT 2
- workspace.symbols.ignoreFolders does not apply to `textDocument/references` HOT 1
- Not disable hover
- Allow customization of Jedi settings in VSCodium
- External pytest fixtures not autocompleted
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jedi-language-server.