-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Turbo chooses to create cookie files in the first project in the workspace of the VSCode single repository #9126
Comments
Hey, thanks for the issue. Turborepo does not support nested workspaces, which your setup appears to be. In the case where a nested workspace does appear, Turborepo assumes that the workspace closest to your drive home is the root one and puts all relevant files there. In this case, it's putting the cookie files, which are produced by the daemon for file watching, in that workspace. If you are indeed using nested workspaces, I'd recommend moving the |
Thank you very much for answering my questions, it helps me a lot to understand Turbo.😄 |
It's definitely something we're looking into. To be frank, we need to investigate the support story for nested workspaces in the larger ecosystem. If it looks good, we're definitely more likely to consider it. So, as someone who uses it a fair amount, would you say that the support is good? Have you tried with different package managers? |
Perhaps there is a misunderstanding regarding the term "workspace" mentioned in this issue. I want to clarify that the workspace I am referring to is VSCode's own workspace, and you can find its documentation here. It has no correlation with the "workspace" in a monorepo. In the second step of the reproduction process I initially mentioned, I tried adding a monorepo managed by Turbo into the workspace, and this "workspace" refers to VSCode's Multi-root Workspaces. Of course, the project As per my understanding, if I didn’t create a Multi-root workspace and just placed multiple projects in the same folder, opening the folder in VSCode, it might make some sense if Turbo was still generating cache files within Lastly, I haven’t used the workspace feature of other package managers. As far as I recall, package managers like Yarn and Bun also support monorepo workspaces. My team is still using Yarn, but none of our repositories are monorepos. That said, I currently believe pnpm remains one of the best options for managing monorepos. |
Verify canary release
Link to code that reproduces this issue
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Which canary version will you have in your reproduction?
2.1.1
Describe the Bug
I'm trying to learn this exciting library today, but as I'm reading the official docs and taking action, something confuses me, Turbo creates a lot of cookies files, not in the root of the project, but in the first project's folder in my vscode workspace, which is very strange and interferes with my This is very strange and affects my experience.
I don't know what these files do yet, but one thing is for sure, these files "can't find their mommy".
These cookie files are giving me a headache🥲
Expected Behavior
The cookies file is exported in the correct project folder.
To Reproduce
pnpm install -r
Additional context
I have found that this issue may be in the same situation as mine, and I hope it can be helpful for fixing it.
#7671
The text was updated successfully, but these errors were encountered: