claude-code - 💡(How to fix) Fix [BUG] Unable to open .razor files in the Claude Windows app [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52023Fetched 2026-04-23 07:38:36
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×2unlabeled ×1

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When the models is asked to generate c# Blazor Server code (a .razor file). It generates it but the previewer is broken "No file content available"

What Should Happen?

Should open the file to copy the code

Error Messages/Logs

Steps to Reproduce

Prompt "give me a example home c# blazor server page"

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

1.3883.0.0

Platform

Other

Operating System

Windows

Terminal/Shell

Other

Additional Information

No response

extent analysis

TL;DR

The issue might be resolved by checking the generated file path and ensuring the previewer has access to the file.

Guidance

  • Verify that the generated .razor file is correctly saved to the expected location.
  • Check if there are any file system or permission issues preventing the previewer from accessing the generated file.
  • Try to manually open the generated file to see if the issue is specific to the previewer or a more general problem.
  • If possible, test the same prompt with a different model or version to isolate the issue.

Notes

The lack of error messages or logs makes it difficult to pinpoint the exact cause, and without more information about the environment or the specific steps taken, it's challenging to provide a more detailed solution.

Recommendation

Apply workaround: Try to manually open the generated file to verify its contents and check for any issues with file access or permissions, as this might provide more insight into why the previewer is failing to display the content.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING