-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add support for VSCode Remote scenarios #99
Comments
This will cause VS Code to always run it where the workspace files are (i.e. remote, if connected remotely). #99
Published v0.4.4 of MSBuild Project Tools extension to the gallery. @geniuskamo - here is the Codespace-enabled repository I've been testing with: https://github.com/tintoy/msbuild-project-tools-codespace-demo |
Thank you @tintoy |
How do I use this ? |
I'm also trying to run this, I'm using v0.4.5 inside a Dev Container. The language server doesn't appear to be working for me |
Are you on the latest version of the extension? There is a setting to turn up the log level for MSBuild Project Tools - can you try setting that to “Verbose” and trying again? |
msbuild-project-tools-vscode/package.json Line 53 in ea103ed
|
I tried setting the logging level to verbose for the devcontainer.json and also the .vscode settings.json. It did not give any additional output other than what I screenshotted above. I am connecting to the dev container using VSCode's built in ssh client if that matters |
Hmm - I can’t say I’ve seen that one before. I’ll have a look tonight after work and see if I can reproduce the problem. Just out of curiosity, what is the output of |
The extension is executing within the container. My VSCode instance on the laptop is connecting to that container. From Container
From Container Host
From Host (my laptop)
|
Sorry, one last question - what version of the extension is VSCode showing (both local and remote)? |
Both local and remote have v0.4.5 installed |
Ok - it looks like it’s failing because there is no If you add a I’m trying to work out whether we have to somehow guess if that section is present or not… |
Ok, it looks like they finally added support for directly listing SDKs and runtime versions: I’ll have a go at switching over to using this instead of parsing the output of |
If you create a pre-release I could test your change in my container |
Sure no problem - will let you know as soon as I have something to test 🙂 |
Sorry, am still working on this - work has been a little hectic this week 🙂 Should be ready soon. |
@loligans - can you try this build? I think the extension should now have a better chance at handling various forms of output from the |
Yes, how can I install it into my container? I don't see a new version when I choose "Install Another Version" in the extension settings |
I tried going back to v0.4.4 and the language server works again. I will still try your build when it becomes available :) |
Sorry, it's been a long day - I meant to upload the package as an attachment to that comment 😂 msbuild-project-tools-0.4.6-dev.zip You may need to explicitly uninstall the extension version from the marketplace before you install from the VSIX package (Extensions -> Install from VSIX) and, afterwards, you can do the reverse to go back to automatic updates. |
Haha no problem! I just tested your fix and its working! |
Great - thanks for testing! I’ll make sure nothing else is broken and then publish a new version of the extension to the gallery. |
Published v0.4.6 of the extension to the gallery (the .NET-side language server implementation is also more robust now). |
Latest version running in the container gives me this exception:
|
I think I spoke too soon, sorry. I simply rebuilt the container and it started working again. I appreciate your awesome work by supporting this extension! If you had a sponsor link for the project where I could donate to support, I would definitely like to do that |
What do you get when you run |
All good, I'm just relieved that it's working for you 🙂 I'll try to improve the error message though. |
See https://code.visualstudio.com/api/advanced-topics/remote-extensions and https://code.visualstudio.com/api/advanced-topics/extension-host for details
The text was updated successfully, but these errors were encountered: