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

Extension host terminated unexpectedly when open any .tex file #1164

Closed
Issacwww opened this issue Feb 7, 2019 · 15 comments
Closed

Extension host terminated unexpectedly when open any .tex file #1164

Issacwww opened this issue Feb 7, 2019 · 15 comments
Labels
external issue Issue with something else than LaTeX-Wokshop

Comments

@Issacwww
Copy link

Issacwww commented Feb 7, 2019

Describe the bug
Extension host terminated unexpectedly when open any .tex file

To Reproduce
Steps to reproduce the behavior:

  1. Open vs code
  2. Open any .tex file
  3. See error

Logs
[2019-02-07 04:38:57.984] [sharedprocess] [info] main {"machineId":"6c9d2bc8f91b89624add29c0abeae7fb42bf539fa1cdb2e3e57cd668fa9bcead"}
[2019-02-07 04:38:58.039] [sharedprocess] [info] Scanned user extensions: 14
[2019-02-07 04:38:58.048] [sharedprocess] [info] Scanned user extensions: 14
[2019-02-07 04:38:58.063] [sharedprocess] [info] Scanned system extensions: 71
[2019-02-07 04:38:58.065] [sharedprocess] [info] Scanned system extensions: 71
[2019-02-07 04:38:58.602] [sharedprocess] [info] Scanned user extensions: 14

Once I open the vs code, I got this error
image
if I disable the latex workshop and restart extension host, no error alert anymore.
I tried
cd ~/.vscode/extensions/james-yu.latex-workshop-5.21.0
npm install
and got this message
image
I don not know why it cannot detect the version correctly

Desktop

  • OS: macOS 10.14.3
  • VS Code version: 1.31.0
  • Extension version: 5.21.0
@tamuratak
Copy link
Contributor

I can not reproduce. Please disable other extensions except for LaTeX Workshop, and check that you still see this issue.

Similar issues are reported microsoft/vscode/issues/68024 and microsoft/vscode/issues/67999 as I said.

@Issacwww
Copy link
Author

Issacwww commented Feb 7, 2019

I can not reproduce. Please disable other extensions except for LaTeX Workshop, and check that you still see this issue.

Similar issues are reported Microsoft/vscode/issues/68024 and Microsoft/vscode/issues/67999 as I said.

I already re-install the vs code, and only install latex workshop, the issue still there.

@Issacwww
Copy link
Author

Issacwww commented Feb 7, 2019

Here is the error info from developer tool
image

@tamuratak
Copy link
Contributor

Normally fsevents is not installed. The reason you have it is your following steps,

cd ~/.vscode/extensions/james-yu.latex-workshop-5.21.0
npm install

You must not do that unless you know what you are doing.

Please uninstall LaTeX Workshop, and remove ~/.vscode/extensions/james-yu.latex-workshop-5.21.0, and reinstall the extension.

And your log says you have 14 extensions installed.

[2019-02-07 04:38:58.039] [sharedprocess] [info] Scanned user extensions: 14

Notice that uninstalling VS Code does not mean uninstalling extensions. You have to uninstall extensions manually. See microsoft/vscode/issues/66837. Please uninstall all the extensions manually, and check that you still see this issue.

Thank you for your cooperation.

@Issacwww
Copy link
Author

Issacwww commented Feb 7, 2019

I have already tried what you said, I remove the user data and extensions in .vscode directory, then re-install the vs code, and only install latex-workshop, still got the error. This issue even make me give up vscode

@tamuratak
Copy link
Contributor

Please do that again. Then show us new log messages.

@jlelong
Copy link
Collaborator

jlelong commented Feb 7, 2019

@Issacwww From I understand, you are trying to run the github version of the LaTeX-Workshop extension otherwise I do not understand why you are running a extension host window. If you are using the extension from the marketplace, you should not fiddle with npm.

If you are trying to run the github version in an extension host, you need to remove the node_modules directory from LaTeX-Workshop directory and run npm install again. This enabled me to fix the extension host issue.

@Issacwww
Copy link
Author

Issacwww commented Feb 8, 2019

@jlelong I just install the extension from marketplace, after installation and open the .tex file, the error alert. I do not use the github version.

@Issacwww
Copy link
Author

Issacwww commented Feb 8, 2019

@tamuratak I uninstall the VS code and use the following script to remove the user data and extensions as well:
sudo rm -rf ~/Library/Application\ Support/Code
sudo rm -rf ~/.vscode
The I re-install the VS code and install latex-workshop from marketplace, and open the .tex file, got the error again.
Here is the log:
[2019-02-07 19:08:41.131] [sharedprocess] [info] main {"machineId":"6c9d2bc8f91b89624add29c0abeae7fb42bf539fa1cdb2e3e57cd668fa9bcead"}
[2019-02-07 19:08:41.164] [sharedprocess] [info] Scanned user extensions: 0
[2019-02-07 19:08:41.173] [sharedprocess] [info] Scanned user extensions: 0
[2019-02-07 19:08:41.176] [sharedprocess] [info] Scanned user extensions: 0
[2019-02-07 19:08:41.178] [sharedprocess] [info] Scanned user extensions: 0
[2019-02-07 19:08:41.233] [sharedprocess] [info] Scanned system extensions: 71
[2019-02-07 19:08:41.240] [sharedprocess] [info] Scanned system extensions: 71
[2019-02-07 19:08:41.242] [sharedprocess] [info] Scanned system extensions: 71
[2019-02-07 19:08:41.244] [sharedprocess] [info] Scanned system extensions: 71
[2019-02-07 19:08:41.608] [sharedprocess] [info] Scanned user extensions: 0
[2019-02-07 19:08:47.433] [sharedprocess] [info] Scanned user extensions: 0
[2019-02-07 19:08:47.435] [sharedprocess] [info] Scanned user extensions: 0
[2019-02-07 19:08:47.437] [sharedprocess] [info] Scanned user extensions: 0
[2019-02-07 19:08:47.440] [sharedprocess] [info] Scanned user extensions: 0
[2019-02-07 19:08:47.485] [sharedprocess] [info] Scanned system extensions: 71
[2019-02-07 19:08:47.487] [sharedprocess] [info] Scanned system extensions: 71
[2019-02-07 19:08:47.489] [sharedprocess] [info] Scanned system extensions: 71
[2019-02-07 19:09:21.146] [sharedprocess] [info] Starting to clean up unused language packs.
[2019-02-07 19:10:42.074] [sharedprocess] [info] Installing extension: james-yu.latex-workshop
[2019-02-07 19:10:42.076] [sharedprocess] [info] Scanned user extensions: 0
[2019-02-07 19:10:45.808] [sharedprocess] [info] Downloaded extension: james-yu.latex-workshop /var/folders/p6/fnxvnk0s2h70rdmmhly2fqlc0000gn/T/29fc45f8-0b6c-4ca0-8196-05729be0e5c7
[2019-02-07 19:10:49.029] [sharedprocess] [info] Extracted extension to /Users/ssuchao/.vscode/extensions/.james-yu.latex-workshop-5.21.0: james-yu.latex-workshop
[2019-02-07 19:10:49.029] [sharedprocess] [info] Renamed to /Users/ssuchao/.vscode/extensions/james-yu.latex-workshop-5.21.0
[2019-02-07 19:10:49.031] [sharedprocess] [info] Installation completed. james-yu.latex-workshop
[2019-02-07 19:10:49.084] [sharedprocess] [info] Extensions installed successfully: james-yu.latex-workshop
[2019-02-07 19:10:56.658] [sharedprocess] [info] Scanned user extensions: 1
[2019-02-07 19:10:56.674] [sharedprocess] [info] Scanned system extensions: 71
[2019-02-07 19:13:41.621] [sharedprocess] [info] Scanned user extensions: 1

@tamuratak
Copy link
Contributor

Please show us the new error info from developer tool, too.

@Issacwww
Copy link
Author

Issacwww commented Feb 8, 2019

image

@tamuratak
Copy link
Contributor

tamuratak commented Feb 8, 2019

That is what we want to see.

The cause is that VSCode uses modules under /Users/ssuchao/node_modules. This is not normal. I guess you have set some environment variables, NODE_PATH, and others. Please clear these variables, and restart your Mac. Other than environment variables, settings in ~/.npmrc may be the cause.

@Issacwww
Copy link
Author

Issacwww commented Feb 8, 2019

@tamuratak Thanks a lot, but I did not set any environment variables related to this, I just remove the node_modules form my user home, and it works for me.

@Issacwww Issacwww closed this as completed Feb 8, 2019
@tamuratak
Copy link
Contributor

You're welcome.

I did not set any environment variables related to this

That's wierd. It might be a bug of VSCode.

@tlamadon
Copy link

tlamadon commented Mar 9, 2019

I had the same exact problem. I removed node_modules from my home directory and it worked. Thanks.

Repository owner locked as resolved and limited conversation to collaborators Jul 1, 2021
@tamuratak tamuratak added the external issue Issue with something else than LaTeX-Wokshop label Jul 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
external issue Issue with something else than LaTeX-Wokshop
Projects
None yet
Development

No branches or pull requests

4 participants