-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
mingw: Add platform checking of GoDocBrowser for Cygwin on windows #3611
base: master
Are you sure you want to change the base?
Conversation
Thank you |
welcome, happy holiday ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the redraw
and that check for cygwin. I'd like to see some changes to the cygwin detection, though.
In addition to the suggested edit I provided, can you add go#util#IsCygwin
thusly:
function! IsCygwin()
return has('win32unix`)
endfunction
Unfortunately, I don't have a windows machine to test with. Can you make the suggested edits and test to make sure they're correct?
I'm not sure vim-go should support mingw in the way that this PR and your others enable, because I think think it's possible that with mingw there's other use cases that would break with the changes here and elsewhere. I'm going to have to give this and your other PRs some thought. For now, can you remove the mingw detection in this PR?
@bhcleek Thank you for your guide and instruction. I added cygwin detection The reason using Plus, I also leverage the vim built-in feature list I have tested these factors on three major cygwin platforms, the result is for your reference:
|
By the way, I found there is a util function " Checks if using:
" 1) Windows system,
" 2) And has cygpath executable,
" 3) And uses *sh* as 'shell'
function! go#util#IsUsingCygwinShell()
return go#util#IsWin() && executable('cygpath') && &shell =~ '.*sh.*'
endfunction The |
Yes, |
As CYGWIN uses |
:GoDocBrowser
cannot popup the browser correctly.has('win32unix')
for platform compatibility.:silent
with external command:h :silent