Skip to content

Installation on VS Code got stuck #3925

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

Open
15 tasks
RlG1962 opened this issue Apr 22, 2025 · 7 comments
Open
15 tasks

Installation on VS Code got stuck #3925

RlG1962 opened this issue Apr 22, 2025 · 7 comments

Comments

@RlG1962
Copy link

RlG1962 commented Apr 22, 2025

Describe the bug

Maybe not a bug but an issue with my vs code setup. Just need some help to troubleshoot the cause.
The installation in VS Code cannot be completed, a notification continuing showing up on the screen and I found this error in the exthost.log file

2025-04-22 09:21:31.824 [error] Activating extension ms-dotnettools.dotnet-interactive-vscode failed due to an error:
2025-04-22 09:21:31.824 [error] TypeError: Cannot read properties of undefined (reading 'workingDirectory')
at c:\Users\rlg.vscode\extensions\ms-dotnettools.dotnet-interactive-vscode-1.0.6177010\out\src\vscode-common\extension.js:255:140
at Generator.next ()
at fulfilled (c:\Users\rlg.vscode\extensions\ms-dotnettools.dotnet-interactive-vscode-1.0.6177010\out\src\vscode-common\extension.js:7:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):

  • OS
    • Windows 11
    • [ X] Windows 10
    • macOS
    • Linux (Please specify distro)
    • iOS
    • Android
  • Browser
    • Chrome
    • Edge
    • Firefox
    • Safari
  • Frontend
    • Jupyter Notebook
    • Jupyter Lab
    • nteract
    • [X ] Visual Studio Code
    • Visual Studio Code Insiders
    • Visual Studio
    • Other (please specify)

Screenshots

If applicable, add screenshots to help explain your problem.

@jonsequitur
Copy link
Contributor

I'm not sure what would cause that.

Have you installed it before successfully on this machine? Do you have the .NET 9 SDK installed?

@RlG1962
Copy link
Author

RlG1962 commented Apr 22, 2025 via email

@jonsequitur
Copy link
Contributor

@RlG1962 The attachment didn't come through via email. Could you try uploading it on GitHub?

@RlG1962
Copy link
Author

RlG1962 commented Apr 23, 2025

Hi Jon
Sorry by delay.
Please see attached the short video about the issue, I let the installation working last night and this morning it is still there.
I honestly think it is a firewall setup but in order to help our infra team to make the right firewall or group policy I need to know what is happening.

Thank you so much for your help

Recording.2025-04-22.160647.mp4

@NosMaisons
Copy link

NosMaisons commented Apr 23, 2025

@RlG1962

Hi, I had the same issue. After a couple of hours, I was able to have .NET kernel in my VS Code (for Polyglot Notebooks)

  1. Close VS Code,
  2. Go, to C:\Users...\AppData\Roaming\NuGet\
  3. Delete the file Nuget.Config
  4. Restart VS Code, and I am now able to to use Polyglot Noteboook with .NET kernel (and a new Nuget.Config file was created)
    p.s. I am on .NET 10 SDK (I uninstalled 9 to try version 10, but still didn't work until I deleted Nuget.Config file)

Hope that helps

@jonsequitur
Copy link
Contributor

@RlG1962 Did @NosMaisons's advice work?

If not, could you open the output window send get the outputs from Polyglot Notebook: logger and Polyglot Notebook: diagnostics?

Image

Thanks!

@RlG1962
Copy link
Author

RlG1962 commented Apr 24, 2025

Thank you @jonsequitur and @NosMaisons
Just minutes ago before you asked me to look at the polyglot logger I tried the solution added by @NosMaisons and that fix the issue. The installation succeded without
I think that is the right approach in this case.
I'll try to see if I have some logger from before and I'll upload it here.

Thank you again your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants