-
-
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
Cannot run the json-extension example #193
Comments
Closing because even though I still haven't been able to run the JSON example, I can run the minimal server example instead. |
@limdauto I just cloned a fresh repo and install everything from scratch and I can't reproduce the issue. Which version of npm and node do you have? I am testing with |
I am seeing the same issue, I don't think it makes sense to close the ticket. I am running |
I just realized my issue is probably because I am running it over remote-ssh, although forwarding the debug port doesn't immediately resolve the issue. |
Digging into this more, for whatever reason, even though I have my python path set up to point to a 3.6.8 version of python and I can see it being called in the command when I launch the debug tasks, the client output states the python server failed and shows it attempted to use a 2.7 executable. I am not sure where it is getting that path. |
I have traced my particular issue to the client not picking up the |
Hi @DeeeeLAN, you can use the ExtensionContext.extensionMode to check if you are running in debug mode (Development). It would be something like this: export async function activate(context: ExtensionContext) {
if (context.extensionMode === ExtensionMode.Development) {
// Development mode
} else {
// Production or Test mode
}
} |
@DeeeeLAN Included example shows how to use pygls SDK and it is working well if you follow steps from Readme. You can try what @davelopez suggested above and if it is working for you, please create a PR to replace |
Thanks, that appeared to work great. |
Hi,
I'm trying to run the JSON extension example. I tried to follow the README but couldn't get it working. Generally, what I was doing was:
However, whenever I try to execute a command, it keeps saying the command is not found. Do you have any recommendation how I could debug this?
The text was updated successfully, but these errors were encountered: