GithubHelp home page GithubHelp logo

Comments (2)

danielscatigno-ncpc avatar danielscatigno-ncpc commented on July 21, 2024

I'm always having this kind error, using pre release version here 2.37.26

Here's my log
Using dotnet configured on PATH
Dotnet path: C:\Program Files\dotnet\dotnet.exe
Activating C# + C# Dev Kit...
waiting for named pipe information from server...
[stdout] {"pipeName":"\\.\pipe\e6db2825"}
received named pipe information from server
attempting to connect client to server...
client has connected to server
[Info - 10:47:15 AM] [Program] Language server initialized
[Info - 10:47:19 AM] [WorkspaceProjectFactoryService] Project C:\Projetos\StoreGen\StoreGen.Service\StoreGen.Service.csproj loaded by C# Dev Kit
[Info - 10:47:19 AM] [WorkspaceProjectFactoryService] Project C:\Projetos\StoreGen\StoreGen.UI\StoreGen.UI.csproj loaded by C# Dev Kit
[Info - 10:47:19 AM] [WorkspaceProjectFactoryService] Project C:\Projetos\StoreGen\StoreGen.Shared\StoreGen.Shared.csproj loaded by C# Dev Kit
[Info - 10:47:19 AM] [WorkspaceProjectFactoryService] Project C:\Projetos\StoreGen\StoreGen.ViewModels\StoreGen.ViewModels.csproj loaded by C# Dev Kit
[Info - 10:47:19 AM] [WorkspaceProjectFactoryService] Project C:\Projetos\StoreGen\StoreGen.UI.Client\StoreGen.UI.Client.csproj loaded by C# Dev Kit
[Info - 10:47:19 AM] [WorkspaceProjectFactoryService] Project C:\Projetos\StoreGen\StoreGen.Infra\StoreGen.Infra.csproj loaded by C# Dev Kit
[Info - 10:47:19 AM] [WorkspaceProjectFactoryService] Project C:\Projetos\StoreGen\StoreGen.Resources\StoreGen.Resources.csproj loaded by C# Dev Kit
[Info - 10:47:20 AM] [WorkspaceProjectFactoryService] Project C:\Projetos\StoreGen\StoreGen.Test\StoreGen.Test.csproj loaded by C# Dev Kit
[Error - 10:48:42 AM] [LanguageServerHost] System.ArgumentOutOfRangeException: The requested line number 265 must be less than the number of lines 244. (Parameter 'Line')
at Microsoft.CodeAnalysis.Text.TextLineCollection.GetPosition(LinePosition position) in //src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 67
at Microsoft.CodeAnalysis.Text.TextLineCollection.GetTextSpan(LinePositionSpan span) in /
/src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 78
at Microsoft.CodeAnalysis.LanguageServer.Handler.SemanticTokens.SemanticTokensHelpers.ComputeSemanticTokensDataAsync(Document document, ImmutableArray1 spans, Boolean supportsVisualStudioExtensions, ClassificationOptions options, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensHelpers.cs:line 103 at Microsoft.CodeAnalysis.LanguageServer.Handler.SemanticTokens.SemanticTokensHelpers.HandleRequestHelperAsync(Document document, ImmutableArray1 spans, Boolean supportsVisualStudioExtensions, ClassificationOptions options, CancellationToken cancellationToken) in //src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensHelpers.cs:line 67
at Microsoft.CodeAnalysis.LanguageServer.Handler.SemanticTokens.SemanticTokensHelpers.HandleRequestHelperAsync(IGlobalOptionService globalOptions, SemanticTokensRefreshQueue semanticTokensRefreshQueue, Range[] ranges, RequestContext context, CancellationToken cancellationToken) in /
/src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensHelpers.cs:line 46
at Microsoft.CodeAnalysis.LanguageServer.Handler.SemanticTokens.SemanticTokensRangeHandler.HandleRequestAsync(SemanticTokensRangeParams request, RequestContext context, CancellationToken cancellationToken) in //src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensRangeHandler.cs:line 44
at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem3.StartRequestAsync(TRequestContext context, IMethodHandler handler, CancellationToken cancellationToken) [Error - 10:48:42 AM] Request textDocument/semanticTokens/range failed. Message: The requested line number 265 must be less than the number of lines 244. (Parameter 'Line') Code: -32000 [object Object] [Error - 10:48:43 AM] [LanguageServerHost] System.ArgumentException: Range={ Start={ Line=141, Character=44 }, End={ Line=265, Character=4 } }. text.Length=6789. text.Lines.Count=244 ---> System.ArgumentOutOfRangeException: The requested line number 265 must be less than the number of lines 244. (Parameter 'Line') at Microsoft.CodeAnalysis.Text.TextLineCollection.GetPosition(LinePosition position) in /_/src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 67 at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.RangeToTextSpan(Range range, SourceText text) in /_/src/LanguageServer/Protocol/Extensions/ProtocolConversions.cs:line 330 --- End of inner exception stack trace --- at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.RangeToTextSpan(Range range, SourceText text) in /_/src/LanguageServer/Protocol/Extensions/ProtocolConversions.cs:line 335 at Microsoft.CodeAnalysis.LanguageServer.Handler.InlayHint.InlayHintHandler.HandleRequestAsync(InlayHintParams request, RequestContext context, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/InlayHint/InlayHintHandler.cs:line 45 at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem3.StartRequestAsync(TRequestContext context, IMethodHandler handler, CancellationToken cancellationToken)
Error making textDocument/inlayHint request: Range={ Start={ Line=141, Character=44 }, End={ Line=265, Character=4 } }. text.Length=6789. text.Lines.Count=244
[Error - 10:49:41 AM] [LanguageServerHost] System.ArgumentOutOfRangeException: The requested line number 265 must be less than the number of lines 244. (Parameter 'Line')
at Microsoft.CodeAnalysis.Text.TextLineCollection.GetPosition(LinePosition position) in /
/src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 67
at Microsoft.CodeAnalysis.Text.TextLineCollection.GetTextSpan(LinePositionSpan span) in //src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 78
at Microsoft.CodeAnalysis.LanguageServer.Handler.SemanticTokens.SemanticTokensHelpers.ComputeSemanticTokensDataAsync(Document document, ImmutableArray1 spans, Boolean supportsVisualStudioExtensions, ClassificationOptions options, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensHelpers.cs:line 103 at Microsoft.CodeAnalysis.LanguageServer.Handler.SemanticTokens.SemanticTokensHelpers.HandleRequestHelperAsync(Document document, ImmutableArray1 spans, Boolean supportsVisualStudioExtensions, ClassificationOptions options, CancellationToken cancellationToken) in /
/src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensHelpers.cs:line 67
at Microsoft.CodeAnalysis.LanguageServer.Handler.SemanticTokens.SemanticTokensHelpers.HandleRequestHelperAsync(IGlobalOptionService globalOptions, SemanticTokensRefreshQueue semanticTokensRefreshQueue, Range[] ranges, RequestContext context, CancellationToken cancellationToken) in //src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensHelpers.cs:line 46
at Microsoft.CodeAnalysis.LanguageServer.Handler.SemanticTokens.SemanticTokensRangeHandler.HandleRequestAsync(SemanticTokensRangeParams request, RequestContext context, CancellationToken cancellationToken) in /
/src/LanguageServer/Protocol/Handler/SemanticTokens/SemanticTokensRangeHandler.cs:line 44
at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem3.StartRequestAsync(TRequestContext context, IMethodHandler handler, CancellationToken cancellationToken) [Error - 10:49:41 AM] Request textDocument/semanticTokens/range failed. Message: The requested line number 265 must be less than the number of lines 244. (Parameter 'Line') Code: -32000 [object Object] [Error - 10:49:42 AM] [LanguageServerHost] System.ArgumentException: Range={ Start={ Line=141, Character=44 }, End={ Line=265, Character=4 } }. text.Length=6790. text.Lines.Count=244 ---> System.ArgumentOutOfRangeException: The requested line number 265 must be less than the number of lines 244. (Parameter 'Line') at Microsoft.CodeAnalysis.Text.TextLineCollection.GetPosition(LinePosition position) in /_/src/Compilers/Core/Portable/Text/TextLineCollection.cs:line 67 at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.RangeToTextSpan(Range range, SourceText text) in /_/src/LanguageServer/Protocol/Extensions/ProtocolConversions.cs:line 330 --- End of inner exception stack trace --- at Microsoft.CodeAnalysis.LanguageServer.ProtocolConversions.RangeToTextSpan(Range range, SourceText text) in /_/src/LanguageServer/Protocol/Extensions/ProtocolConversions.cs:line 335 at Microsoft.CodeAnalysis.LanguageServer.Handler.InlayHint.InlayHintHandler.HandleRequestAsync(InlayHintParams request, RequestContext context, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/InlayHint/InlayHintHandler.cs:line 45 at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem3.StartRequestAsync(TRequestContext context, IMethodHandler handler, CancellationToken cancellationToken)
Error making textDocument/inlayHint request: Range={ Start={ Line=141, Character=44 }, End={ Line=265, Character=4 } }. text.Length=6790. text.Lines.Count=244


@namespace StoreGen.UI.Components
@inherits StoreGenBaseComponent
<div class="featurefilter-container">

   @if (Features != null && Features.Any())
   {
      <SfAccordion>
         <AccordionItems>

            @foreach (var f in Features.GroupBy(x => x.Name).Select(x => new
            {
               Name = x.Key,
               Values = x.ToList()
            }).ToList())
            {
               <AccordionItem>
                  <HeaderTemplate>
                     <div>@f.Name</div>
                  </HeaderTemplate>
                  <ContentTemplate>
                     @foreach (var value in f.Values)
                     {
                        <div>@value</div>
                     }
                  </ContentTemplate>
               </AccordionItem>

            }
         </AccordionItems>
      </SfAccordion>

   }

</div>

from razor.

danielscatigno-ncpc avatar danielscatigno-ncpc commented on July 21, 2024

image
I'm not sure if it helps, but, the namespace is imported on the _imports.razor file

from razor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.