Coder Social home page Coder Social logo

Comments (9)

jpele-tis avatar jpele-tis commented on August 15, 2024

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.

andriati-alex avatar andriati-alex commented on August 15, 2024

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.

pappasam avatar pappasam commented on August 15, 2024

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.

andriati-alex avatar andriati-alex commented on August 15, 2024

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.

regob avatar regob commented on August 15, 2024

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.

rohit901 avatar rohit901 commented on August 15, 2024

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.

zengziru avatar zengziru commented on August 15, 2024

I have the same question!!!

from jedi-language-server.

davidhalter avatar davidhalter commented on August 15, 2024

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.

zengziru avatar zengziru commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.