Oni: Windows: Omnisharp plugin requires administrator permissions to download

Created on 30 Apr 2017  路  7Comments  路  Source: onivim/oni

__Issue__:

In distribution builds, on Windows, the Omnisharp (C#) language service requires administrator privilege to download the windows client. The install location on my machine, for example, is here:
"Downloading C:\Program Files (x86)\Oni\resources\app\node_modules\omnisharp-client\omnisharp-win-x64-net46\omnisharp-win-x64-net46.zip"}

Therefore, downloading this in a non-administrator context will result in the download failing.

__Potential Fixes__:

  • OPTION 1: See if there is a way to override the download / binary location for this. Potentially in the cache / userData folder of electron, or some of other writable place.
  • OPTION 2: Copy the default or select plugins to the cache / userData folder on startup.
  • OPTION 3: Package the downloaded file during windows install. This means the installation size is even larger, which would not be ideal.
bug duplicate

Most helpful comment

Nice 馃槃 Do you have any games in the app store or anything?

Not yet currently working on one, got a bit distracted with Oni :P.

All 7 comments

I use c# heavily with Unity, I will see if I can fix this at some point...
Assuming I get time :P.
Also might add on to your plugin, great idea to have it as a plugin!

I use c# heavily with Unity, I will see if I can fix this at some point...

Nice 馃槃 Do you have any games in the app store or anything?

Also might add on to your plugin, great idea to have it as a plugin!

That would be great! Hopefully it will be a starting point for some other plugins too.

FYI, since I moved the code to a separate repo, I ported this issue over - extr0py/oni-language-csharp#1. So I'll close this one and track it there.

Nice 馃槃 Do you have any games in the app store or anything?

Not yet currently working on one, got a bit distracted with Oni :P.

@cyansprite , shoot, well keep me posted if you ever need a beta tester 馃槃

And as an aside, I'm thinking about some ways to gamify Oni - like an improved vimtutor experience / game, as well as just the act of editing and becoming proficient at Vim more enjoyable. #430 tracks some of those ideas - I imagine you might have some ideas around there too, given your background in games!

@cyansprite , shoot, well keep me posted if you ever need a beta tester 馃槃

Do you have an android phone?

And as an aside, I'm thinking about some ways to gamify Oni - like an improved vimtutor experience / game, as well as just the act of editing and becoming proficient at Vim more enjoyable. #430 tracks some of those ideas - I imagine you might have some ideas around there too, given your background in games!

I was actually thinking about that, like making an adventure game where you move with hjkl and you can use f and t to jump to enemies or something like dta will jump to kill enemy before a, and dfa would jump to kill enemy a... just a thought I never pieced it altogether, I will take a look in a bit :).

Was this page helpful?
0 / 5 - 0 ratings