-
Notifications
You must be signed in to change notification settings - Fork 8
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
.NET Acquisition Failed: Too many properties to enumerate #163
Comments
@nagilson can you have a look please? |
I should add that this only happens when my .NET version is behind whatever the most current one is, and I can work around it by manually installing the latest SDK. |
Sorry you're facing this, that's interesting -- I think it's working but it's failing at the end? Is GH Copilot actually working ok? It looks like it put an executable in 2nd question: There will be your username and environment in the log, please redact any PII you don't want to share. Alternatively, if you could share just towards the end of the log where it has the error, that may be sufficient. My thoughts: I looked in telemetry and this error was not one of the most common out of 100 errors, I've never seen this before. It created some huge error object so big it doesn't want to report it lol -- it needs to have at least 65535 properties. If it's writing that out on the log, your log may be massive... so good to delete it afterwards. Btw, the reason this happens when you have a newer SDK it's OK, is because it won't do the download unless it needs a newer version, (since you set the path setting but it's not new enough for it to work) so you might hit this regardless. |
@nagilson Hello! It does seem the As far as the logs go, there is only one in that folder for me and I don't see the error in it at all. The only thing with the string "err" in it that seems relevant was this section:
I also am not sure this is the log file from when I got this to happen but since I've updated the SDK on my machine and have restarted VS Code I'm not sure that log exists anymore. I could wait for it to happen again and then try searching the log file to see what happened? |
Thank you. Ah yes, the logs do get cleaned up. If the timestamp doesn't match the VS Code Session (or you didnt open it from the same session) it will not have it. Each session of vscode has its own folder. Go up from that logs dir, there will be a bunch of timestamped folders with sessions. For the right session, then follow back the path to find the log. Btw, each window of vscode has its own folder, window1, window2, etc... |
@nagilson ok this is kind of wild. I think I found the file in question, but MacOS Gatekeeper wouldn't let me open it because it suspected malware for some reason. I had to go to Securty & Privacy to allow it to be opened. I hope I scrubbed whatever stuff from this file that needs to be, but this seems to show the error at least. DotNetAcquisition-ms-dotnettools.vscode-dotnet-runtime-1739885688022.txt |
Thank you. Sorry to ask more questions! If you try to use the uninstall command (ctrl shift p -> uninstall .NET) do you see the runtime that was added after this bug occurs (immediately after.) And can you try this when launching vscode from the terminal and running this beforehand: -- It looks like this is failing to add the install to the 'installed' list. Then some generic thing throws a MASSIVE error that is too big to hold in memory. I can garner this because the install script sees that its installed, but the extension doesn't know its installed even though the last 2 things it does is verify it works (which it did successfully) then add it to the in memory set of installed things. The only reasons I could see why:
calling .delete on a set object is failing (docs don't show that this would be an issue) NODE_OPTIONS=--stack-trace-limit is set to Infinity, so when it fails to acquire the lock it explodes. Don't think so since you didn't set that according to the log. |
I sure can do these things @nagilson , can you elaborate on this one here? I'm not sure what to do to "see the runtime that was added". Otherwise I think I can handle most of the rest of this, just wanted clarification on this point before I start doing things. |
@nagilson Gotcha. Weirdly, several versions don't show up, I guess you can see right where I started having the problem. I think I'm currently running 8.0.13. ![]() |
Nice, hopefully with those settings it will show the full stack frame so it actually shows the error |
Does this occur consistently? Yes
Repro steps:
Action: azextAgent.activate
Error type: Error
Error Message: Failed to acquire .NET runtime. Please report an issue and share the output from the .Net Install Tool output channel.
Version: 0.3.131
OS: darwin
OS Release: 24.3.0
Product: Visual Studio Code
Product Version: 1.97.1
Language: en
Call Stack
For what it's worth, from the output it looks like it's actually able to download it but it fails upon installing. I double checked that the
dotnet-install.sh
script has execute permissions and it does.The text was updated successfully, but these errors were encountered: