-
Notifications
You must be signed in to change notification settings - Fork 208
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
DevContainer must rebuild everytime VS Code launches #2906
Comments
That does look unfriendly, particularly the initial 30 seconds. I'm not sure how much is on PRQL vs Microsoft... Thanks for the video, that makes it visceral (and nice theme!). Possibly #2898 could help?? (not confident though)
Yes, the caching is exclusive. |
I'm just reporting this so that we can review the user experience as we move along. To summarize:
Thanks again. |
I think these are rust-analizer issues, not Microsoft or PRQL.
The toast that devcontainer.json has been updated can simply be ignored. Not "must". |
Is this because the devcontainer.json in the repository has changed? I have never actually seen this toast appear even though the devcontainer.json has not changed. I have been doing almost all my programming work on Dev Containers for the past 3 years.
I see this a lot, not just in this repository, but I think it is simply VSCode working faster than the container termination and startup process controlled by Docker and the connection is not working. If you think this is a bug, please report it here. https://github.com/microsoft/vscode-remote-release |
I am not familiar with rust-analizer, but perhaps the implicit build time is reduced because duckdb-rs is removed as a default development dependency? (#2899) |
This happens even if I start VS Code, let it fully bring up the Dev Container (including all the rust-analyzer time), then quit VS Code (without making any changes), then restart it. Could it occur because I just quit (Cmd-Q) from VS Code without any other warning? I can live with this just fine - I'm just following my company's old slogan [1] by pointing it out. Thank you again. [1] "We promise not to fix it if we don't know it's broke." :-) |
VSCode should compare the latest devcontainer.json with the devcontainer.json used to build the container. So whether you see toast or not depends on when you last built the container. |
For the caching — should we mount a volume for @richb-hanover if you want to give this a go, it's just another entry here: prql/.devcontainer/devcontainer.json Lines 26 to 32 in 4814215
|
I see that definition ("target: ... /usr/local/cargo/registry") is already in that file. I assume another Sorry, I'm not really up to speed on Docker/DevContainer tricks. How would we include |
That's exactly correct! Map a volume to |
The repository is implicitly bind-mounted. See official documentation. |
Ah, thanks @eitsupi , sorry for giving bad direction. It's surprised that rust-analyzer churns away each time, then. @richb-hanover does this happen even without rebuilding the container? Or is this downstream of the issues re rebuilding on mistaken changed files notifications? |
You guys are amazing! Just by talking about the problem in this thread, you have caused my computer to act better... No really - it's true. I had not retrieved any new commits from Github, but now when I start VS Code, I do not see the "Rebuild?" question - it just acts right. I even retrieved all new commits to make my repo up to date, and it did recompile everything. But after that completed, quitting VS Code and relaunching it didn't give the "Rebuild" message and it only took a few moments to be able to run the second time. [I'm actually suspicious of this "fix" - I don't know what caused it, and won't be surprised if it crops up again.] But for now, I'm happy. And if it goes south in the future, I'll re-open this issue. Thanks! Update: If you're really bored, you can watch all the error messages glide by in this (extremely long) video: https://youtu.be/plg7FcXxpVU |
We aim to please! :) |
What's up?
The Dev Container works well, but its user experience is kinda rocky. I'm using a MacBook Pro, macOS 12.6.3, latest Docker, VS Code, etc. I'm reporting this in case there's something wrong/screwy. I posted a video screen shot at https://youtu.be/BMh-ilwXbzE Here's what I see:
Each time I start up VS Code, I get a warning that devcontainer.json has changed. (It hasn't - at least I haven't changed it intentionally.) When I click the Rebuild button, I frequently get an alert "An error occurred setting up the container." Clicking Retry usually restarts the Dev Container and it progresses as desired.
At the point I see the "Press any key..." message in the console, I then see the "Acquiring CodeLLDB..." message. This progresses rapidly, then goes away. I can then use the Dev Container.
Other observations:
task run-playground
ortask run-playground-cached
immediately.task run-book
gives an errorBlocking waiting for file lock on build directory
until the rust analyzer has completed all its checks.What other information could I provide? Thanks.
The text was updated successfully, but these errors were encountered: