flofreud / posh-gvm

GVM for Powershell
Apache License 2.0
210 stars 60 forks source link

should include in documentation that posh-gvm doesn't work offline #24

Open alina199 opened 6 years ago

alina199 commented 6 years ago

when i run import-module posh-gvm it attempts to connect to a url. if offline, break-line causes an exception (the value of the property 'break_line' is null or undefined, not a Function object) then wants me to debug with visual studio.

if i say yes, the offending line indicates a connection to http://api.sdkman.io/app/version is being attempted. this url is not available (proxy servers are annoying).

If i then say "stop debugging", i get a powershell error "This command is not available in offline mode"

so, presumably, posh-gvm isn't available offline (which is annoying), nor does it work properly behind a proxy server (or at least with MY proxy server).... makes the tool less than optimal, shall we say.

the code should more gracefully handle being offline (e.g. should not display "Webpage error; do you want to debug?" dialog box