davits / dyevim Goto Github PK
View Code? Open in Web Editor NEWC++ semantic highlighting for Vim
License: MIT License
C++ semantic highlighting for Vim
License: MIT License
Result:
Error detected while processing function <SNR>151_OnCursorMoved:
line 1:
File "<string>", line 1, in <module>
File "/home/tim/.config/haskell-vim-now/.vim/bundle/DyeVim/autoload/../python/dye/dyevim.py", line 66, in OnCursorMoved
self._windows[ self._GetCurrentWId() ].OnCursorMoved()
File "/home/tim/.config/haskell-vim-now/.vim/bundle/DyeVim/autoload/../python/dye/window.py", line 75, in OnCursorMoved
self.OnViewportChanged( current )
File "/home/tim/.config/haskell-vim-now/.vim/bundle/DyeVim/autoload/../python/dye/window.py", line 87, in OnViewportChanged
self._CreateMatchesForInterval( view )
File "/home/tim/.config/haskell-vim-now/.vim/bundle/DyeVim/autoload/../python/dye/window.py", line 57, in _CreateMatchesForInterval
for sr in self._buffer.GetSkippedRanges( view ):
File "/home/tim/.config/haskell-vim-now/.vim/bundle/DyeVim/autoload/../python/dye/buffer.py", line 81, in GetSkippedRanges
self._QuerySkippedRanges()
File "/home/tim/.config/haskell-vim-now/.vim/bundle/DyeVim/autoload/../python/dye/buffer.py", line 90, in _QuerySkippedRanges
self._timeout )
File "/home/tim/.config/haskell-vim-now/.vim/bundle/YouCompleteMe/autoload/../python/ycm/youcompleteme.py", line 649, in GetSkippedRanges
buffer = vim.buffers[ bufnr ]
ValueError: number must be greater than zero
(Other cursor moves in step 3 yield essentially the same result but then the stack trace is output line by line.)
Sorry, this is not a very informative bug report.
Dyevim just does nothng in C++ files.
I installed your YCM and it works perfectly with semantic features. There is no error message. :echo g:loaded_dyevim
shows 1
. I use solarized8 but even when I switch to wombat256_mod, things like std
are not highlighted.
Any hints how to debug this?
I often get errors of the form:
Token query timeout for buffer filename.cpp interval [a, b]
It may be related to the fact that my project is rather big and clang probably needs more time for tokenization, etc.
Any ideas how to solve this? May be it is possible to increase the timeout or something like this?
Hello,
I have YouCompleteMe installed, but it's master, not your fork. I installed DyeVim by placing it after YCM, but after I enter Vim, it completely blocks and displays error:
Error detected wile processing function dyevim#Enable[5]..77_SetupPython
My vimrc prior to installation: https://github.com/ashrasmun/mcass/blob/master/bank/home/.vimrc
It would be nice to be able to configure the colors for different types of tokens.
Is it supported already? If so, it would be nice if it would be described somewhere.
Right now after reading READMEs of both projects, I have no reason to use your plugin over https://github.com/jeaye/color_coded, which has more stars on github. On the other hand, you've written that you used color_coded as an inspiration.
Can you elaborate in the README on why you've created DyeVim and what advantage does it provide over color_coded?
I use gvim and already configured an environment for programming in embedded software development in C. One of my favourite plugins is YCM and DyeVim. Currently I experiment with Neovim. I use the same .vimrc for gvim (v8.0.x) and neovim (0.2.2), OS is Xubuntu Xcfe 17.10. In gvim everything works fine. But when I start Neovim I receive the following error messages:
error durig execution of "function youcompleteme#Enable[13]..150_SetUpBalloon".
row 1:
E518: unknown option: balloonexp=youcompleteme#BalloonEval()
row 2:
E518: unknown option: balloondelay=1000
I already figured out that vim must be compiled with the option "balloon_eval".
Is there an option to disable the Balloon features?
Yesterday I already entered this issue at https://groups.google.com and already received the information that the balloon feature is not part of the official release anymore. Do you plan to sync your repo with the official version of YCM in the near future?
Please let me know if you need any further logs/outputs.
Best regards and thanks in advance,
Claudius
Thanks for this plugin - I've tested a bit and it works great.
What would it take to get your custom additions to ycmd/YouCompleteMe merged back into mainline? If you have a short list of items that need to get done to make it mergeable, I'd be willing to try to help where I can. I generally like to stay up-to-date with ycmd/YCM and it would benefit me to have this additional functionality in the mainline. Thanks.
Hello @davits ! Do you have plans to support language server protocol in your plugin? As far as I know, cquery language server is quite mature already, and it can work as a data provider for c/c++ semantic completion. As I read in the readme, now you maintain your own forks of ycmd and ycm. Maybe it is easier to just switch backend to cquery?
I am looking for a solution to use YouCompleteMe + functional solution for 'GoTo'(Definition) + syntax highlighting of c++11. YouCompleteMe is working but I can only jump to declaration.
I used your dotfiles and therefor your plugins 'davits/YouCompleteMe' and 'davits/DyeVim' and followed your guideline.
In order to have a basic test I created a simple example using cmake tutorial. Please find attached example. These are the steps I executed to build the attached sample
a) extract the files to folder 'step2-0-basic'
b) $> mkdir build && cd build
c) $> cmake -DUSE_MYMATH=1 ..
d) $> make
e) $> mv compile_commands.json ..
f) $> cd .. && gvim tutorial.cxx
--> syntax highlighting is not working properly and using mapping from your dotfiles/vimrc 'gD', while cursor is on 'mysqrt'-function, will not go to definition but to declaration of corresponding function.
Do you see any error in my configuration?
Do you have any working sample you may share?
Kind regards, Claudius
step2-0-basic.zip
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.