-
Notifications
You must be signed in to change notification settings - Fork 196
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
Razor VSCode Extension crashes when directory not found #5382
Comments
How is this happening? This doesn't really exist. @TanayParikh can you verify if you face the same issue after a |
Yes, there are some stale files, and it crashes when I can clean it out, but felt this may be better served with a safer failure than an extension crash. Ideally https://github.com/dotnet/aspnetcore-tooling/blob/master/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer.Common/DefaultRemoteTextLoaderFactory.cs#L75 should be handling the |
Essentially the same thing as our `FileNotFoundException` handling, however here we also have to fabricate the directory tree. Fixes https://github.com/dotnet/aspnetcore/issues/22795
* Safely handle DirectoryNotFound Fixes https://github.com/dotnet/aspnetcore/issues/22795
* Safely handle DirectoryNotFound Fixes https://github.com/dotnet/aspnetcore/issues/22795
As part of the
aspnetcore-tooling -> aspnetcore
migration, a bunch of the TestApps were moved out of aspnetcore-tooling. Now, when opening theaspnetcore-tooling
, the razor extension is looking for those files, and when it can't find them, it crashes.The text was updated successfully, but these errors were encountered: