-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
Master Issue for Language Server Crash #136
Comments
#128 comes from the hidden, inserted |
Looks like |
It's probably as simple as adding "dependencies": {
"vue-template-compiler": "^2.2.1"
}, in the middle of the root |
Also, think we should limit the files to do module resolution for limited to only
Why so? I'm compiling |
I was guessing based on the failing behaviour; it seems like user dependencies on That's my reasoning. It's conjecture but it seems worth testing at least. I'll contact one of the VS Code guys and see if he can help. (I'll ping him too when I can find his github alias ....) |
Do you mean that only |
I'll do that, package it as vsix and ask people who have problems to try it again.
I meant this function https://github.com/octref/vetur/blob/master/server/src/modes/javascriptMode.ts#L89-L109 is even trying to resolve js files like |
The problem with that code path is that it has no real way to say "I don't handle these kinds of files", so it has to do the fallback itself: if (path.isAbsolute(name) || !isVue(name)) {
return ts.resolveModuleName(name, containingFile, compilerOptions, ts.sys).resolvedModule;
}
else { But |
removed |
Can you please open a new issue according to the instruction? |
Can do, just wasn't sure if this required it's own issue. |
@jonthegiant Haven't seen similar error before so it's worth one. |
I meant the resolveModuleNames(moduleNames: string[], containingFile: string): ts.ResolvedModule[] { Requiring |
Oh, I see. A user might have |
I think there may be some tsconfig settings to limit how deeply the compiler follows module resolution inside |
Don't know if its relevant or not, but I didn't really install |
When i open the project folder contained node_modeules the error message is JavaScript heap out of memory and if i open the components folder the error message is start < 0.it is strange |
|
First, sorry for the LS crashes.
Here is 0.5.6 in case people need to do work: vetur-0.5.6.vsix.zip.
Instruction: https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix
I'll be traveling during weekend, so I don't think all crashes can be resolved until Monday.
With that being said, here is a guideline for reporting server crashes to help me better collect info and solve the issue:
Please provide the following info for crashes:
3 is really important, because without a repro I can't do anything.
Also @sandersn, can you take a look at #127 #128 #131 #135? They seem to come from the module resolution code in your PR.
The text was updated successfully, but these errors were encountered: