Skip to content

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

Open
@Wordluc

Description

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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    untriagedIssues and PRs which have not yet been triaged by a lead

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions