-
Notifications
You must be signed in to change notification settings - Fork 13
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
Command 'direnv: Reset and reload environment' resulted in an error #434
Comments
Huh. Not really? The command is registered here: https://github.com/direnv/direnv-vscode/blob/main/src/extension.ts#L356 |
I'm running into the same issue -- given that the command was working days ago and the extension is installed and enabled, I can't figure out for the life of me why the command might not be found: |
A few more maybe-useful pieces of debugging information:
I also tried uninstalling the extension, quitting VS Code, restarting VS Code, and reinstalling the extension without any success: I continue to get the same error. |
So bizzare. Thank you for the recording.
|
Here's a screenshot of the running extensions: Definitely seems... suspect that so many show up as "activating"? In the developers tools, I see: The extension host seems to oscillate between "responsive" and "unresponsive" states. I did find this issue which is supposedly fixed. I am using the extension for a repository within a devcontainer (not running on GitHub codespaces, but rather locally), and that issue does seem to be related to devcontainers. But I also know that last week the extension was working fine 🤔 |
Darn. That does look like a bug in vscode itself though, could you open another issue there? (Make sure you open with the Thanks for investigating! |
Yep - I'll do that. Sorry for the noise and thanks for helping to debug. With those logs, it definitely seems to be vscode related and I now see that other extensions that are hung in the "activating" state suffer the same fate when you try to run those commands. |
Just following up here for any future searchers: I managed to resolve the problem, which was not at all related to the I discovered the answer by searching the VS Code issues for As that issue suggests, I fixed the issue (as described in that comment) with: $ sudo apt-get remove --purge datadog-agent -y
$ rm -rf /opt/datadog
$ sudo nano /etc/ld.so.preload
# Edit ☝️ to remove the datadog-related line After that, I needed to close down VS Code, wait for my devcontainer Docker containers to shut down, then reopen VS Code and the issue was resolved. @gduquesnay was an absolute lifesaver there -- I have no idea how he managed to identify that fix, but I'm glad he shared it. |
Hi!
My VS Code tasks aren't picking up my nix.shell, and I'm currently investigating why.
direnv: reset and reload environment
is currently giving meAny pointers?
Many thanks,
Paul
The text was updated successfully, but these errors were encountered: