-
Notifications
You must be signed in to change notification settings - Fork 167
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
error initializing omnisharp-roslyn server #800
Comments
It looks like that AUR package installs OmniSharp-vim under I don't have any experience with using distro package managers to install vim plugins, it's much more common to use a vim plugin manager such as vim-plug. This will result in the plug-in being located in a location where it has write access. After all, vim plugins are simply scripts, not binaries. |
yep, your right about the write access. but only when i run it as user. What about run it as root user ? this should work no ? |
I believe the actual answer here is "never run vim as root". Use However I can't really imagine any scenario where you would want to run an elevated vim against a C# file? |
Maybe I am making a mistake... my question is like : Maybe i am wrong, but i think that if a guy did a system package with this plugin, probably that he managed to make it work... The idea is to edit the /etc/vimrc. Because of that all user in my system will have the config as default. And the only proper way to do this is to install the plugin with the package manager and edit the /etc/vimrc file... So, it's not for use vim to edit C# files in root. If it's that you understood, so yeah, the idea is probably a few crazy... It's not what i do. ... I just tested it to see if the bug persist in root or not... I use vim every day in root to edit my systems configuration because i am my own admin, and that vim is amazing to edit system configs... Why do you suggest to me to use sudoedit or vim -e exactly ??? |
I don't know who made the system package or what this configuration was. I didn't make it, and they didn't consult with me. My recommendations as the plugin maintainer on how to install and use this plugin are the ones I've described here and in the README. When you've asked about how to use this plug-in as root, my only answer can be that I don't intend to support that use case as it doesn't make sense for this plugin.
I'm trying to explain why I would never have done that, or will support this usage. |
Try adding The above should get you past the first error. Whether you'll get a correctly installed server after that, I don't know. I can't test currently, I'm mobile only, on holiday. |
Ok, I think we misunderstood each other So, here is how i fixed it :
I do not know if there is a way to change this parameters on the build of omnisharp-vim plugin, they are script as you told it... but if it's possible, it can be a way to fix this too permanently 🙂 I'm on vacation too, especially enjoy it. Take care of that when you're not on vacation anymore. 🙂 Sincerely. |
|
Hi everybody,
I am trying to use omnisharp-vim for the first time, so i am on Archlinux, and i installed it on my system from this aur package : https://aur.archlinux.org/packages/omnisharp-vim-git
Now i when i open my .cs file
vim ceasar/Program.cs
, vim say this to me :I type
y
and it told me every time :first, i think, it's strange that it want to create a log file in
/usr/share
, because i am not in root !I didn't found package who contain this file.
so i tried to run vim in root, to see...
sudo vim ceasar/Program.cs
and after typed
y
to install omnisharp server, i recieve this message :Does anybody can help me to find what did i wrong or what should i do to run it without issues? Please.
The text was updated successfully, but these errors were encountered: