Skip to content
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

I've been trying to call didChangeWatchedFiles In neovim but i get an error #76535

Open
Wordluc opened this issue Dec 20, 2024 · 2 comments
Open
Labels
untriaged Issues and PRs which have not yet been triaged by a lead

Comments

@Wordluc
Copy link

Wordluc commented Dec 20, 2024

Discussed in #76529

Originally posted by Wordluc December 19, 2024
URI that i use -> file:///C:/Dev/GIT.Genya.TK/Genya/Genya.Web.TXD/Api/Telematic/WidgetSendingStatus/ff.cs
Body request:

{
  changes={
    {
      uri=" file:///C:/Dev/GIT.Genya.TK/Genya/Genya.Web.TXD/Api/Telematic/WidgetSendingStatus/ff.cs",
      type=1
    }
  }
}

Error: RPC[Error] code_name = serverErrorEnd, message = "".." can be only added at the beginning of the pattern.".

stack:

at Microsoft.Extensions.FileSystemGlobbing.Internal.Patterns.PatternBuilder.Build(String pattern)\r\n   at Microsoft.Extensions.Fil
eSystemGlobbing.Matcher.AddInclude(String pattern)\r\n   at Microsoft.Extensions.FileSystemGlobbing.MatcherExtensions.AddIncludePatterns(Matcher
matcher, IEnumerable`1[] includePatternsGroups)\r\n   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LoadedProject.<>c.<UpdateWithNewProj
ectInfoAsync>b__18_19(FileGlobs glob) in /_/src/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/LoadedProject.cs:line 227\r\n
  at System.Linq.Enumerable.SelectArrayIterator`2.Fill(ReadOnlySpan`1 source, Span`1 destination, Func`2 func)\r\n   at System.Linq.Enumerable.Se
lectArrayIterator`2.ToArray()\r\n   at System.Collections.Immutable.ImmutableArray.CreateRange[T](IEnumerable`1 items)\r\n   at System.Lazy`1.Via
Factory(LazyThreadSafetyMode mode)\r\n   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstruct
or)\r\n   at System.Lazy`1.CreateValue()\r\n   at System.Lazy`1.get_Value()\r\n   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.LoadedPr
oject.FileChangedContext_FileChanged(Object sender, String filePath) in /_/src/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace
/LoadedProject.cs:line 72\r\n   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.FileWatching.LspFileChangeWatcher.FileChangeContext.Watche
dFilesHandler_OnNotificationRaised(Object sender, DidChangeWatchedFilesParams e) in /_/src/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/H
ostWorkspace/FileWatching/LspFileChangeWatcher.cs:line 113\r\n   at Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.FileWatching.LspDidChange
WatchedFilesHandler.Microsoft.CommonLanguageServerProtocol.Framework.INotificationHandler<Roslyn.LanguageServer.Protocol.DidChangeWatchedFilesPar
ams,Microsoft.CodeAnalysis.LanguageServer.Handler.RequestContext>.HandleNotificationAsync(DidChangeWatchedFilesParams request, RequestContext req
uestContext, CancellationToken cancellationToken) in /_/src/LanguageServer/Microsoft.CodeAnalysis.LanguageServer/HostWorkspace/FileWatching/LspDi
dChangeWatchedFilesHandler.cs:line 28\r\n   at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse]
(TRequest request, TRequestContext context, IMethodHandler handler, String language, CancellationToken cancellationToken) in /_/src/LanguageServe
r/Microsoft.CommonLanguageServerProtocol.Framework/QueueItem.cs:line 203\r\n   at Microsoft.CommonLanguageServerProtocol.Framework.AbstractLangua
geServer`1.DelegatingEntryPoint.InvokeAsync(IRequestExecutionQueue`1 queue, Object requestObject, ILspServices lspServices, CancellationToken can
cellationToken) in /_/src/LanguageServer/Microsoft.CommonLanguageServerProtocol.Framework/AbstractLanguageServer.cs:line 204\r\n   at Microsoft.C
ommonLanguageServerProtocol.Framework.SystemTextJsonLanguageServer`1.SystemTextJsonDelegatingEntryPoint.ExecuteRequestAsync(Nullable`1 request, C
ancellationToken cancellationToken) in /_/src/LanguageServer/Microsoft.CommonLanguageServerProtocol.Framework/SystemTextJsonLanguageServer.cs:lin
e 88",
  type = "System.ArgumentException"
}
```</div>
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label Dec 20, 2024
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

1 similar comment
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

No branches or pull requests

1 participant