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

Add basic support for glslc #2496

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add basic support for glslc #2496

wants to merge 2 commits into from

Conversation

gustafla
Copy link

@gustafla gustafla commented Jul 8, 2020

Hello. I've been recently learning Vulkan and I added basic support for ft/glsl using glslc. I'm not sure about portability (using /dev/null because glslc doesn't have a syntax check only -flag), but the maker seems to run ok on my machine. I also considered using glslangValidator instead but couldn't get any errorformat working for it.


function! neomake#makers#ft#glsl#EnabledMakers() abort
return executable('glslc') ? ['glslc'] : []
endfunction
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

executable gets check automatically, so it could/should just return the default makers, i.e. ['glslc'].

\ '%f: %tarning: %m,' .
\ '%-G%s',
\ }
endfunction
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have some example output, which could be added as a test then?
For examples search for NeomakeTestsGetMakerWithOutput in tests, e.g. https://github.com/blueyed/neomake/blob/8b7816744ed53f32f460a50dc5431f5d13d081c7/tests/ft_python.vader#L118-L129.
Happy to help if you do not want to do it yourself.

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

Successfully merging this pull request may close these issues.

None yet

2 participants