-
Notifications
You must be signed in to change notification settings - Fork 626
[rush] Rush's node_modules structure is not resolved in vscode correctly #955
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
I'm not able to repro this issue. Which folder do you open using VS Code? The libraries/ts-command-line folder? Or the root of the repository? When I type |
Seems like you reproduced it nicely! Expected behaviour is that typing
I mean like so: const foo: Colors = {};
export {
CommandLineAction,
ICommandLineActionOptions
} from './CommandLineAction'; The issue of crashing I corrected in the OP. Intermittently the TS server appears to crash and restart within the editor, but it's not clear how to reproduce that issue. |
@nfour did you try looking at the TS Server log to see if any errors are being reported? |
BTW I was able to repro this using |
Corresponding issue in vscode. https://github.com/Microsoft/vscode/issues/63620#issue-383403610 |
Great, thanks! |
I marked this as external for now, since it appears to be a problem with VS Code (or TypeScript?). But we'll keep this issue open to track it. |
@nfour did you try to collect a TS Server log? That might be helpful... |
@pgonzal I recall not seeing anything in VSCode's TS Server output panel whenever I had these issues but of course I haven't had it set to I'll check again with Great to see this is reproducible and it's getting some attention! |
I want to give an update:
|
Based off of the last comment here, I think we may need to work with the VSCode team. |
Any update for this ? Quick update: Webstorm solve correctly import :) |
This issue is stale at this point and microsoft/TypeScript#28689 (comment) is closed. If this is still a problem, please consider opening a new issue |
Uh oh!
There was an error while loading. Please reload this page.
First up, I'm not sure if this is the right place for this report, but it's likely going to be relevant to the contributers here.
Problem
My team has run into a curious issue with rush's node module structure and vscode.
When trying to auto-import node modules within a project, intellisense will not locate dependencies.
This also results in the editor's TS server crashing intermittently.
Reproduction
Rush setups tested:
You can replicate this issue within
web-build-tools
itself.Open https://github.com/Microsoft/web-build-tools/blob/master/libraries/ts-command-line/src/index.ts
And type
Colors
in the top level (from thecolors
module). You shouldn't be able to resolve the symbol.eg.
Workaround
If you execute the below script to replace symlinks with real files:
Everything should work as expected.
The text was updated successfully, but these errors were encountered: