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

Suggest add a settings item to allow user to disable Vue Language Server #197

Closed
Clarence-pan opened this issue May 10, 2017 · 10 comments
Closed

Comments

@Clarence-pan
Copy link

Clarence-pan commented May 10, 2017

It's really annoying that Vue Language Server crashes every 2 to 10 minutes.

vetur initialized
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
[Info  - 下午5:39:09] Connection to server got closed. Server will restart.
vetur initialized
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
[Info  - 下午5:46:38] Connection to server got closed. Server will restart.
vetur initialized

So, could you add a settings item to allow user to disable Vue Language Server?


CONCLUSION

As discussed below, Vue Language Server can NOT be disabled. In an alternative way, one can install the last version without Vue Language Server: #136 (comment)

@octref
Copy link
Member

octref commented May 10, 2017

First sorry for the crashes.

Can you post your jsconfig/tsconfig if you have one for your project?
Also, do you have symlink in your node_modules?

@qiansen1386
Copy link

@Clarence-pan You need to use the latest version. As long as I know, the 0.6.8 version have fixed this issue.

@octref
Copy link
Member

octref commented May 14, 2017

@qiansen1386 Thanks for the suggestion.

@Clarence-pan Closing this issue but feel free to reopen if this happens again.

@octref octref closed this as completed May 14, 2017
@Clarence-pan
Copy link
Author

Clarence-pan commented May 14, 2017

@qiansen1386 Thanks. I will try the latest version tomorrow.

@octref Yes, there are symlinks. Because cnpm is used to make module installation faster.
But I don't have a tsconfig or jsconfig.

May be one of the reason is my project is too big? I counted the numbers of .vue and .js files. There are total 100 .vue files (a coincidence) and 79 .js files. (Of course, excluding files in node_modules and built directories)

Do you have tested vetur on a such big project?

I'm sorry but I cannot provide the source codes - as they owned by our company.

@octref
Copy link
Member

octref commented May 14, 2017

@Clarence-pan I've tested it on large project and it works fine. What doesn't work now is symlink, #193

Marking this as a dup of #193.

I realize a lot of people in China are using cnpm and it uses symlink by default. I'll try to fix it.

@Clarence-pan
Copy link
Author

@octref Well. I'll try to use npm directly tomorrow. Thanks.

@octref
Copy link
Member

octref commented May 14, 2017

@Clarence-pan Try to use yarn which doesn't symlink. It also caches download so you don't have to download the same package twice (I know connection from China to NPM can be slow),

@Clarence-pan
Copy link
Author

Clarence-pan commented May 14, 2017

@octref Except resolving the issue of crashes, I still suggest you to add a settings item to allow users to disable Vue Language Server. Is there a way to stop Vue Language Server now?

@octref
Copy link
Member

octref commented May 14, 2017

Without the language server many features would not work.

0.5.6 is the last release without language server, install instruction here: #136 (comment)

@Clarence-pan
Copy link
Author

@octref OK. Thanks. I should have realized it - like Windows cannot remove IE.
I will try #136 (comment) if it still keeps crashing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants