Skip to content

how to run from latest repo #335

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
polymerchm opened this issue Mar 25, 2019 · 13 comments
Closed

how to run from latest repo #335

polymerchm opened this issue Mar 25, 2019 · 13 comments

Comments

@polymerchm
Copy link

polymerchm commented Mar 25, 2019

Want to use without waiting for next binary. Is there any instruction on how to build the binary on my local machine

Related Issues

@polymerchm polymerchm changed the title how to run form latest repo how to run from latest repo Mar 25, 2019
@MichaelDesantis
Copy link
Contributor

@polymerchm

See #17

@nol166
Copy link
Contributor

nol166 commented Mar 25, 2019

@polymerchm You could try:

  1. cd into code-server
  2. Run yarn
  3. Run yarn task vscode:clone
  4. Run yarn task vscode:patch
  5. Run yarn task buld:bootstrap-fork
  6. Finally, yarn start

If that doesn't work let me know. I might be missing a step.

@nol166
Copy link
Contributor

nol166 commented Mar 25, 2019

I believe you will also need a version of node 8. I use v8.15.0 which seems to work well.

@polymerchm
Copy link
Author

Get this. Not sure what to do next.

ERROR VSCODE:INSTALL failed {"exitCode":1,"stdout":"$ node build/npm/preinstall.js\n[1/4] Resolving packages...\n[2/4] Fetching packages...\ninfo [email protected]: The platform "linux" is incompatible with this module.\ninfo "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.\ninfo [email protected]: The platform "linux" is incompatible with this module.\ninfo "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.\ninfo [email protected]: The platform "linux" is incompatible with this module.\ninfo "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.\ninfo [email protected]: The platform "linux" is incompatible with this module.\ninfo "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.\ninfo [email protected]: The platform "linux" is incompatible with this module.\ninfo "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.\ninfo [email protected]: The platform "linux" is incompatible with this module.\ninfo "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.\ninfo [email protected]: The platform "linux" is incompatible with this module.\ninfo "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.\n[3/4] Linking dependencies...\n[4/4] Building fresh packages...\ninfo Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.\n","stderr":"warning " > [email protected]" has incorrect peer dependency "typescript@^2.0.10".\nerror /usr/local/code-server/lib/vscode/node_modules/native-keymap: Command failed.\nExit code: 1\nCommand: node-gyp rebuild\nArguments: \nDirectory: /usr/local/code-server/lib/vscode/node_modules/native-keymap\nOutput:\ngyp info it worked if it ends with ok\ngyp info using [email protected]\ngyp info using [email protected] | linux | x64\ngyp info spawn /usr/bin/python2\ngyp info spawn args [ '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',\ngyp info spawn args 'binding.gyp',\ngyp info spawn args '-f',\ngyp info spawn args 'make',\ngyp info spawn args '-I',\ngyp info spawn args '/usr/local/code-server/lib/vscode/node_modules/native-keymap/build/config.gypi',\ngyp info spawn args '-I',\ngyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',\ngyp info spawn args '-I',\ngyp info spawn args '/home/spollack/.node-gyp/iojs-3.1.3/common.gypi',\ngyp info spawn args '-Dlibrary=shared_library',\ngyp info spawn args '-Dvisibility=default',\ngyp info spawn args '-Dnode_root_dir=/home/spollack/.node-gyp/iojs-3.1.3',\ngyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',\ngyp info spawn args '-Dnode_lib_file=/home/spollack/.node-gyp/iojs-3.1.3/<(target_arch)/iojs.lib',\ngyp info spawn args '-Dmodule_root_dir=/usr/local/code-server/lib/vscode/node_modules/native-keymap',\ngyp info spawn args '-Dnode_engine=v8',\ngyp info spawn args '--depth=.',\ngyp info spawn args '--no-parallel',\ngyp info spawn args '--generator-output',\ngyp info spawn args 'build',\ngyp info spawn args '-Goutput_dir=.' ]\nPackage x11 was not found in the pkg-config search path.\nPerhaps you should add the directory containing x11.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'x11' found\nPackage xkbfile was not found in the pkg-config search path.\nPerhaps you should add the directory containing xkbfile.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'xkbfile' found\ngyp: Call to 'pkg-config x11 xkbfile --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp\ngyp ERR! configure error \ngyp ERR! stack Error: gyp failed with exit code: 1\ngyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)\ngyp ERR! stack at ChildProcess.emit (events.js:182:13)\ngyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)\ngyp ERR! System Linux 4.15.0-46-generic\ngyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"\ngyp ERR! cwd /usr/local/code-server/lib/vscode/node_modules/native-keymap\ngyp ERR! node -v v10.10.0\ngyp ERR! node-gyp -v v3.8.0\ngyp ERR! not ok\n"}

ERROR VSCODE:INSTALL Failed: Failed to install vscode dependencies: warning " > [email protected]" has incorrect peer dependency "typescript@^2.0.10".
error /usr/local/code-server/lib/vscode/node_modules/native-keymap: Command failed.
Exit code: 1

@nol166
Copy link
Contributor

nol166 commented Mar 25, 2019

@polymerchm It looks like you are using Mac, try swapping out linux for darwin

yarn task build:server:binary:darwin

it should output to packages/server/

@polymerchm
Copy link
Author

No. Building in on a linux box. Ubuntu

@polymerchm
Copy link
Author

How often do binaries come out?

@MichaelDesantis
Copy link
Contributor

@polymerchm we release new versions whenever we have meaningful updates ready and tested. We don't have a set release schedule at the moment. Thus far we've been submitting new releases a few times per week.

@polymerchm
Copy link
Author

Just struggling with installing on a linux box from the "repos". Yarn, npm and I are not good friends.

@navin-moorthy
Copy link

@nol166 Even I got the same error using Ubuntu 18.04.

@nol166
Copy link
Contributor

nol166 commented Mar 26, 2019

What version of node are you guys using when running the yarn build tasks

@code-asher
Copy link
Member

Package xkbfile was not found in the pkg-config search path might be the key. Do you have libxkbfile-dev installed? Running pkg-config x11 xkbfile --libs should give you something like -lX11 -lxkbfile.

@code-asher
Copy link
Member

Closing in favor of #417.

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

5 participants