Issue with Running code-server Source Code Locally #7068
-
Description:I encountered an issue while trying to run the code-server source code locally. Here are the details of my environment and the error I'm facing:
yarn watch
yarn run v1.22.22
$ VSCODE_DEV=1 VSCODE_IPC_HOOK_CLI= NODE_OPTIONS='--max_old_space_size=32384 --trace-warnings' ts-node ./ci/dev/watch.ts
[Compiler][code-server] [06:33:02] Starting compilation in watch mode...
[Code OSS] $ npm-run-all -lp watch-client watch-extensions
[Code OSS] [watch-extensions] $ node --max-old-space-size=4095 ./node_modules/gulp/bin/gulp.js watch-extensions watch-extension-media
[Code OSS] [watch-client ] $ node --max-old-space-size=4095 ./node_modules/gulp/bin/gulp.js watch-client
[Compiler][code-server] [06:33:04] Found 0 errors. Watching for file changes.
[Compiler][code-server] Finished compiling! (Refresh your web browser ♻️)
[code-server] Spawned web server process 44188
[code-server] Web process 44188 exited
[Code OSS] [watch-extensions] [06:33:11] Using gulpfile /data/code-server/lib/vscode/gulpfile.js
[Code OSS] [watch-extensions] [06:33:11] Starting 'watch-extensions'...
[Code OSS] [watch-extensions] [06:33:11] Starting 'watch-extension-media'...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-configuration-editing ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-css-language-features-client ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-css-language-features-server ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-debug-auto-launch ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-debug-server-ready ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-emmet ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-extension-editing ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-git ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-git-base ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-github ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-github-authentication ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-grunt ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-gulp ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-html-language-features-client ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-html-language-features-server ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-ipynb ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-jake ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-json-language-features-client ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-json-language-features-server ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-markdown-language-features-preview-src ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-markdown-language-features ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-markdown-math ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-media-preview ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-merge-conflict ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-microsoft-authentication ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-notebook-renderers ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-npm ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-php-language-features ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-references-view ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-search-result ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-simple-browser ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-tunnel-forwarding ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-typescript-language-features-test-workspace ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-typescript-language-features-web ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-typescript-language-features ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-vscode-api-tests ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-vscode-colorize-tests ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-vscode-test-resolver ...
[Code OSS] [watch-extensions] [06:33:11] Starting clean-extension-vscode-selfhost-test-provider ...
[Code OSS] [watch-extensions] [06:33:11] Finished clean-extension-typescript-language-features-test-workspace after 97 ms
[Code OSS] [watch-extensions] [06:33:11] Starting watch-extension:typescript-language-features-test-workspace ...
[Code OSS] [watch-client ] [06:33:11] Using gulpfile /data/code-server/lib/vscode/gulpfile.js
[Code OSS] [watch-client ] [06:33:11] Starting 'watch-client'...
[Code OSS] [watch-client ] [06:33:11] Starting clean-out ...
[Code OSS] [watch-extensions] [06:33:12] Starting compilation extensions...
[Code OSS] [watch-client ] [06:33:12] Finished clean-out after 542 ms
[Code OSS] [watch-client ] [06:33:12] Starting build-web-node-paths ...
[Code OSS] [watch-client ] [06:33:12] Finished build-web-node-paths after 9 ms
[Code OSS] [watch-client ] [06:33:12] Starting watch-out ...
[Code OSS] [watch-extensions] [06:33:14] Finished compilation extensions with 0 errors after 2305 ms
[Code OSS] [watch-extensions] [06:33:14] Finished clean-extension-extension-editing after 2941 ms
[Code OSS] [watch-extensions] [06:33:14] Starting watch-extension:extension-editing ...
[Code OSS] [watch-extensions] [06:33:14] Starting compilation extensions...
[Code OSS] [watch-extensions] [06:33:14] Finished clean-extension-grunt after 2979 ms
[Code OSS] [watch-extensions] [06:33:14] Starting watch-extension:grunt ...
[Code OSS] [watch-extensions] [06:33:14] Finished clean-extension-gulp after 3007 ms
[Code OSS] [watch-extensions] [06:33:14] Starting watch-extension:gulp ...
[Code OSS] [watch-extensions] [06:33:14] Finished clean-extension-jake after 3043 ms
[Code OSS] [watch-extensions] [06:33:14] Starting watch-extension:jake ...
[Code OSS] [watch-extensions] [06:33:14] Finished clean-extension-markdown-language-features-preview-src after 3068 ms
[Code OSS] [watch-extensions] [06:33:14] Starting watch-extension:markdown-language-features-preview-src ...
[Code OSS] [watch-extensions] [06:33:14] Finished clean-extension-markdown-math after 3086 ms
[Code OSS] [watch-extensions] [06:33:14] Starting watch-extension:markdown-math ...
[Code OSS] [watch-extensions] [06:33:14] Finished clean-extension-merge-conflict after 3114 ms
[Code OSS] [watch-extensions] [06:33:14] Starting watch-extension:merge-conflict ...
[Code OSS] [watch-extensions] [06:33:14] Finished clean-extension-tunnel-forwarding after 3144 ms
[Code OSS] [watch-extensions] [06:33:14] Starting watch-extension:tunnel-forwarding ...
[Code OSS] [watch-extensions] [06:33:14] Finished clean-extension-debug-server-ready after 3199 ms
[Code OSS] [watch-extensions] [06:33:14] Starting watch-extension:debug-server-ready ...
[Code OSS] [watch-extensions] [06:33:14] Finished clean-extension-vscode-colorize-tests after 3226 ms
[Code OSS] [watch-extensions] [06:33:14] Starting watch-extension:vscode-colorize-tests ...
[Code OSS] [watch-extensions] [06:33:14] Finished clean-extension-simple-browser after 3260 ms
[Code OSS] [watch-extensions] [06:33:14] Starting watch-extension:simple-browser ...
[Code OSS] [watch-extensions] [06:33:14] Finished clean-extension-debug-auto-launch after 3297 ms
[Code OSS] [watch-extensions] [06:33:14] Starting watch-extension:debug-auto-launch ...
[Code OSS] [watch-extensions] [06:33:14] Finished clean-extension-vscode-selfhost-test-provider after 3309 ms
[Code OSS] [watch-extensions] [06:33:14] Starting watch-extension:vscode-selfhost-test-provider ...
[Code OSS] [watch-client ] [06:33:15] Starting compilation...
[Code OSS] [watch-client ] [06:33:15] Starting watch-api-proposal-names ...
[Code OSS] [watch-client ] [06:33:15] Starting compilation api-proposal-names...
[Code OSS] [watch-extensions] [06:33:17] Finished clean-extension-configuration-editing after 6403 ms
[Code OSS] [watch-extensions] [06:33:17] Starting watch-extension:configuration-editing ...
[Code OSS] [watch-extensions] [06:33:17] Finished clean-extension-css-language-features-client after 6434 ms
[Code OSS] [watch-extensions] [06:33:17] Starting watch-extension:css-language-features-client ...
[Code OSS] [watch-extensions] [06:33:17] Finished clean-extension-css-language-features-server after 6465 ms
[Code OSS] [watch-extensions] [06:33:17] Starting watch-extension:css-language-features-server ...
[Code OSS] [watch-extensions] [06:33:17] Finished clean-extension-git-base after 6479 ms
[Code OSS] [watch-extensions] [06:33:17] Starting watch-extension:git-base ...
[Code OSS] [watch-extensions] [06:33:18] Finished clean-extension-emmet after 6506 ms
[Code OSS] [watch-extensions] [06:33:18] Starting watch-extension:emmet ...
[Code OSS] [watch-extensions] [06:33:18] Finished clean-extension-git after 6557 ms
[Code OSS] [watch-extensions] [06:33:18] Starting watch-extension:git ...
[Code OSS] [watch-extensions] [06:33:18] Finished clean-extension-github after 6647 ms
[Code OSS] [watch-extensions] [06:33:18] Starting watch-extension:github ...
[Code OSS] [watch-extensions] [06:33:18] Finished clean-extension-html-language-features-client after 6678 ms
[Code OSS] [watch-extensions] [06:33:18] Starting watch-extension:html-language-features-client ...
[Code OSS] [watch-extensions] [06:33:18] Finished clean-extension-ipynb after 6708 ms
[Code OSS] [watch-extensions] [06:33:18] Starting watch-extension:ipynb ...
[Code OSS] [watch-extensions] [06:33:18] Finished clean-extension-json-language-features-client after 6734 ms
[Code OSS] [watch-extensions] [06:33:18] Starting watch-extension:json-language-features-client ...
[Code OSS] [watch-extensions] [06:33:18] Finished clean-extension-json-language-features-server after 6760 ms
[Code OSS] [watch-extensions] [06:33:18] Starting watch-extension:json-language-features-server ...
[Code OSS] [watch-extensions] [06:33:18] Finished clean-extension-media-preview after 6773 ms
[Code OSS] [watch-extensions] [06:33:18] Starting watch-extension:media-preview ...
[Code OSS] [watch-extensions] [06:33:18] Finished clean-extension-notebook-renderers after 6801 ms
[Code OSS] [watch-extensions] [06:33:18] Starting watch-extension:notebook-renderers ...
[Code OSS] [watch-extensions] [06:33:18] Finished clean-extension-npm after 6827 ms
[Code OSS] [watch-extensions] [06:33:18] Starting watch-extension:npm ...
[Code OSS] [watch-extensions] [06:33:18] Finished clean-extension-search-result after 6861 ms
[Code OSS] [watch-extensions] [06:33:18] Starting watch-extension:search-result ...
[Code OSS] [watch-extensions] [06:33:18] Finished clean-extension-references-view after 6898 ms
[Code OSS] [watch-extensions] [06:33:18] Starting watch-extension:references-view ...
[Code OSS] [watch-extensions] [06:33:18] Finished clean-extension-typescript-language-features-web after 6924 ms
[Code OSS] [watch-extensions] [06:33:18] Starting watch-extension:typescript-language-features-web ...
[Code OSS] [watch-extensions] [06:33:18] Finished clean-extension-vscode-api-tests after 6937 ms
[Code OSS] [watch-extensions] [06:33:18] Starting watch-extension:vscode-api-tests ...
[Code OSS] [watch-extensions] [06:33:18] Finished clean-extension-vscode-test-resolver after 7065 ms
[Code OSS] [watch-extensions] [06:33:18] Starting watch-extension:vscode-test-resolver ...
[Code OSS] [watch-client ] [06:33:20] Finished compilation api-proposal-names with 0 errors after 4701 ms
[Code OSS] [watch-extensions] [06:33:24] Finished clean-extension-github-authentication after 13279 ms
[Code OSS] [watch-extensions] [06:33:24] Starting watch-extension:github-authentication ...
[Code OSS] [watch-extensions] [06:33:24] Finished clean-extension-markdown-language-features after 13316 ms
[Code OSS] [watch-extensions] [06:33:24] Starting watch-extension:markdown-language-features ...
[Code OSS] [watch-extensions] [06:33:24] Finished clean-extension-microsoft-authentication after 13377 ms
[Code OSS] [watch-extensions] [06:33:24] Starting watch-extension:microsoft-authentication ...
[Code OSS] [watch-extensions] [06:33:24] Finished clean-extension-php-language-features after 13435 ms
[Code OSS] [watch-extensions] [06:33:24] Starting watch-extension:php-language-features ...
[Code OSS] [watch-extensions] [06:33:24] Finished clean-extension-typescript-language-features after 13469 ms
[Code OSS] [watch-extensions] [06:33:24] Starting watch-extension:typescript-language-features ...
[Code OSS] [watch-extensions] [06:33:28] Finished clean-extension-html-language-features-server after 16640 ms
[Code OSS] [watch-extensions] [06:33:28] Starting watch-extension:html-language-features-server ...
[Code OSS] [watch-extensions] [06:35:03] Finished compilation extensions with 0 errors after 109009 ms
[Code OSS] [watch-client ] [06:37:11] Finished compilation with 0 errors after 236410 ms
[Code OSS] ✨ Finished compiling! ✨ (Refresh your web browser ♻️)
[code-server] Spawned web server process 44824
[code-server] Web process 44824 exited
[Code OSS] [watch-client ] [06:37:12] Starting compilation...
[Code OSS] [watch-client ] [06:37:12] Finished compilation with 0 errors after 21 ms
[Code OSS] ✨ Finished compiling! ✨ (Refresh your web browser ♻️)
[code-server] Spawned web server process 44831
[code-server] Web process 44831 exited The web server process seems to be exiting immediately after spawning. I've checked the logs for any error messages, but they don't seem to indicate what the issue might be. I'm hoping someone from the code-server team can help me troubleshoot this. Steps to Reproduce:
Expected Behavior:The development server should start and remain running, allowing me to work on the source code. Actual Behavior:The web server process exits immediately after starting. Additional Information:I've checked the system logs and there are no error messages that stand out. I'm running this on a local development machine with the specifications and software versions listed above. I appreciate any assistance you can provide in resolving this issue. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 13 replies
-
I got to Had to manually copy paste some files to get to this point |
Beta Was this translation helpful? Give feedback.
-
Additionally, the yarn watch command does not generate an out directory, and when I try to access port 8080 in the browser, I get a "connection refused" error. The logs just hang there without any further output. |
Beta Was this translation helpful? Give feedback.
-
Make sure to use But yeah, just tried now and I am seeing a similar issue where it exits although I get more output than you. I am not sure when this went wrong... |
Beta Was this translation helpful? Give feedback.
Oh wait I forgot I was experimenting with updating Express, and the updated version crashes code-server at the moment.
I ran
npm install
offmain
again, and it works as expected for me. Could you try latestmain
or the 4.95.1 tag?