code-server icon indicating copy to clipboard operation
code-server copied to clipboard

Python file is not running - Code-server: 3.10.1

Open rahulml25 opened this issue 5 years ago • 22 comments

OS/Web Information

  • Web Browser: Edge
  • Local OS: Linux - Ubuntu 20.04 LTS
  • Remote OS: Ubuntu 20.04 LTS
  • Remote Architecture: VM
  • code-server --version: 3.10.1 421237f499079cf88d68c02163b70e2b476bbb0d Latest

Steps to Reproduce

  1. Run a python file in terminal

Expected

It should run my python file.

Actual

  • The terminal is not opening!
  • Throwing two errors:
    • command : 'python.execlnTerminal' not found
    • command : 'python.execlnTerminal-icon' not found

Logs

backend.log

Screenshot

Screenshot_2021-05-20-09-55-38-390_com microsoft emmx

Notes

This issue can be reproduced in VS Code: Yes

rahulml25 avatar May 20 '21 04:05 rahulml25

Okay all rigthts !

I've triied this : Downloaded here : https://sotnikov-link.github.io/get-vscode-extension-for-offline-install/

# code-server --install-extension Téléchargements/jupyter.VSIXPackage
Installing extensions...
[2021-06-03T19:50:50.534Z] error vscode getaddrinfo EAI_AGAIN extensions.coder.com
[2021-06-03T19:50:50.534Z] error vscode Error: getaddrinfo EAI_AGAIN extensions.coder.com
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26)

Why code-server hits coder.com ?

When online :

Installing extensions...
[2021-06-03T19:54:46.793Z] error vscode Unexpected end of JSON input:

[2021-06-03T19:54:46.796Z] error vscode SyntaxError: Unexpected end of JSON input:

    at JSON.parse (<anonymous>)
    at D (/usr/lib/code-server/lib/vscode/out/vs/server/entry.js:24:74905)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async x.queryGallery (/usr/lib/code-server/lib/vscode/out/vs/server/entry.js:27:10711)
    at async x.query (/usr/lib/code-server/lib/vscode/out/vs/server/entry.js:27:9654)
    at async x.getExtensions (/usr/lib/code-server/lib/vscode/out/vs/server/entry.js:27:7344)
    at async /usr/lib/code-server/lib/vscode/out/vs/server/entry.js:19:670
    at async Promise.all (index 0)
    at async O.getGalleryExtensions (/usr/lib/code-server/lib/vscode/out/vs/server/entry.js:19:639)
    at async O.installExtensions (/usr/lib/code-server/lib/vscode/out/vs/server/entry.js:18:26265)
    at async /usr/lib/code-server/lib/vscode/out/vs/server/entry.js:36:90861
    at async M (/usr/lib/code-server/lib/vscode/out/vs/server/entry.js:36:94206)
    at async process.<anonymous> (/usr/lib/code-server/lib/vscode/out/vs/server/entry.js:36:103823)

Maybe, an error while downloading ?

Thanks for your help, really !

ghost avatar Jun 03 '21 19:06 ghost

@rwanito Could you create another issue for this actually? The current issue (the Python extension not working) was fixed, but installing extensions offline is a separate issue that we'd have to address.

oxy avatar Jun 07 '21 15:06 oxy