question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need to disable auto-updating C# dependencies

See original GitHub issue

I work in a secure environment so theres no internet connection, I can only manually transfer files to my machine from another machine with internet.

I’ve installed VSCode and the C# extension (via downloading the .visx), but the extension downloads other packages on first load which gives an error since theres no internet connection.

So every single time I start VSCode i’m greeted with an output window stating;

Updating C# dependencies...
...
Downloading package 'Mono Runtime (Linux / x64)' Failed at stage: downloadPackages
Error: getaddrinfo ENOTFOUND omnisharpdownload.blob.core.windows.net omnisharpdownload.blob.core.windows.net:443
...

Is there a way to stop the extension from attempting to update all the time so I don’t get greeted with the output window on each load?

I already have the following set;

update.channel : none,
extensions.autoUpdate: false

Even better, if there’s actually an alternative way to install the missing packages I would love to know!

Finally, even though i’m missing some packages I still use the C# extension for syntax highlighting etc.

Environment data

Platform: Linux, x86_64, Centos 7 VS Code version: 1.8.1 C# Extension version: 1.5.3 Offline machine (Internet connection is impossible)

Steps to reproduce

Fresh install the C# extension, disable your internet connection.

Expected behavior

Stop output window nagging on each fail, or update documentation on how to manually download missing packages.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gregg-miskellycommented, Jan 13, 2017

Instructions updated.

0reactions
gregg-miskellycommented, Jan 13, 2017

@Greyze Thanks!

The issue with chmod is caused because you packaged the extension on Windows. That is actually why we have the exception on line 95. I will add more details about that. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to auto-update versions only for dependencies within ...
When I run the following command for the root project, it checks for updates of ALL dependencies: mvn versions:use-latest-versions. I want to limit...
Read more >
4 Ways How to Disable Windows Auto Update | Action1 Blog
Select Disabled in Configured Automatic Updates on the left, and click —Apply and OK to disable the Windows automatic update feature. Note: If...
Read more >
How to install an homebrew formula without updating ...
If you want to prevent auto update for your shell session, use: ... another possible solution is to send Ctrl-C to the shell...
Read more >
Options, Text Editor, C/C++, Advanced - Visual Studio
If you choose this option, "Disable Implicit Cleanup" and "Disable External Dependencies" are also implicitly chosen. Disable Implicit Cleanup.
Read more >
How to prevent updating of a specific package? - Ask Ubuntu
If package foo has a == < or <= dependency on libbar, then apt will refuse to upgrade libbar as well as foo....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found