Skip to content

Can someone please document the steps required to build locally ? #143

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
ymolists opened this issue Mar 8, 2019 · 8 comments
Closed

Can someone please document the steps required to build locally ? #143

ymolists opened this issue Mar 8, 2019 · 8 comments

Comments

@ymolists
Copy link

ymolists commented Mar 8, 2019

Description

i tried:

$node --version
v8.11.3

$yarn --version
1.13.0

$npm --version
5.6.0

git checkout 1.31.1-100
yarn install

then:
./scripts/build.sh which completed successfully:

019-03-08T17_29_25_667Z-debug.log\n"}
INFO  BUILD:BOOTSTRAP-FORK Completed! time=54596ms {"time":{"expected":9007199254740991,"ms":1552066111081}}
INFO  BUILD:WEB Completed! time=63722ms {"time":{"expected":9007199254740991,"ms":1552066111081}}
INFO  BUILD:SERVER:BUNDLE Completed! time=104650ms {"time":{"expected":9007199254740991,"ms":1552066111082}}
INFO  BUILD:SERVER:BINARY:PACKAGE Starting...
INFO  BUILD:SERVER:BINARY:COPY Starting...
INFO  BUILD:SERVER:BINARY:COPY Completed! time=2164ms {"time":{"expected":9007199254740991,"ms":1552066215732}}
INFO  DEPENDENCY:NEXE Starting...
INFO  DEPENDENCY:NEXE Completed! time=1ms {"time":{"expected":9007199254740991,"ms":1552066217896}}
INFO  BUILD:SERVER:BINARY:PACKAGE Executing 'npm ["run","build:nexe"]' {"options":{"cwd":"/home/ymo/3rdp.dev/coder/code-server.master/packages/server"}}

INFO  BUILD:SERVER:BINARY:PACKAGE Completed! time=36698ms {"time":{"expected":9007199254740991,"ms":1552066215732}}
INFO  BUILD:SERVER:BINARY Completed! time=217293ms {"time":{"expected":9007199254740991,"ms":1552066035137}}

i then did:
yarn start which came out with a blank screen and errors:

$yarn start 
yarn run v1.13.0
$ cd ./packages/server && yarn start
warning package.json: No license field
warning ../package.json: No license field
$ node --max-old-space-size=32384 --require ts-node/register --require tsconfig-paths/register src/cli.ts
INFO  code-server development
INFO  Additional documentation: http://github.com/codercom/code-server
INFO  Initializing {"data-dir":"/home/ymo/.code-server","working-dir":"/home/ymo/3rdp.dev/coder/code-server.master/packages/server","log-dir":"/home/ymo/.code-server/logs/20190308172602755"}
Happy[ts]: Version: 5.0.1. Threads: 7
INFO  Starting webserver... {"host":"0.0.0.0","port":8443}
WARN  No certificate specified. This could be insecure.
WARN  Documentation on securing your setup: https://coder.com/docs
INFO   
INFO  Password: c7b3f8918a184bd3b8b7aba8
INFO   
INFO  Started (click the link below to open):
INFO  http://localhost:8443/
INFO   
INFO  Starting shared process [1/5]...
Happy[ts]: All set; signaling webpack to proceed.
INFO  Connected to shared process
INFO  wait until bundle finished: /__webpack_hmr
INFO  wait until bundle finished: /__webpack_hmr
INFO  wait until bundle finished: /
webpack built b414e8f268169b82b493 in 31017ms
ERROR 
WARNING in ./lib/vscode/src/vs/workbench/contrib/cli/node/cli.contribution.ts 30:46-53
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

WARNING in ./lib/vscode/src/vs/platform/environment/node/environmentService.ts 76:74-81
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

WARNING in ./lib/vscode/src/vs/workbench/services/files/node/watcher/nsfw/watcherService.ts 28:68-75
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

WARNING in ./lib/vscode/src/vs/platform/product/node/product.ts 9:55-62
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

WARNING in ./lib/vscode/src/vs/workbench/services/files/node/watcher/unix/watcherService.ts 29:68-75
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

WARNING in ./lib/vscode/src/vs/base/node/processes.ts 54:49-56
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

WARNING in ./lib/vscode/src/vs/platform/product/node/package.ts 8:59-66
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

WARNING in ./lib/vscode/node_modules/getmac/index.js 3:63-70
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

WARNING in ./lib/vscode/src/vs/workbench/contrib/debug/node/debugger.ts 258:72-79
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

WARNING in ./lib/vscode/src/vs/workbench/contrib/debug/node/terminals.ts 127:60-67
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

WARNING in ./lib/vscode/src/vs/workbench/services/extensions/electron-browser/cachedExtensionScanner.ts 326:96-103
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

WARNING in ./lib/vscode/src/vs/platform/environment/node/environmentService.ts 183:75-82
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

WARNING in ./lib/vscode/src/vs/workbench/services/extensions/electron-browser/extensionHost.ts 156:94-101
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

WARNING in ./lib/vscode/src/vs/workbench/contrib/performance/electron-browser/perfviewEditor.ts 245:39-46
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

WARNING in ./lib/vscode/src/vs/workbench/contrib/execution/electron-browser/terminalService.ts 113:60-67
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

WARNING in ./lib/vscode/src/vs/workbench/services/search/node/searchService.ts 419:68-75
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

WARNING in ./lib/vscode/src/vs/workbench/services/extensions/electron-browser/cachedExtensionScanner.ts 31:84-91
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

WARNING in ./lib/vscode/src/vs/workbench/services/extensions/electron-browser/cachedExtensionScanner.ts 38:92-99
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

WARNING in ./lib/vscode/src/vs/workbench/services/files/node/watcher/win32/csharpWatcherService.ts 33:58-65
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

WARNING in ./lib/vscode/src/vs/editor/common/services/editorSimpleWorker.ts 461:12-471:22
Critical dependency: the request of a dependency is an expression

WARNING in ./lib/vscode/src/vs/platform/product/node/package.ts 10:22-46
Critical dependency: the request of a dependency is an expression

WARNING in ./lib/vscode/src/vs/platform/product/node/product.ts 11:14-38
Critical dependency: the request of a dependency is an expression

WARNING in ./lib/vscode/node_modules/vscode-textmate/release/main.js 14:15-27
Critical dependency: the request of a dependency is an expression

ERROR in ./lib/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.ts
Module not found: Error: Can't resolve 'vs/workbench/contrib/codeEditor/electron-browser/media/WordWrap_16x.svg' in '/home/ymo/3rdp.dev/coder/code-server.master/lib/vscode/src/vs/workbench/contrib/codeEditor/browser'

ERROR in ./packages/vscode/src/workbench.ts
Module not found: Error: Can't resolve 'vs/workbench/parts/files/common/explorerModel' in '/home/ymo/3rdp.dev/coder/code-server.master/packages/vscode/src'

ERROR in ./packages/vscode/src/fill/workbenchRegistry.ts
Module not found: Error: Can't resolve 'vs/workbench/parts/terminal/common/terminal' in '/home/ymo/3rdp.dev/coder/code-server.master/packages/vscode/src/fill'

ERROR in ./packages/vscode/src/fill/paste.ts
Module not found: Error: Can't resolve 'vs/workbench/parts/terminal/common/terminal' in '/home/ymo/3rdp.dev/coder/code-server.master/packages/vscode/src/fill'

ERROR in ./packages/vscode/src/fill/paste.ts
Module not found: Error: Can't resolve 'vs/workbench/parts/terminal/common/terminalCommands' in '/home/ymo/3rdp.dev/coder/code-server.master/packages/vscode/src/fill'

ERROR in ./packages/vscode/src/fill/workbenchRegistry.ts
Module not found: Error: Can't resolve 'vs/workbench/parts/terminal/electron-browser/terminalActions' in '/home/ymo/3rdp.dev/coder/code-server.master/packages/vscode/src/fill'

ERROR in ./packages/vscode/src/fill/paste.ts
Module not found: Error: Can't resolve 'vs/workbench/parts/terminal/electron-browser/terminalActions' in '/home/ymo/3rdp.dev/coder/code-server.master/packages/vscode/src/fill'

ERROR in ./packages/vscode/src/fill/paste.ts
Module not found: Error: Can't resolve 'vs/workbench/parts/terminal/electron-browser/terminalInstance' in '/home/ymo/3rdp.dev/coder/code-server.master/packages/vscode/src/fill'

ERROR in ./lib/vscode/src/vs/platform/accessibility/node/accessibilityService.ts
Module not found: Error: Can't resolve 'vscode-windows-registry' in '/home/ymo/3rdp.dev/coder/code-server.master/lib/vscode/src/vs/platform/accessibility/node'
INFO  Failed to compile.
ERROR SHARED stderr {"data":"Uncaught Exception:  Error: ENOENT: no such file or directory, open '/home/ymo/.code-server/Backups/workspaces.json'\n\nError: ENOENT: no such file or directory, open '/home/ymo/.code-server/Backups/workspaces.json'\n    at Timeout.setTimeout (eval at exports.requireModule (/home/ymo/3rdp.dev/coder/code-server.master/packages/server/src/vscode/bootstrapFork.ts:115:2), <anonymous>:52517:31)\n    at ontimeout (timers.js:498:11)\n    at tryOnTimeout (timers.js:323:5)\n    at Timer.listOnTimeout (timers.js:290:5)\n"}
^C
@NGTmeaty
Copy link
Contributor

NGTmeaty commented Mar 8, 2019

Conversation and partial instructions should be found here: #17

@ymolists
Copy link
Author

ymolists commented Mar 8, 2019

Do you know this error is happening ?

@nhooyr
Copy link
Contributor

nhooyr commented Mar 8, 2019

Please use the Dockerfile.

@nhooyr nhooyr closed this as completed Mar 8, 2019
@nhooyr nhooyr reopened this Mar 17, 2019
@nhooyr
Copy link
Contributor

nhooyr commented Mar 17, 2019

Looks like people do want instructions to build locally without docker.

@phpdave11
Copy link

@nhooyr yes it would be nice to have build instructions for people who do not use docker. Docker only works on linux unless you run it in a VM.

For my development environment I have php and node.js running natively on macOS. The macOS code-server binary you provided works fine, but it would be nice to know the steps to build that binary.

@code-asher
Copy link
Member

Let's track this in #417.

@qinzehua
Copy link

Looks like people do want instructions to build locally without docker.

Hi, what is the stop of Dockerfile. I am currently on the main branch, can't find a Can you provide an example?

@jsjoeio
Copy link
Contributor

jsjoeio commented Jan 12, 2022

@qinzehua have you followed the CONTRIBUTING guide?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants