code-server
code-server copied to clipboard
[Bug]: Unable to build code-server from source code. Developer build commands `yarn install` and `yarn watch` failing.
Is there an existing issue for this?
- [X] I have searched the existing issues
OS/Web Information
- Web Browser: Chrome
- Local OS: macOS
- Remote OS: macOS
- Remote Architecture:
-
code-server --version
: 4.21.2
Steps to Reproduce
1.git clone https://github.com/coder/code-server.git
2. git submodule update --init
- Clone vscode submodule
3. quilt push -a
4. yarn
5. yarn watch
Expected
Dependencies should install and code-serve should go live at port 8080.
Actual
Errors are thrown in steps 3 and 4.
Logs
yarn global add code-server
:
Internal Error: code-server@workspace:.: This package doesn't seem to be present in your lockfile; run "yarn install" to update the lockfile at Xx.getCandidates (/Users/temioduyemi/.cache/node/corepack/yarn/4.1.0/yarn.js:205:8149) at Dd.getCandidates (/Users/temioduyemi/.cache/node/corepack/yarn/4.1.0/yarn.js:141:1311) at /Users/temioduyemi/.cache/node/corepack/yarn/4.1.0/yarn.js:210:8409 at Ky (/Users/temioduyemi/.cache/node/corepack/yarn/4.1.0/yarn.js:140:53916) at Fe (/Users/temioduyemi/.cache/node/corepack/yarn/4.1.0/yarn.js:210:8389) at async Promise.allSettled (index 0) at async Uc (/Users/temioduyemi/.cache/node/corepack/yarn/4.1.0/yarn.js:140:53244) at async /Users/temioduyemi/.cache/node/corepack/yarn/4.1.0/yarn.js:210:9140 at async Qi.startProgressPromise (/Users/temioduyemi/.cache/node/corepack/yarn/4.1.0/yarn.js:140:137284) at async Pt.resolveEverything (/Users/temioduyemi/.cache/node/corepack/yarn/4.1.0/yarn.js:210:7138)
Screenshot/Video
yarn
:
yarn watch
:
build.log:
Does this issue happen in VS Code or GitHub Codespaces?
- [X] I tested this in native VS Code.
- [X] This does not happen in native VS Code.
- [X] I tested this in GitHub Codespaces.
- [X] This does not happen in GitHub Codespaces.
Are you accessing code-server over a secure context?
- [X] I am using a secure context.
Notes
No response
Oh interesting, is this a new version of yarn without support for --no-default-rc
? It seems to be 4.1.0 but we are still using Yarn v1. We should add the yarn version to the contributing docs.
And I wonder if we can force the version of yarn in the package.json
, maybe with the engines
key.