Skip to content
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

Unable to install extension from .VSIX in environment without internet connectivity #2601

Open
4 of 17 tasks
BobPusateri opened this issue Jan 9, 2023 · 6 comments
Open
4 of 17 tasks
Labels

Comments

@BobPusateri
Copy link

Describe the bug

I am trying to utilize Polyglot Notebooks in an environment which does not have internet access - so I'm trying to do an offline install. I've downloaded the latest Polyglot Notebooks .VSIX file and am trying to install it in VS Code Insiders. The initial error is that the Jupyter extension is not installed, but after adding that (which seems to complete without issue) the Polyglot Notebooks extension seems to hang while installing and never completes. It appears that it's trying to connect to the outside internet at pkgs.dev.azure.com even though this environment has no internet connectivity.

I searched for similar issues, but would like to point out that this is a different problem than issue #1458 because that seems to concern versions of VS Code, whereas I'm already using the insiders build.

Please complete the following:

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

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

Screenshots

I'm including the console output while trying to install this extension, as well as a screenshot of what shows in VS Code while it's installing.

PolyglotInstallConsole.txt

PolyglotInstallStatus

@jonsequitur
Copy link
Contributor

This happens because the extension is trying to install the dotnet-interactive tool. @brettfo, do you know if we support short-circuiting that pointing to an existing installation of dotnet-interactive?

@jonsequitur jonsequitur added the bug Something isn't working label Jan 9, 2023
@BobPusateri
Copy link
Author

This happens because the extension is trying to install the dotnet-interactive tool. @brettfo, do you know if we support short-circuiting that pointing to an existing installation of dotnet-interactive?

@jonsequitur So just for my own clarification so I can understand, the "dotnet-interactive tool" is something separate from this, the (formerly-known-as) dotnet interactive extension?

@brettfo
Copy link
Member

brettfo commented Jan 9, 2023

@BobPusateri when the extension first launches it looks for a local dotnet-interactive tool that serves as the backing process. For size reasons, this isn't included in the bare VSIX, but what you should be able to do is install the VSIX where you do have internet access and launch/activate one time. On that first launch it'll look for the appropriate version of the backing tool, it won't find it, then it'll do the download/install. On subsequent launches, the extension will look for the appropriate version, see that it's installed, then do nothing because it's already there.

As for doing a complete setup/install in an offline environment, that's not something we currently support, but is interesting, nonetheless, and I'll do some thinking on exactly how to do that.

@jonsequitur
Copy link
Contributor

@jonsequitur So just for my own clarification so I can understand, the "dotnet-interactive tool" is something separate from this, the (formerly-known-as) dotnet interactive extension?

You can read a bit more about this here:

https://github.com/dotnet/interactive/blob/main/docs/FAQ.md

@BobPusateri
Copy link
Author

@brettfo @jonsequitur Thank you very much for the helpful explanation! I didn't realize that tool existed or was the root of the issue. I will try to figure out a workaround, but as you plan future work I think there would be value in the ability to do a fully-offline install.

@jonsequitur
Copy link
Contributor

One possible workaround (which I haven't tried) is to use a user-level nuget.config pointing to an internally-accessible NuGet feed, which can be just a folder on the local machine or on a network volume. The Polyglot Notebooks extension should then be able to transparently resolve the package if it's present there. The package it needs is this one: https://www.nuget.org/packages/Microsoft.dotnet-interactive

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

No branches or pull requests

3 participants