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

fail to load the extension #474

Closed
czhang03 opened this issue Mar 18, 2018 · 8 comments
Closed

fail to load the extension #474

czhang03 opened this issue Mar 18, 2018 · 8 comments
Labels
external issue Issue with something else than LaTeX-Wokshop

Comments

@czhang03
Copy link
Contributor

czhang03 commented Mar 18, 2018

Description

The extension would not load on start of the editor. reinstalling the editor, and reinstalling the extension both do not work.

Log messages

[4424:0318/153250.862:INFO:CONSOLE(4183)] "Activating extension `James-Yu.latex-workshop` failed: Cannot find module 'opn'.", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (4183)

I am not sure if the following log is useful:

[4424:0318/153251.001:INFO:CONSOLE(1306)] "%cTRACE", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (1306)
[4424:0318/153251.001:INFO:CONSOLE(1306)] "%cTRACE", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (1306)
[4424:0318/153251.006:INFO:CONSOLE(253)] "%c[Extension Host] %cWARNING: Promise with no error callback:8 %c(at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:84:848)", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (253)
[4424:0318/153251.029:INFO:CONSOLE(253)] "%c[Extension Host]%", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (253)
[4424:0318/153251.030:INFO:CONSOLE(253)] "%c[Extension Host] %cTypeError: Cannot read property 'map' of undefined
    at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:582:153
    at Object.g [as _notify] (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:68:868)
    at Object.enter (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:72:153)
    at n.Class.derive._oncancel._run (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:73:970)
    at n.Class.derive._oncancel._completed (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:73:411)
    at e.resolveOk (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:524:491)
    at e._receiveReply (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:584:316)
    at e._receiveOneMessage (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:583:678)
    at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:582:671
    at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:585:523
    at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:87:459
    at e.fire (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:88:729)
    at Socket.<anonymous> (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:146:633)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at readableAddChunk (_stream_readable.js:178:18)
    at Socket.Readable.push (_stream_readable.js:136:10)
    at Pipe.onread (net.js:560:20) %c(at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:84:937)", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (253)
[4424:0318/153251.051:INFO:CONSOLE(253)] "%c[Extension Host] %cWARNING: Promise with no error callback:9 %c(at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:84:848)", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (253)
[4424:0318/153251.051:INFO:CONSOLE(1306)] "%c  ERR", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (1306)
[4424:0318/153251.054:INFO:CONSOLE(253)] "%c[Extension Host]%", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (253)
[4424:0318/153251.084:INFO:CONSOLE(253)] "%c[Extension Host] %cTypeError: Cannot read property 'map' of undefined
    at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:582:153
    at Object.g [as _notify] (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:68:868)
    at Object.enter (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:72:153)
    at n.Class.derive._oncancel._run (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:73:970)
    at n.Class.derive._oncancel._completed (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:73:411)
    at e.resolveOk (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:524:491)
    at e._receiveReply (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:584:316)
    at e._receiveOneMessage (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:583:678)
    at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:582:671
    at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:585:523
    at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:87:459
    at e.fire (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:88:729)
    at Socket.<anonymous> (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:146:633)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:191:7)
    at readableAddChunk (_stream_readable.js:178:18)
    at Socket.Readable.push (_stream_readable.js:136:10)
    at Pipe.onread (net.js:560:20) %c(at c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:84:937)", source: file:///C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js (253)
@czhang03
Copy link
Contributor Author

temp solution:

cd "~\.vscode\extensions\James-Yu.latex-workshop-3.14.0"
npm install

@James-Yu
Copy link
Owner

It should be a bug related to the marketplace. I will soon make a new release. Please check if that still won't work.

A good solution is to uninstall the extension -> close vscode completely -> reopen and install extension.

@Issacwww
Copy link

Issacwww commented Feb 6, 2019

I had this problem in vs code 1.31.0 and when I open any .tex file, the vs code will alert an error: "Extension host terminated unexpectedly." I have tried to reinstall the extension, but after installing it, when I just click the icon of the extension in the slide bar, the same error will be alerted, I cannot build any .tex file anymore.

@tamuratak
Copy link
Contributor

See microsoft/vscode/issues/67999. Please disable extensions, Live Server and Ftp-Simple.

@kerukukku1
Copy link

@tamuratak
I tried it, but it still crashes.

@tamuratak
Copy link
Contributor

See #1164 and wiki. The directory ~/node_modules/ in the home directory may cause errors on Mac and Linux on VSCode 1.31.0.

If you still see this issue, please create a new issue.

@kerukukku1
Copy link

@tamuratak
thanks!!!
my solution :

rm -rf ~/node_modules

@tamuratak
Copy link
Contributor

Great. You're welcome.

Repository owner locked as resolved and limited conversation to collaborators Jan 8, 2020
@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

5 participants