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

[rush] purge fails with "File does not exist: common/temp/rush-recycler" #4334

Closed
mikeharder opened this issue Sep 15, 2023 · 1 comment · Fixed by #4376
Closed

[rush] purge fails with "File does not exist: common/temp/rush-recycler" #4334

mikeharder opened this issue Sep 15, 2023 · 1 comment · Fixed by #4376

Comments

@mikeharder
Copy link
Contributor

Summary

Command rush purge fails with error File does not exist: common/temp/rush-recycler

Repro steps

$ gh repo clone microsoft/rushstack
$ cd rushstack
$ rush install

$ rush --debug purge

Error: File does not exist: /home/mharder/rushstack/common/temp/rush-recycler
ENOENT: no such file or directory, scandir '/home/mharder/rushstack/common/temp/rush-recycler'
    at Object.readdirSync (node:fs:1527:3)
    at /home/mharder/.nvm/versions/node/v18.17.1/lib/node_modules/@microsoft/rush/node_modules/@rushstack/node-core-library/lib/FileSystem.js:342:35
    at FileSystem._wrapException (/home/mharder/.nvm/versions/node/v18.17.1/lib/node_modules/@microsoft/rush/node_modules/@rushstack/node-core-library/lib/FileSystem.js:1050:20)
    at FileSystem.readFolderItemNames (/home/mharder/.nvm/versions/node/v18.17.1/lib/node_modules/@microsoft/rush/node_modules/@rushstack/node-core-library/lib/FileSystem.js:340:27)
    at AsyncRecycler.deleteAll (/home/mharder/.nvm/versions/node/v18.17.1/lib/node_modules/@microsoft/rush/node_modules/@microsoft/rush-lib/dist/commons.js:23910:105)
    at PurgeManager.deleteAll (/home/mharder/.nvm/versions/node/v18.17.1/lib/node_modules/@microsoft/rush/node_modules/@microsoft/rush-lib/dist/commons.js:14523:39)
    at PurgeAction.runAsync (/home/mharder/.nvm/versions/node/v18.17.1/lib/node_modules/@microsoft/rush/node_modules/@microsoft/rush-lib/dist/commons.js:8787:22)
    at PurgeAction.onExecute (/home/mharder/.nvm/versions/node/v18.17.1/lib/node_modules/@microsoft/rush/node_modules/@microsoft/rush-lib/dist/commons.js:6601:21)
    at PurgeAction.onExecute (/home/mharder/.nvm/versions/node/v18.17.1/lib/node_modules/@microsoft/rush/node_modules/@microsoft/rush-lib/dist/commons.js:6641:22)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@microsoft/rush globally installed version? 5.106.0
rushVersion from rush.json? 5.106.0
useWorkspaces from rush.json? false
Operating system? Linux
Would you consider contributing a PR? No
Node.js version (node -v)? 18.17.1
mikeharder added a commit to mikeharder/typespec that referenced this issue Sep 16, 2023
mikeharder added a commit to microsoft/typespec that referenced this issue Sep 16, 2023
- Workaround for microsoft/rushstack#4334
- Partially fixes Azure/typespec-azure#3473
@iclanton iclanton moved this to Needs triage in Bug Triage Sep 18, 2023
@iclanton iclanton moved this from Needs triage to Needs Investigation in Bug Triage Oct 2, 2023
@github-project-automation github-project-automation bot moved this from Needs Investigation to Closed in Bug Triage Oct 2, 2023
@iclanton
Copy link
Member

iclanton commented Oct 2, 2023

Thanks for reporting this! This has been fixed in Rush 5.108.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants