question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support dynamic changes of search paths in language server

See original GitHub issue

Environment data

  • VS Code version: 1.27.0-insiders
  • Extension version (available under the Extensions sidebar): 2018.8.0-alpha
  • OS and version: 10.14
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7.0
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): N/A
  • Relevant/affected Python packages and their versions: N/A

Actual behavior

I have a list of Python packages that are not installed in site-packages under python.autoComplete.extraPaths. Jedi uses those paths to provide completions. The new LS does not seem to recognise them. I also get IntelliSense linter warnings when importing those packages, which doesn’t happen with Jedi.

Expected behavior

The LS should treat the packages under python.autoComplete.extraPaths as if they were normally installed libraries.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

1reaction
MikhailArkhipovcommented, Aug 15, 2018

Ah, that is true. LS needs to be restarted when search paths change (Reload Window command is sufficient). I will rename the issue instead.

0reactions
DonJayamannecommented, Sep 13, 2019

Closing as this has been resolved upstream.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Language Server Protocol Specification - 3.17
This document describes the 3.17.x version of the language server protocol. ... that a client needs to support is 'i' to specify a...
Read more >
VSCode JSON Language Server - GitHub
The JSON language server supports requests on documents of language id json and jsonc . json documents are parsed and validated following the...
Read more >
Language Server Extension Guide - Visual Studio Code
Learn how to create Language Servers to provide rich language features in Visual Studio Code.
Read more >
Extending a client with the language server protocol
There is currently no support for binary documents. So, we can only use the LSP with text-based files. Hence the name text documents....
Read more >
Directory and Search Path Preferences
This section describes the preferences for directories and search paths. ... searches for include files and programs written in the IDL language (.pro...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found