You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is causing the language server's file watcher to break. As it throws an exception for paths with ".." in the middle:
I put some error handling around it and logged some paths to the lsp log as an example:
[ERROR][2025-01-29 17:02:25] ...lsp/handlers.lua:623 "[LanguageServerProjectSystem] failed to add includes to matcher /Users/john/.nuget/packages/harfbuzzsharp.nativeassets.webassembly/7.3.0/buildTransitive/netstandard1.0/../../build/netstandard1.0/libHarfBuzzSharp.a/**/*.a"
[ERROR][2025-01-29 17:02:25] ...lsp/handlers.lua:623 "[LanguageServerProjectSystem] failed to add includes to matcher /Users/john/.nuget/packages/skiasharp.nativeassets.webassembly/2.88.7/buildTransitive/netstandard1.0/../../build/netstandard1.0/libSkiaSharp.a/**/*.a"
[ERROR][2025-01-29 17:02:25] ...lsp/handlers.lua:623 "[LanguageServerProjectSystem] failed to add includes to matcher /Users/john/.nuget/packages/harfbuzzsharp.nativeassets.webassembly/7.3.0/buildTransitive/netstandard1.0/../../build/netstandard1.0/libHarfBuzzSharp.a/**/*.a"
[ERROR][2025-01-29 17:02:25] ...lsp/handlers.lua:623 "[LanguageServerProjectSystem] failed to add includes to matcher /Users/john/.nuget/packages/skiasharp.nativeassets.webassembly/2.88.7/buildTransitive/netstandard1.0/../../build/netstandard1.0/libSkiaSharp.a/**/*.a"
Seems to work fine if I catch the error and return a default matcher (fine for my purposes in that I don't have to keep restarting LSP everytime I want to add a new .cs file to a project).
The text was updated successfully, but these errors were encountered:
l0hn
changed the title
".." In the middle of a glob pattern breaks langauge server file watching.
".." In the middle of a glob pattern breaks language server file watching.
Jan 29, 2025
MSBuild will return globs with relative paths. These globs do not work
properly with M.E.FileSystemGlobbing. This PR ensures we return the
absolute paths for globs.
Resolves#76959
This is causing the language server's file watcher to break. As it throws an exception for paths with ".." in the middle:
I put some error handling around it and logged some paths to the lsp log as an example:
Seems to work fine if I catch the error and return a default matcher (fine for my purposes in that I don't have to keep restarting LSP everytime I want to add a new .cs file to a project).
The text was updated successfully, but these errors were encountered: