OrangeT / vim-csharp

Enhancement's to Vim's C-Sharp Functionality
117 stars 39 forks source link

make not working. Is Cygwin supported? #27

Open aikeru opened 9 years ago

aikeru commented 9 years ago

I use cygwin's vim (not gvim) and msbuild is not in my PATH by default.

OOTB, running make within vim from a folder that contains an sln file results in this:

image

As a side-note, running "msbuild" from cygwin wont work, but "msbuild.exe" (after I added to my PATH) does.

kianryan commented 9 years ago

it wasn't designed to work this way, but I don't see why it shouldn't. I'll take a look.

reidev275 commented 8 years ago

I added an alias to my ~/.bashrc file for msbuild that executes MsBuild.exe. I can execute msbuild from bash now, but :make still fails from within vim.

alias msbuild="/c/Windows/Microsoft.NET/Framework64/v4.0.30319/MsBuild.exe"

Update I also added the alias to my ~/.profile file with the same results.

aikeru commented 8 years ago

Perhaps instead of an alias, maybe a shell script marked as executable inside a folder that works from the default path would work?

Maybe this doesn't work because Vim's shell execution doesn't load the profile? My understanding around some of this is limited :)

reidev275 commented 8 years ago

That at least finds something to execute. Realistically I usually have another terminal open in the directory anyway for git, grep, etc so having it inside of vim doesn't provide much more value

kianryan commented 7 years ago

Please try latest commits - we now look for an executable on the path before hunting in framework folders.