-
Notifications
You must be signed in to change notification settings - Fork 12.8k
[3.7.2] Debug failure: Dynamic files must always have current directory context #35094
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
Comments
@amcasey is looking into this, but @sheetalkamat is likely familiar with the domain. |
The file name being used is:
@MLoughry How exactly did you open |
Also, was this the log from first time the TS Server crashed? And do you still see the errors using the current VS Code insiders builds? I fixed a few bugs related to how we recover from server restarts. microsoft/vscode@6118d27 in particular could explain why in this log we see |
This issue persists with the latest Insiders build. I've copied all the tsserver logs from the repro with the Insiders build into a single zip below (though some of the tsserver log folders were actually empty).
|
Thanks. I can repo using |
@sheetalkamat In memory resources are expected to have a |
@mjbvz the file name seems ok.. We also have test... https://github.com/microsoft/TypeScript/blob/master/src/testRunner/unittests/tsserver/projects.ts#L1079 Looking into what's going on.. |
Seems like we don't expect the projectRootPath for dynamic files and that's the assert that fails in this |
Working on fix but @mjbvz we never supported this.. This code has not been changed for a while now. |
Maybe it's never worked and we're just now catching it because the failure has been made "fatal"? |
Thank you for looking into this @sheetalkamat. The VS code logic for untitled files has also not changed recently so I agree with @amcasey's suggestion: this was likely a long standing bug that the new VS Code error handling logic revealed. It's unfortunate it was revealed in a way that impacted users |
Component commits: 6945a72 Support dynamic file names with project root path Fixes microsoft#35094
Component commits: 6945a72 Support dynamic file names with project root path Fixes microsoft#35094 cc30b36 Remove unexpected change
* Support dynamic file names with project root path Fixes #35094 * Remove unexpected change
Uh oh!
There was an error while loading. Please reload this page.
Extracted from microsoft/vscode#84618 (comment)
TypeScript Version: 3.7.2
Search Terms
Problem
@MLoughry is reporting TS Server errors in VS Code for loose JS files (untitled files). Here are the relevant parts of the logs:
The crash has similar repo steps but has a different error stack from #35091
The text was updated successfully, but these errors were encountered: