Giter Site home page Giter Site logo

lh-cpp's People

Contributors

fwsmit avatar luchermitte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lh-cpp's Issues

Errors with VImPlug

When I use VimPlug to manage my vim plugins, lh-cpp does not seem to work well
With a minimal vimrc file like below, there are lots of errors printed, see below.

Should it be configured differently when using vimplug?

call plug#begin('~/.vim/plugged')

Plug 'LucHermitte/lh-vim-lib'
"Plug 'LucHermitte/lh-style'
Plug 'LucHermitte/lh-tags'
Plug 'LucHermitte/lh-dev'
Plug 'LucHermitte/lh-brackets'
Plug 'LucHermitte/searchInRuntime'
Plug 'LucHermitte/mu-template'
Plug 'tomtom/stakeholders_vim'
Plug 'LucHermitte/alternate-lite'
Plug 'LucHermitte/lh-cpp'
"Plug 'LucHermitte/vim-refactor' " C++ refactoring
call plug#end()

[:] $ vim -u test.vim
Error detected while processing /home/eperson/.vim/plugged/lh-vim-lib/plugin/let.vim:
line 33:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_let")
line 34:
E10: \ should be followed by /, ? or &
line 35:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-vim-lib/plugin/lh-project.vim:
line 20:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_lh_project")
line 21:
E10: \ should be followed by /, ? or &
line 22:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-vim-lib/plugin/lhvl.vim:
line 29:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_lhvl")
line 30:
E10: \ should be followed by /, ? or &
line 31:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-style/plugin/lh-style.vim:
line 18:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_lh_style")
line 19:
E10: \ should be followed by /, ? or &
line 20:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-dev/plugin/add_import.vim:
line 26:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_add_import")
line 27:
E10: \ should be followed by /, ? or &
line 28:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-dev/plugin/boundaries.vim:
line 18:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_boundaries")
line 19:
E10: \ should be followed by /, ? or &
line 20:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-dev/plugin/dev.vim:
line 18:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_dev")
line 19:
E10: \ should be followed by /, ? or &
line 20:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/alternate-lite/plugin/alternate-lite.vim:
line 25:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_alternate_lite")
line 26:
E10: \ should be followed by /, ? or &
line 27:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/mu-template/after/plugin/mu-template.vim:
line 409:
E10: \ should be followed by /, ? or &
line 410:
E10: \ should be followed by /, ? or &
Press ENTER or type command to continue
[:
] $ vim -u test.vim
Error detected while processing /home/eperson/.vim/plugged/lh-vim-lib/plugin/let.vim:
line 33:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_let")
line 34:
E10: \ should be followed by /, ? or &
line 35:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-vim-lib/plugin/lh-project.vim:
line 20:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_lh_project")
line 21:
E10: \ should be followed by /, ? or &
line 22:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-vim-lib/plugin/lhvl.vim:
line 29:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_lhvl")
line 30:
E10: \ should be followed by /, ? or &
line 31:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-dev/plugin/add_import.vim:
line 26:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_add_import")
line 27:
E10: \ should be followed by /, ? or &
line 28:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-dev/plugin/boundaries.vim:
line 18:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_boundaries")
line 19:
E10: \ should be followed by /, ? or &
line 20:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-dev/plugin/dev.vim:
line 18:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_dev")
line 19:
E10: \ should be followed by /, ? or &
line 20:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/alternate-lite/plugin/alternate-lite.vim:
line 25:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_alternate_lite")
line 26:
E10: \ should be followed by /, ? or &
line 27:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/mu-template/after/plugin/mu-template.vim:
line 409:
E10: \ should be followed by /, ? or &
line 410:
E10: \ should be followed by /, ? or &
Press ENTER or type command to continue
[:] $
[:
] $ vim -u test.vim
Error detected while processing /home/eperson/.vim/plugged/lh-vim-lib/plugin/let.vim:
line 33:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_let")
line 34:
E10: \ should be followed by /, ? or &
line 35:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-vim-lib/plugin/lh-project.vim:
line 20:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_lh_project")
line 21:
E10: \ should be followed by /, ? or &
line 22:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-vim-lib/plugin/lhvl.vim:
line 29:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_lhvl")
line 30:
E10: \ should be followed by /, ? or &
line 31:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-dev/plugin/add_import.vim:
line 26:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_add_import")
line 27:
E10: \ should be followed by /, ? or &
line 28:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-dev/plugin/boundaries.vim:
line 18:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_boundaries")
line 19:
E10: \ should be followed by /, ? or &
line 20:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/lh-dev/plugin/dev.vim:
line 18:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_dev")
line 19:
E10: \ should be followed by /, ? or &
line 20:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/alternate-lite/plugin/alternate-lite.vim:
line 25:
E110: Missing ')'
E15: Invalid expression: &cp || (exists("g:loaded_alternate_lite")
line 26:
E10: \ should be followed by /, ? or &
line 27:
E10: \ should be followed by /, ? or &
Error detected while processing /home/eperson/.vim/plugged/mu-template/after/plugin/mu-template.vim:
line 409:
E10: \ should be followed by /, ? or &
line 410:
E10: \ should be followed by /, ? or &
Press ENTER or type command to continue

Use #pragma once instead of #ifndef in c++ template

As I'm using #pragma once instead of #ifndef, I tried to change the C++ template file cpp_BuildTemplates.vim on lines 227, 228 and 327, 328 accordingly. Unfortunately this does not seem to work. What did I miss?

Mappings clash

I mapped my <C-Space> to something I use fairly often, thus whenever ftplugin/c/previewWord.vim loads, there is an error (which appears whenever I open a C file) because it tries to redefine <C-Space> in line 43.

Strange behavior if you already have the a.vim plugin

I was an existing user of nacitar/a.vim and I did not realize that it is basically being provided by lh-cpp as well. When I have both plugins enabled, the :A command seems to always want to create a new file (even when a valid alternate exists). I'm not sure what the specific problem is, but it seems that just disabling the nacitar/a.vim plugin makes things work again.

I'm not sure what the best long-term fix for this issue is, but I thought I would report the issue for you consideration.

Error on :GOTOIMPL

I believe I have everything set up correctly, however I'm getting the following error when I execute :GOTOIMPL on a method declaration in a header file:

Error detected while processing function lh#cpp#GotoFunctionImpl#GrabFromHeaderPasteInSource[39]..<SNR>163_BuildFunctionSignature4impl[57]..lh#dev#start_tag_session[6]..lh#dev#__BuildCrtBufferCtags:
line   47:
E121: Undefined variable: ctags_has_end_of_functions
E15: Invalid expression: ctags_has_end_of_functions

Theoretically the variable should be defined here, in autoload/lh/dev.vim:

" Function: lh#dev#get_variables(function_boundaries [, split points ...]) {{{2
" NB: In C++, ctags does not understand for (int i=0...), and thus it can't
" extract "i" as a local variable ...
" @note depend on tags
if lh#tags#ctags_flavour() =~ 'utags'
  let c_ctags_understands_local_variables_in_one_pass   = 1
  let cpp_ctags_understands_local_variables_in_one_pass = 1
  let ctags_has_end_of_functions                        = 1
else
  let c_ctags_understands_local_variables_in_one_pass   = 0
  let cpp_ctags_understands_local_variables_in_one_pass = 0
  let ctags_has_end_of_functions                        = 0
endif

For some reason this does not happen, none of the three variables above is defined in my vim session. lh#tags#ctags_flavour() evaluates to "etags" on my system. I'm using VIM 8.1. Any ideas where this problem could be coming from?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.