Intellisense stops working on Ubuntu 22.10 when project file contains custom target that executes npm run sass
- Dominant language
- TypeScript
- Stars
- 3.1k
- Forks
- 737
- Avg merge
- 18h 40m
- Merged PRs (30d)
- 31
Description
VSCode 1.75.0 running on Ubuntu 22.10
I have a set of projects where Intellisense just stops working. Everything seems fine on Windows but not on Ubuntu.
The problem can easily reproduced, just clone the following repo: https://github.com/chrissainty/blazor-in-action.git and open the chapter-11/BlazingTrails folder in VSCode. Then go to any .cs file and notice that there is no code lens or Intellisense.
Here is the output of the log. I did try the Trace log level but couldn't see anything additional of use. Omnisharp simply stops at the last step.
```
[info]: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file '/home/peter/github/blazor-in-action/chapter-11/BlazingTrails/BlazingTrails.Tests/BlazingTrails.Tests.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
Adding project '/home/peter/github/blazor-in-action/chapter-11/BlazingTrails/BlazingTrails.Tests/BlazingTrails.Tests.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
Update project: BlazingTrails.Client
[info]: OmniSharp.MSBuild.ProjectManager
Update project: BlazingTrails.Shared
[info]: OmniSharp.MSBuild.ProjectManager
Update project: BlazingTrails.Api
[info]: OmniSharp.MSBuild.ProjectManager
Update project: BlazingTrails.ComponentLibrary
[info]: OmniSharp.MSBuild.ProjectManager
Update project: BlazingTrails.Tests
```
I have narrowed down the problem to the following in the .csproj files for the Client and ComponentLibrary:
```XML
```
The problematic line is the Exec Command. Removing it solves the problem.
When this line is removed, the following additional content is output in the log:
```
[info]: OmniSharp.Roslyn.CSharp.Services.Diagnostics.CSharpDiagnosticWorkerWithAnalyzers
Solution initialized -> queue all documents for code analysis. Initial document count: 88.
```
Contributor guide
Assessment
This issue has not been assessed yet.