Skip to content
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

Should this work on Linux? #31

Open
Asdas91 opened this issue Jun 24, 2015 · 16 comments
Open

Should this work on Linux? #31

Asdas91 opened this issue Jun 24, 2015 · 16 comments

Comments

@Asdas91
Copy link

Asdas91 commented Jun 24, 2015

Hi, I wanted to try this plugin on Linux with Mono but I am getting an error. It says "Unable to find csc.exe" on Vim start-up- I think it should use mcs instead. Is it supposed to work on Linux? (sorry if the question is stupid).

@jeaye
Copy link

jeaye commented Jun 29, 2015

I get this error on OS X Yosemite as well.

@JamesMcMahon
Copy link

Ditto, same with OS X Yosemite. Any suggestions to fix this issue?

@4fthawaiian
Copy link

Same here, MacVim 7-something on Yosemite.

@rgrinberg
Copy link

Same. Would like to be able to disable this.

@DennyScott
Copy link

Still have it happening. What exactly is the error from?

@ramon-rocha
Copy link

I don't build from within Vim but I want syntax highlighting for cshtml files. All I did was suppress the error message by commenting out this line: https://github.com/OrangeT/vim-csharp/blob/master/autoload/cs.vim#L44 with a " character. That only suppresses the error message on startup though. If you try :make it will then indicate that it can't find msbuild.

The correct fix is probably to look for mcs.exe and xbuild.exe respectively on *nix.

@rbtnn
Copy link

rbtnn commented Dec 9, 2015

@ramon-rocha Can you build your project on following repository?

https://github.com/rbtnn/vim-csharp

@HiPhish
Copy link

HiPhish commented Jan 8, 2016

@rbtnn It works on OS X in Neovim.

@paralin
Copy link

paralin commented Apr 7, 2016

?

@jean
Copy link

jean commented Aug 29, 2016

@christianrondeau
Copy link

christianrondeau commented Dec 7, 2016

If that helps anyone, you can add something like this to your vimrc to prevent the error. It's a dirty hack though, but works (e.g. for me when doing vimdiff in Cygwin)

" This is a hack! The string could be whatever you want, we just want to prevent https://github.com/OrangeT/vim-csharp/blob/master/autoload/cs.vim#L44 from happening
let g:net_framework_version = "none" 

@kianryan
Copy link
Member

Please try latest commits, this should now be resolved.

@HiPhish
Copy link

HiPhish commented Jan 12, 2017

I can confirm that it works on OS X 👍

@kianryan
Copy link
Member

Good to hear. I'll leave this open for a bit to see if there's anymore feedback.

@HiPhish
Copy link

HiPhish commented Jan 12, 2017

Wait, is commit ed34df1 where all you did was remove

echom "Unable to find " . a:compiler

the solution? You could have at least put in the readme that only Windows is supported.

@kianryan
Copy link
Member

@HiPhish No. The solution was multifold. First it checks for msbuild and xbuild on the path, failing that it looks in known locations on Windows for the latest copy of the framework (since typically they're not on the path by default on Windows).

After that, if it couldn't find msbulid, then it was still being noisy, so it made more sense for it to fail quietly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests