Sema4AI / vscode-extension

Sema4.ai extension for VS Code: AI Actions and Automation development for Python
https://sema4.ai/docs/platform/vs-code
Apache License 2.0
6 stars 0 forks source link

Support for offline installation #25

Open kariharju opened 3 months ago

kariharju commented 3 months ago

Issue by vtcifer Tuesday Nov 22, 2022 at 22:25 GMT Originally opened as https://github.com/robocorp/robotframework-lsp/issues/814


Is your feature request related to a problem? Please describe. Currently when installing RCC plugin for vscode, it tries to download additional dependencies from the internet. When you attempt to install in an isolated environment, this fails.

Describe the solution you'd like Provide support for offline extension installation where all dependencies are bundled with the extension.

Describe alternatives you've considered There are no alternatives - internet access is not available in our environment,

kariharju commented 3 months ago

Comment by kariharju Wednesday Nov 23, 2022 at 11:36 GMT


Hi @vtcifer,

This is a challenge and getting this built-in just in the extension is somewhat impossible as the extension does not what dependencies your robots need. We have not tested this and do not officially support as this does restrict the usage by a lot, by I think this should still be technically possible with some extra manual steps RCC supports pre-built environments that can be moved as zip files between machines.

So the steps needed could be something like:

  1. Pre-build the environments your robots need on machines that have internet access
  2. Pre-build the environment required by the extension (platform-specific YAML files here)
  3. Export the environments > zip file > validate with any tools you see fit > import to the isolated machine
  4. Probably in this case you'd also need to create a portable VS Code setup so that even the extensions just come as files.
kariharju commented 3 months ago

Comment by fabioz Thursday Jun 22, 2023 at 10:43 GMT


As a note, VSCode now supports platform-specific extensions, so, we can at least think about shipping rcc with the extension instead of downloading it separately when the extension is started.

See: https://code.visualstudio.com/api/working-with-extensions/publishing-extension#platformspecific-extensions