Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language server crashes when you have an "uncreated" TypeSpec file open #2472

Closed
bterlson opened this issue Sep 22, 2023 · 2 comments
Closed
Labels
bug Something isn't working ide Issues for VS, VSCode, Monaco, etc. triaged:core
Milestone

Comments

@bterlson
Copy link
Member

To repro:

  • Create a directory
  • Create a new npm project with npm init -y
  • npm install @typespec/compiler (for some reason does not repro without these steps)
  • Open VSCode in this directory
  • Create a new file with ctrl+n
  • Change its file type to TypeSpec

The LS crashes, with the following output:

[Error: ENOENT: no such file or directory, stat 'untitled:Untitled-1'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: 'untitled:Untitled-1'
}
@timotheeguerin
Copy link
Member

I couldn't repro this issue, opening a new in memory file works fine for me

@timotheeguerin timotheeguerin added the ide Issues for VS, VSCode, Monaco, etc. label Aug 30, 2024
@RodgeFu
Copy link
Contributor

RodgeFu commented Sep 20, 2024

Give it a try and can't repro either. Feel free to reopen if the issue still repros for you with more detail repro steps. thanks.

@RodgeFu RodgeFu closed this as completed Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ide Issues for VS, VSCode, Monaco, etc. triaged:core
Projects
None yet
Development

No branches or pull requests

4 participants