cake-vscode icon indicating copy to clipboard operation
cake-vscode copied to clipboard

Fix IntelliSense not working sometimes when it cannot find the Cake .NET Global Tool

Open augustoproiete opened this issue 3 years ago • 0 comments

... Once https://github.com/cake-build/bakery/issues/125 is fixed.


It seems that in some scenarios the .NET Global Tool is installed and appears to be in the %PATH% but when you actually try to run it (e.g. via Process.Start) the OS can't find it for some reason.

I mentioned this issue before on Slack and recently @AndaBucsa reported a similar issue.

I also had a very similar issue with the Rider extension and @nils-a was able to fix it in https://github.com/cake-build/cake-rider/issues/78 by searching for the .NET Tool in the expected installation path %USERPROFILE%\.dotnet\tools\ (Windows) and $HOME/.dotnet/tools/ (Unix-like), and we think the same fix could be applied to Bakery.

augustoproiete avatar Feb 20 '21 03:02 augustoproiete