Skip to content

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

@toduyemi

Description

@toduyemi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageThis issue needs to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions