Skip to content
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

[Bug]: Unable to build code-server from source code. Developer build commands yarn install and yarn watch failing. #6695

Open
6 tasks done
toduyemi opened this issue Feb 29, 2024 · 2 comments
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer

Comments

@toduyemi
Copy link

Is there an existing issue for this?

  • 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:
Screenshot 2024-02-29 at 1 56 52 AM

yarn watch:
Screenshot 2024-02-29 at 1 57 12 AM

build.log:
Screenshot 2024-02-29 at 1 58 50 AM

Does this issue happen in VS Code or GitHub Codespaces?

  • I tested this in native VS Code.
  • This does not happen in native VS Code.
  • I tested this in GitHub Codespaces.
  • This does not happen in GitHub Codespaces.

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

No response

@toduyemi toduyemi added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Feb 29, 2024
@code-asher
Copy link
Member

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.

@code-asher
Copy link
Member

And I wonder if we can force the version of yarn in the package.json, maybe with the engines key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants