-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
Simplify vscode-playground setup and fix Python discovery #374
Conversation
Glad to hear it!
Would you mind quickly trying it with the
Yes :)
Ok, I'll look at expanding on the README a bit more - do you mind if I pinch your screenshots? |
Oh! It's amazing what rough edges you gloss over when you're used to something. 😅 That's how it works for me as well. You should be able to use the Once setup VsCode should remember the choice for future sessions. Another step to go in README... |
Alternatively.... Perhaps it's better to move the |
OMG I know, so true 😅
It doesn't seem to in my case. Again, I might be doing something wrong, but even once I've selected the
Hmm, yes, I suppose that might be what's needed. |
So strange! :/ @karthiknadig I don't suppose you'd able to take a quick look at this function and see if I'm missing anything obvious. It should allow people to use Otherwise, I'll look into moving things around. |
When calling |
6282f17
to
6c6e4bf
Compare
@tombh I wonder if we should merge this? I did have a go at moving the At the very least the simplified folder structure should be an improvement and we have a few workarounds if discovery fails
Ideally it should Just WorkTM, but I'm not sure what else to try at this point |
Sure, let's merge it. I think they're relatively minor issues really. The main thing is that there are workarounds. And having it merged might give it more exposure and more feedback and ideas. |
Along with the simpler single-root setup, this introduces a new `pygls.server.pythonPath` option that if set, will be used instead of the interpreter discovered via the Python extension. The interpreter discovery code has also been updated to be explicit about what it's trying to use the interpreter with - in an attempt to work in more scenarios
6c6e4bf
to
8229054
Compare
Shall I merge this then? 🚀 |
@tombh go for it :) |
Done. And a little point release as well to celebrate? |
Aren't we waiting to hear back about the impact of #411? |
* Remove dependency on `typeguard` by @karthiknadig in #411 * Simplify vscode-playground setup and fix Python discovery by @alcarney in #374
* Remove dependency on `typeguard` by @karthiknadig in #411 * Simplify vscode-playground setup and fix Python discovery by @alcarney in #374
* Remove dependency on `typeguard` by @karthiknadig in #411 * Simplify vscode-playground setup and fix Python discovery by @alcarney in #374
* Remove dependency on `typeguard` by @karthiknadig in #411 * Simplify vscode-playground setup and fix Python discovery by @alcarney in #374
* Remove dependency on `typeguard` by @karthiknadig in #411 * Simplify vscode-playground setup and fix Python discovery by @alcarney in #374
Description (e.g. "Related to ...", etc.)
This attempts to fix the issues seen in #357
@tombh @z80dev, would you mind trying this out and seeing if it fixes your issues?
examples/workspace/
into theexamples/servers/
directory.examples/servers
folder by defaultpygls.server.pythonPath
option to override the interpreter selection made by the extension (basically how thejson-extension
used to work)settings.json
file is now included so should be easier for the user to start tweaking valuesThere was also a bug in how the
json_server.py
handled theworkspace/diagnostic
request when no documents were open - that should be fixed nowCode review checklist (for code reviewer to complete)