Skip to content

[Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.Razor.RazorDynamicFileInfoProvider] RazorDynamicFileInfoProvider not initialized #610

@pedershk

Description

@pedershk

I have:

  • Read the readme and verified that the issue cannot be solved by adjusting configuration
  • Understood that Serena's dashboard can be disabled through the config
  • Understood that by default a client session will start a separate instance of a Serena server.
  • Understood that for multi-agent setups, the SSE mode should be used.
  • Verified that non-project files are ignored using either gitignore or the corresponding setting in .serena/project.yml
  • Have looked for similar issues and discussions, including closed ones
  • Made sure it's an actual issue and not a question - those should be opened as discussion instead.

If you have encountered a real and new issue:

  • I performed <uv invocation> serena project health-check
  • I indexed the project as described in the readme
  • Added sufficient explanation of my setup: the MCP client, the OS, the programming language, any config adjustments or relevant project specifics
  • Explained how the issue arose, added instructions on how to reproduce it (if possible)
  • If the issue happens on an open source project, I have added the link
  • Wrote a meaningful title and description

This occurs on a 40-project VS2022 solution using Visual Studio and MCP for serena configured in VS default project-specific mcp.json.

I've run the initial index.

Here's the message : ERROR 2025-09-08 14:22:39,539 [LSP-stdout-reader] solidlsp:window_log_message:535 - LSP: [initialized] [Microsoft.CodeAnalysis.LanguageServer.HostWorkspace.Razor.RazorDynamicFileInfoProvider] RazorDynamicFileInfoProvider not initialized. RazorWorkspaceService or RazorLspDynamicFileInfoProvider is null.

The project uses a Blazor Web Assembly client project, so has dozens of razor files. I've seen errors about code and TextDocument for these files, which I suspect is very much related - serena doesn't know how to deal with them as code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions