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

Cloning the repo and running the test suite fails to download vscode #98

Closed
kevinramharak opened this issue Mar 20, 2024 · 0 comments · Fixed by #99
Closed

Cloning the repo and running the test suite fails to download vscode #98

kevinramharak opened this issue Mar 20, 2024 · 0 comments · Fixed by #99
Labels
bug Something isn't working

Comments

@kevinramharak
Copy link
Contributor

I checked out the repo locally and used npm ci to install the packages from the package-lock.json.
I ran npm run test in the command line, it fails with the following output:

$ npm run test

> [email protected] pretest
> npm run compile-tests && npm run compile && npm run lint


> [email protected] compile-tests
> tsc -p . --outDir out


> [email protected] compile
> node scripts/build


> [email protected] lint
> eslint src --ext ts & tsc --noEmit


> [email protected] test
> node ./out/test/runTest.js

Downloading VS Code 1.87.2 from https://update.code.visualstudio.com/1.87.2/win32-x64-archive/stable
gzip: stdin has more than one entry--rest ignored
tar: Child died with signal 13
tar: Error is not recoverable: exiting now
node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at afterWriteDispatched (node:internal/stream_base_commons:160:15)
    at writeGeneric (node:internal/stream_base_commons:151:3)
    at Socket._writeGeneric (node:net:930:11)
    at Socket._write (node:net:942:8)
    at doWrite (node:internal/streams/writable:411:12)
    at clearBuffer (node:internal/streams/writable:572:7)
    at onwrite (node:internal/streams/writable:464:7)
    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:106:10)
Emitted 'error' event on Socket instance at:
    at Socket.onerror (node:internal/streams/readable:785:14)
    at Socket.emit (node:events:513:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4047,
  code: 'EPIPE',
  syscall: 'write'
}

I tried this both on node 20 and 18. Looking at https://github.com/microsoft/vscode-test/issues they suggest updating to the latest version.

I checked the package-lock.json and noticed it is locked at 2.3.3. When I updated the package to 2.3.9 the test suite runs and succeeds as expected.

I will add an PR with the fix.

@kevinramharak kevinramharak added the bug Something isn't working label Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant