-
Notifications
You must be signed in to change notification settings - Fork 672
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
[fail]: OmniSharp.MSBuild.ProjectLoader Unable to create directory "obj\Debug\netcoreapp3.1\RazorDeclaration\**\". Illegal characters #3527
Comments
@NTaylorMullen Is this a folder that you maintain? |
Ya it is at our SDK layer. I'd imagine this would rear its head via @JDillon522 does this happen when you |
@NTaylorMullen I'm not sure. I can check. I discovered the root issue was the MAX_PATH variable as seen here: and I think this is related: I have an angular project inside my .NET Core app and I like to logically nest my components even if they nest very deep. That nesting in addition to the fact that my project root started a few directories deep meant I hit that MAX_PATH quickly. I fixed it by moving my whole project to Annoying. I tried to ignore the whole |
Thanks for following up @JDillon522. Max path issues can definitely stink in windows development. I feel your pain! |
Issue Description
My intellesense suddenly stopped working over the weekend with zero change to my dev environment (that I know of).
Steps to Reproduce
Unsure.
Expected Behavior
Intelleisense and code completion work.
Actual Behavior
Its little different from working in a vim.
Logs
The main error log seems to be this:
OmniSharp log
OmniSharp server started.
Path: C:\Users\userName.vscode\extensions\ms-vscode.csharp-1.21.9.omnisharp\1.34.9\OmniSharp.exe
PID: 5228
Starting OmniSharp on Windows 6.2.9200.0 (x64)
info: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 1 MSBuild instance(s)
1: StandAlone 16.3 - "C:\Users\userName.vscode\extensions\ms-vscode.csharp-1.21.9.omnisharp\1.34.9.msbuild\Current\Bin"
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
MSBUILD_EXE_PATH environment variable set to 'C:\Users\userName.vscode\extensions\ms-vscode.csharp-1.21.9.omnisharp\1.34.9.msbuild\Current\Bin\MSBuild.exe'
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: StandAlone 16.3 - "C:\Users\userName.vscode\extensions\ms-vscode.csharp-1.21.9.omnisharp\1.34.9.msbuild\Current\Bin"
CscToolExe = csc.exe
CscToolPath = C:\Users\userName.vscode\extensions\ms-vscode.csharp-1.21.9.omnisharp\1.34.9.msbuild\Current\Bin\Roslyn
MSBuildExtensionsPath = C:\Users\userName.vscode\extensions\ms-vscode.csharp-1.21.9.omnisharp\1.34.9.msbuild
MSBuildToolsPath = C:\Users\userName.vscode\extensions\ms-vscode.csharp-1.21.9.omnisharp\1.34.9.msbuild\Current\Bin
info: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in 'c:\Users\userName\Desktop\Work\Project\ProjectSpa'.
info: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
info: OmniSharp.MSBuild.ProjectSystem
Detecting projects in 'c:\Users\userName\Desktop\Work\Project\ProjectSpa\ProjectApp.sln'.
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\Users\userName\Desktop\Work\Project\ProjectSpa\ProjectApp.csproj'
info: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in 'c:\Users\userName\Desktop\Work\Project\ProjectSpa'.
info: OmniSharp.Script.ScriptProjectSystem
Could not find any CSX files
info: OmniSharp.MSBuild.ProjectManager
Loading project: c:\Users\userName\Desktop\Work\Project\ProjectSpa\ProjectApp.csproj
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.EditorConfigWorkspaceOptionsProvider, Order: 200
info: OmniSharp.WorkspaceInitializer
Configuration finished.
info: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location 'c:\Users\userName\Desktop\Work\Project\ProjectSpa' on host 13432.
fail: OmniSharp.MSBuild.ProjectLoader
Unable to create directory "obj\Debug\netcoreapp3.1\RazorDeclaration*". Illegal characters in path.
[warn]: OmniSharp.MSBuild.ProjectManager
Failed to load project file 'c:\Users\userName\Desktop\Work\Project\ProjectSpa\ProjectApp.csproj'.
c:\Users\userName\Desktop\Work\Project\ProjectSpa\ProjectApp.csproj
C:\Program Files\dotnet\sdk\3.1.101\Sdks\Microsoft.NET.Sdk.Razor\build\netstandard2.0\Microsoft.NET.Sdk.Razor.Component.targets(97,5): Error: Unable to create directory "obj\Debug\netcoreapp3.1\RazorDeclaration*". Illegal characters in path.
Attempted to update project that is not loaded: c:\Users\userName\Desktop\Work\Project\ProjectSpa\ProjectApp.csproj
C# log
Environment information
VSCode version: 1.41.1
C# Extension: 1.21.9
Dotnet Information
.NET Core SDK (reflecting any global.json): Version: 3.1.101 Commit: b377529961Runtime Environment:
OS Name: Windows
OS Version: 10.0.17763
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\3.1.101\
Host (useful for support):
Version: 3.1.1
Commit: a1388f194c
.NET Core SDKs installed:
3.1.101 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.1.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
Visual Studio Code Extensions
The text was updated successfully, but these errors were encountered: