-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[BUG] Datadog agent silently corrupts Visual Studio Code and other JavaScript applications on a server #21882
Comments
We are able to reproduce this error and are looking into what is causing it. |
Further noting that running |
Over the last two weeks I have had two separate Windows machines have their Visual Studio 2022 installations corrupted. Repairing the installation and uninstalling/reinstalling Visual Studio did not resolve the issue. The only thing that got me back into working order was a fresh install of Windows. Reading through this thread made me realize that on both of these machines the This sounded similar enough to the issue creator's problem so I wanted to provide another datapoint. |
@gferreri Did you follow all the steps? apt remove datadog-agent
nano /etc/ld.so.preload # Remove Datadog system level infector
rm -rf /opt/datadog
# Remove the server from Datadog and make sure it is not part of any recurring subscription I can confirm the issue was fixed once I completely removed the DD agent using the steps above. @yshapiro-57 Any news on this? |
I can confirm that removing the Datadog Agent on my remote host also immediately fixed the problems I was having with basic VSCode extensions (e.g. Source Control / Git). Needless to say, it is very frustrating having to "choose" between running my Datadog agent or having a workable remote development machine. I really hope this one can be sorted out ASAP. |
I am having the exact same problem, have spent hours trying to diagnose it before finding this stackoverflow post and finally it all made sense. This is breaking all of my VSCode extensions and stopping me pushing any changes to my github repo as it can't find the repo. It was working yesterday when I implemented datadog, but then when I reconnected today this all happened. Just incase it helps, the error I get in the dev tools is that it can't find the module 'vscode'. Any short term fixes for this aside from removing the agent? I'm enjoying the logs. |
I was able to workaround this by uninstalling just |
This happened to us as well. Very disappointing. |
Same here. My VS 2022 stopped working after installing DD Agent. The only way back was fresh new win install. Def smtg up with DD agent. |
The fix from https://github.com/DataDog/auto_inject/pull/168 has now been released. Anyone still experiencing this issue should be able to fix it by reinstalling the Datadog agent. |
@yshapiro-57 Your link doesn't appear to work? Was the fix released in a particular agent version? |
Describe what happened:
Datadog agent silently hooks itself to JavaScript (and Python) applications on a computer. Because the hooks are invasive, and cause side effects and bugs, this will break applications. One of such applications is Visual Studio Code.
Describe what you expected:
Any decision to use Datadog agent in an application should be opt-in by the user and datadog-agent should not silently modify any JavaScript (or Python, as it seems) applications. This is because there is a high chance that datadog-agent breaks complex applications, and this causes unnecessary issues for the application maintainers.
Steps to reproduce the issue:
Additional environment details (Operating System, Cloud provider, etc):
One workaround to this is to delete Datadog and use alternative monitoring solutions where the user has opt-in control to allow a monitoring agent to inject (and potentially break) any application.
The text was updated successfully, but these errors were encountered: