-
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
Initialising MSBuild project tools... #42
Comments
No, it definitely shouldn't do that - if you go to the output window and choose MSBuild Project Tools from the drop-down are there any errors in the log? |
Hmm, in that case it sounds like the language server doesn't even launch successfully. Can you try opening a command prompt and running |
Same problem here.
|
Hmm, ok, let's try a couple of things to troubleshoot:
|
|
And can you confirm what version of the extension you have installed? Should be |
Looking at your output, I think there may be a problem due to This wouldn't explain why the language server process won't launch at all though. |
One more setting to enable:
|
Ugh, looks like there was a bug with parsing of extension settings so the settings specified above will have no effect. I'm about to publish |
Just launched VS Code and it updated to |
Odd, but good to hear :) |
Probably related to #43 (should be fixed in v0.2.45, which was published a couple of minutes ago). |
Uh uh, v0.2.45 on Code 1.29 is broken again on a localized version of Win10. Do you need the same telemetry mentioned as earlier in this thread? |
Yes, please! |
I've added the Can I just confirm the behaviour you're seeing? Is it that it gets stuck on "Initialising MSBuild Project Tools..."? If so, then yeah I'll need you to enable logging to file so we can work out what's going on... |
Is that when you run it from the command-line? |
No, that's VS Code running it. When I run it from the command line, it exits just fine. |
Ok, can you try enabling the logging (etc) mentioned above and post the resulting log file (if any)? |
OK, now running at v0.2.46, VS Code 1.29.1, and .NET Core SDK 2.1.500, but it's still stuck at "Initialising…".
I also don't see any log file being written. Should |
It should point to a file (the file does not have to exist before running). |
BTW, I'm publishing a new version of the extension (v0.2.47) which has more logging during language server startup which may help when troubleshooting. @joergjo when you try it out, can you also make sure that |
OK, so after updating to v0.2.47 the extension works again. Was that expected? |
Nope, only changes were some extra logging statements during start-up :) Perhaps it's something environmental? |
Ok, I'm at work so I can't look further into this until later this evening but I'll try again tonight and see if I can do anything to improve the extension-side logging / error reporting. Can I just confirm - are you on Windows, Linux, or Mac? |
I'm on Windows. BTW here's my
|
Thanks! I'll take a look as soon as I can :) |
Just as a quick experiment, if you temporarily move the directory If not, I'll try installing the latest 3.x preview SDK when I get home and give it a try myself. |
…arger than the process STDOUT buffer. #42
I have found and fixed an issue where But it has exposed a separate issue; if you have a .NET Core v3.x preview SDK installed, you won't be able to load projects unless you have a You may be able to work around the issue (once I've released a new build of the extension) by setting the |
Published v0.2.49 - can you give it a try and see how far you get? |
Thanks! This works fine on my work computer (where I don't have the v3 SDK installed). The previous version didn't work. |
Good news, it works for me as well and I also found why logging didn't before. It seems that at some point I've accidentally created an invalid user setting section for |
I tested it a bit on my home PC with the v3 SDK. Evaluation works fine, but completion inside |
No problem glad it's working now :) Do other completions work for you, or none at all? Support for expression completions should work so if it's not, feel free to open a new issue. If possible, post the project file you're working with and where you're expecting a completion (line and column). |
Just remembered - if you want intellisense for expressions make sure the editor language is "MSBuild", not "XML". |
Closing this issue for now, since it seems to be resolved. Feel free to reopen if the problem occurs again :) |
facepalm Yeah, the file mode was XML actually, but I didn't pay attention since I still got the tooltips from the extension. I didn't expect this extension to be active in XML mode at all. So yeah, completion works fine now, thanks! 😉 |
Still applies today (v0.2.54), check your settings for an invalid section. |
I'm running Linux, and I have the same issue after upgrading my dotnet core to 3.0. I tried
But that did not help. Is there any other way to fix that or should I just wait for the update? |
I’m still having trouble making this happen on demand for some reason - can you tell which distro and version of Linux you are running? And can you post the output of I’m going to see if I can get you to capture a dump of the hung process (but I’m not sure how to do this for Linux yet). |
Here is my
|
Note to self: give |
You can try installing Ubuntu in virtual machine and installing dotnet core 3.0 + vscode there. |
Will do, just need to free up some space on my laptop’s SSD :) |
Ok - finally got to try this out (sorry for the delay). I think the problem may be that you have only the 3.0 runtime installed (which comes with the 3.0 SDK), not the 2.0 runtime (the language server targets https://dotnet.microsoft.com/download/linux-package-manager/ubuntu16-04/runtime-2.0.9 |
Yeah, the issue seems to be fixed 👍 Although keeping 2 different versions is not the best solution. |
Yeah I’ll have to upgrade to .NET Core 3 - hopefully over the weekend :) |
Hi there, I've been having the same issue on Ubuntu 19.04. I ran
Do you believe the 2.0 runtime might have this missing library as well? |
Maybe this issue could be opened back up? I was about to create a new one and just so happened to check the closed issues. |
Hi - there is an issue tracking the upgrade to 3.0 in the language server repository (tintoy/msbuild-project-tools-server#17). I’m hoping to get this done sometime tomorrow :) |
I am using the extension for my build projects, now I am getting a circle icon stating that "Initialising MSBuild project tools..."
And this stays forever. Is this the expected behavior?
The text was updated successfully, but these errors were encountered: