Visual Studio Code support?

Monday, November 25, 2024 4:30:31 PM
  • Posted: Wednesday, July 14, 2021 9:48 PM
  • 3
I recently heard about Grandnode and I’m evaluating it for a potential project. So far it looks great, the main reason it drew me was that I’m experienced in the .NET stack and would like to be able to customize some features if necessary.

I recently tried to use Visual Studio Code under Linux with the source but I’m getting the following errors:

[code]
--------------------------------------------------------------------------------
Razor.VSCode version 6.0.0-preview.5.21271.1
--------------------------------------------------------------------------------
Razor's trace level is currently set to 'Off'
- To change Razor's trace level set 'razor.trace' to 'Off', 'Messages' or 'Verbose' and then restart VSCode.
- To report issues invoke the 'Report a Razor issue' command via the command palette.
-----------------------------------------------------------------------------------------------------------------------------

[Error - 5:25:30 PM] Server initialization failed.
  Message: Internal Error - System.IO.IOException: The configured user limit (128) on the number of inotify instances has been reached, or the per-process limit on the number of open file descriptors has been reached.
   at System.IO.FileSystemWatcher.StartRaisingEvents() in System.IO.FileSystem.Watcher.dll:token 0x600007b+0x7d
   at System.IO.FileSystemWatcher.StartRaisingEventsIfNotDisposed() in System.IO.FileSystem.Watcher.dll:token 0x6000073+0x19
   at System.IO.FileSystemWatcher.set_EnableRaisingEvents(Boolean value) in System.IO.FileSystem.Watcher.dll:token 0x600004f+0x1d
   at Microsoft.AspNetCore.Razor.LanguageServer.ProjectConfigurationFileChangeDetector.StartAsync(String workspaceDirectory, CancellationToken cancellationToken) in /_/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/ProjectConfigurationFileChangeDetector.cs:line 100
   at Microsoft.AspNetCore.Razor.LanguageServer.RazorFileChangeDetectorManager.InitializedAsync() in /_/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/RazorFileChangeDetectorManager.cs:line 46
   at Microsoft.AspNetCore.Razor.LanguageServer.RazorLanguageServer.<>c__DisplayClass9_0.<<CreateAsync>b__2>d.MoveNext() in /_/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/RazorLanguageServer.cs:line 100
--- End of stack trace from previous location ---
   at OmniSharp.Extensions.LanguageServer.Server.LanguageServer.MediatR.IRequestHandler<OmniSharp.Extensions.LanguageServer.Protocol.Models.InternalInitializeParams,OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult>.Handle(InternalInitializeParams request, CancellationToken token) in OmniSharp.Extensions.LanguageServer.dll:token 0x6000032+0x96d
   at OmniSharp.Extensions.LanguageServer.Server.Pipelines.SemanticTokensDeltaPipeline`2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate`1 next) in OmniSharp.Extensions.LanguageServer.dll:token 0x60000a0+0x2a6
   at OmniSharp.Extensions.LanguageServer.Server.Pipelines.ResolveCommandPipeline`2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate`1 next) in OmniSharp.Extensions.LanguageServer.dll:token 0x600009f+0x0
   at MediatR.Pipeline.RequestPreProcessorBehavior`2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate`1 next) in MediatR.dll:token 0x6000058+0x0
   at MediatR.Pipeline.RequestPostProcessorBehavior`2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate`1 next) in MediatR.dll:token 0x6000056+0x0
   at MediatR.Pipeline.RequestExceptionProcessorBehavior`2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate`1 next) in MediatR.dll:token 0x6000053+0x0
   at MediatR.Pipeline.RequestExceptionProcessorBehavior`2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate`1 next) in MediatR.dll:token 0x6000053+0x25c
   at MediatR.Pipeline.RequestExceptionActionProcessorBehavior`2.H
0
  • Posted: Wednesday, July 14, 2021 9:51 PM
  • 3
Replying here to fully copy the rest of my previous message, not sure what the forum did here but I'm guessing it has to do with the stack trace, it found some token it didn't like. I just used the 'code' tags but it seems not to be working correctly.

--------------------------------------------------------------------------------
Razor.VSCode version 6.0.0-preview.5.21271.1
--------------------------------------------------------------------------------
Razor's trace level is currently set to 'Off'
- To change Razor's trace level set 'razor.trace' to 'Off', 'Messages' or 'Verbose' and then restart VSCode.
- To report issues invoke the 'Report a Razor issue' command via the command palette.
-----------------------------------------------------------------------------------------------------------------------------

[Error - 5:25:30 PM] Server initialization failed.
  Message: Internal Error - System.IO.IOException: The configured user limit (128) on the number of inotify instances has been reached, or the per-process limit on the number of open file descriptors has been reached.
   at System.IO.FileSystemWatcher.StartRaisingEvents() in System.IO.FileSystem.Watcher.dll:token 0x600007b+0x7d
   at System.IO.FileSystemWatcher.StartRaisingEventsIfNotDisposed() in System.IO.FileSystem.Watcher.dll:token 0x6000073+0x19
   at System.IO.FileSystemWatcher.set_EnableRaisingEvents(Boolean value) in System.IO.FileSystem.Watcher.dll:token 0x600004f+0x1d
   at Microsoft.AspNetCore.Razor.LanguageServer.ProjectConfigurationFileChangeDetector.StartAsync(String workspaceDirectory, CancellationToken cancellationToken) in /_/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/ProjectConfigurationFileChangeDetector.cs:line 100
   at Microsoft.AspNetCore.Razor.LanguageServer.RazorFileChangeDetectorManager.InitializedAsync() in /_/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/RazorFileChangeDetectorManager.cs:line 46
   at Microsoft.AspNetCore.Razor.LanguageServer.RazorLanguageServer.<>c__DisplayClass9_0.<<CreateAsync>b__2>d.MoveNext() in /_/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/RazorLanguageServer.cs:line 100
--- End of stack trace from previous location ---
   at OmniSharp.Extensions.LanguageServer.Server.LanguageServer.MediatR.IRequestHandler<OmniSharp.Extensions.LanguageServer.Protocol.Models.InternalInitializeParams,OmniSharp.Extensions.LanguageServer.Protocol.Models.InitializeResult>.Handle(InternalInitializeParams request, CancellationToken token) in OmniSharp.Extensions.LanguageServer.dll:token 0x6000032+0x96d
   at OmniSharp.Extensions.LanguageServer.Server.Pipelines.SemanticTokensDeltaPipeline`2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate`1 next) in OmniSharp.Extensions.LanguageServer.dll:token 0x60000a0+0x2a6
   at OmniSharp.Extensions.LanguageServer.Server.Pipelines.ResolveCommandPipeline`2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate`1 next) in OmniSharp.Extensions.LanguageServer.dll:token 0x600009f+0x0
   at MediatR.Pipeline.RequestPreProcessorBehavior`2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate`1 next) in MediatR.dll:token 0x6000058+0x0
   at MediatR.Pipeline.RequestPostProcessorBehavior`2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate`1 next) in MediatR.dll:token 0x6000056+0x0
   at MediatR.Pipeline.RequestExceptionProcessorBehavior`2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate`1 next) in MediatR.dll:token 0x6000053+0x0
   at MediatR.Pipeline.RequestExceptionProcessorBehavior`2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate`1 next) in MediatR.dll:token 0x6000053+0x25c
   at MediatR.Pipeline.RequestExceptionActionProcessorBehavior`2.Handle(TRequest request, CancellationToken cancellationToken, RequestHandlerDelegate`1 next) in MediatR.dll:t
0
  • Posted: Wednesday, July 14, 2021 9:52 PM
  • 3
Ok never mind here is the rest of my post after the stack trace:

Do you think it's because the new .NET 5 plugins for the editor have yet to be ported over? It would be great if I could use Visual Studio Code for development since I installed Grandnode on my Ubuntu based distribution and I like to develop under that platform. At the moment I can use my Windows VM and develop from there, I just wanted to ask here first to see if any one was able to use VS Code with the source.

Regards,
Jose
0
  • Posted: Thursday, July 15, 2021 12:37 PM
  • 953
Well, we haven't used the Visual Studio Code in GrandNode development, so we can't help you :) We always use the Microsoft Visual Studio to develop it.
Best regards,
Patryk

GrandNode Team
0
back to top
Filters