Skip to content

[Bug]: terminal won't open/display - logs attached #5760

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

Closed
4 tasks done
cekvenich2 opened this issue Nov 6, 2022 · 3 comments
Closed
4 tasks done

[Bug]: terminal won't open/display - logs attached #5760

cekvenich2 opened this issue Nov 6, 2022 · 3 comments
Labels
waiting-for-info Waiting for more information from submitter

Comments

@cekvenich2
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser:
  • Local OS:
  • Remote OS:
  • Remote Architecture:
  • code-server --version:

Steps to Reproduce

  1. install via npm or via .sh
  2. on debian w/ node 16.x
  3. EVERYTHING works, great. Https works (via Caddy)
  4. But open terminal and I get server log:
    File not found: /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/vscode-textmate/release/main.js
    File not found: /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/vscode-oniguruma/release/main.js
    File not found: /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/vscode-oniguruma/release/onig.wasm
    File not found: /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/xterm/lib/xterm.js

Help!

Expected

I should be able to open the terminal

Actual

Terminal does not open. Some coments said turn of 'gpu' in code and I did, and open and close terminal. But that did not work.
The issue is that it can't find those files, including xterm.js.
I tried to npm i xterm in that folder and no joy.

Logs

File not found: /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/vscode-textmate/release/main.js
File not found: /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/vscode-oniguruma/release/main.js
File not found: /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/vscode-oniguruma/release/onig.wasm
File not found: /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/xterm/lib/xterm.js

Screenshot/Video

No response

Does this issue happen in VS Code or GitHub Codespaces?

  • I cannot reproduce this in VS Code.
  • I cannot reproduce this in GitHub Codespaces.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

No, I mean I got https, I got no other bugs.

@cekvenich2 cekvenich2 added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Nov 6, 2022
@jsjoeio
Copy link
Contributor

jsjoeio commented Nov 7, 2022

Which version of code-server is this?

Based on your logs it sounds like the node_modules inside lib/vscode are missing which can happen if the install gets wonky.

Can you find the lib/vscode folder on your machine, cd into it and run npm install? Or go up two directories (root of code-server) and run npm install --unsafe-permand it should run thepostinstall` script which will install Code's node mods.

@jsjoeio jsjoeio added waiting-for-info Waiting for more information from submitter and removed bug Something isn't working triage This issue needs to be triaged by a maintainer labels Nov 7, 2022
@klubi
Copy link

klubi commented Dec 4, 2022

I seem to have the same issue.
Version: 4.8.3 977b853 with Code 1.72.1
I installed code-server on Raspberry Pi 4, using npm -g ...

EDIT (removed previously posted stacktrace):

Once located lib/vscode in /usr/lib/node_modules/code-server
I ran sudo npm install --unsafe-perm which resulted in huge stacktrace.
Turns out I was missing libsecret-1.
To install it I ran sudo apt-get install libsecret-1-dev.
Then sudo npm install --unsafe-perm completed successfully, and after restart terminal was accessible!

@jsjoeio
Copy link
Contributor

jsjoeio commented Dec 5, 2022

Woohoo! Thanks @klubi - going to close this for now.

@jsjoeio jsjoeio closed this as not planned Won't fix, can't repro, duplicate, stale Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-for-info Waiting for more information from submitter
Projects
None yet
Development

No branches or pull requests

3 participants