Comments (2)
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, ImmutableArray
1 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.QueueItem
3.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, ImmutableArray
1 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.QueueItem
3.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.
I'm not sure if it helps, but, the namespace is imported on the _imports.razor file
from razor.
Related Issues (20)
- Allow for ChildContent Context parameter name to be specified on the parent component declaration HOT 2
- Blazor components not colorized correctly when .razor file is first opened in VS Code HOT 1
- Razor tooling in VS Code is slow to start up
- Incorrect `@` completion added when typing <Routes /> in VS Code
- Testing Infrastructure for Cohosting
- Component in the global namespace causes exception when using @bind syntax
- directory traversal .. in ArtifactsPath Breaks Resolving Document Contexts HOT 5
- No completion items are returned if invoking completion in an empty Razor document
- No tag helpers are added to completion in an emtpy Razor Document
- Blazor server app slow build time HOT 2
- `@null` attribute value results in ambiguity HOT 3
- [Automated] PRs inserted in VS build main-35115.158
- Add OnAutoInsert For Cohosting
- Add GoToDefinition for Cohosting
- Syntax highlighting is interrupted by some elements in blazor
- [Automated] PRs inserted in VS build main-35117.306
- [Automated] PRs inserted in VS build feature.debugger.main-35118.200
- Better standalone support HOT 1
- Components are not generated until the file is opened in VS Code
- Component discovery on Opensuse Tumbleweed is inconsistent
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from razor.