kbenzie / vim-spirv Goto Github PK
View Code? Open in Web Editor NEWA vim plugin for the Khronos Group's SPIR-V standard.
License: MIT License
A vim plugin for the Khronos Group's SPIR-V standard.
License: MIT License
I'm having the following errors when moving around a .spv file. This is making the plugin unusable.
On Vim:
Error detected while processing function spirv#highlight_extinst:
line 23:
Traceback (most recent call last):
Press ENTER or type command to continue
Error detected while processing function spirv#highlight_extinst:
line 23:
File "<string>", line 1, in <module>
Press ENTER or type command to continue
Error detected while processing function spirv#highlight_extinst:
line 23:
File "<string>", line 3, in find_group_names
Press ENTER or type command to continue
Error detected while processing function spirv#highlight_extinst:
line 23:
NameError: global name 'vim' is not defined
Press ENTER or type command to continue
Error detected while processing function spirv#highlight_extinst:
line 23:
E858: Eval did not return a valid python object
Press ENTER or type command to continue
Error detected while processing function spirv#highlight_extinst:
line 33:
E714: List required
Press ENTER or type command to continue
Error detected while processing function spirv#highlight_extinst:
line 45:
E714: List required
Press ENTER or type command to continue
On NeoVim:
Error detected while processing function spirv#highlight_extinst[23]..provider#python#Call:
line 18:
error caught in request handler 'python_eval ('find_group_names()',)':
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/neovim/plugin/script_host.py", line 150, in python_eval
return eval(expr, self.module.__dict__)
File "<string>", line 1, in <module>
File "<string>", line 3, in find_group_names
Press ENTER or type command to continue
Error detected while processing function spirv#highlight_extinst[23]..provider#python#Call:
line 18:
NameError: global name 'vim' is not defined
Press ENTER or type command to continue
Error detected while processing function spirv#highlight_extinst:
line 33:
E714: List required
Press ENTER or type command to continue
Error detected while processing function spirv#highlight_extinst:
line 45:
E714: List required
Press ENTER or type command to continue
The Khronos group released the SPIR-V 1.2 spec, add support for the latest updates.
Hi,
There is an option g:spirv_enable_autodisassemble
, but it is only used to enable/disable highlighting of IDs and OpExtImport
errors when opening a binary SPIR-V files. Autocommands for assembly/disassembly binary SPIR-V files are added uncoditionally:
Lines 29 to 39 in 9b005a0
This means that even if I set g:spirv_enable_autodisassemble = 0
I will still see the following error when opening a binary SPIR-V file:
spirv-dis failed
Error detected while processing BufRead Autocommands for "*.spv"..function spirv#disassemble:
line 13:
E484: Can't open file /tmp/vzQKVBI/1
I guess this is not an important issue, because with autodisassemble
disabled I wouldn't open binary files anyway
I just found out about both this project, and the official SPIR-V vim syntax generated by SPIR-V Tools: https://github.com/KhronosGroup/SPIRV-Tools#extras
Are you aware of the other project? If so, how do these compare? If not, may I suggest collaborating with SPIR-V Tools and bringing the features in the project there for the greater benefit of the community?
Aid hand writing SPIR-V by supporting OpCode
snippets in the UltiSnips format. Generate the snippets from the JSON schema.
Add SPIR-V validation support using the spirv-val
tool in SPIRV-Tools to by hooking into syntastic.
Since syntastic is currently undergoing refactoring to support vim8 async jobs (vim-syntastic/syntastic#699) which requires breaking the current checker API hooks, support for validation will be delayed until this work is complete.
SPIR-V indentation is a pain to handle manually but is very regular, add support for automatically formatting SPIR-V with the gq<motion>
command.
Currently, unlike other filetypes, TODO
and FIXME
are not highlighted using the Todo
highlight group.
For large SPIR-V modules which have multiple pair blocks, such as OpFunction
/OpFunctionEnd
it would be helpful to be able to fold sections which are not currently relevant away allowing the reader to focus on the point of interest.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.