Skip to content

Verilog_syntax error #227

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

Closed
vinayakkp opened this issue Feb 22, 2023 · 3 comments
Closed

Verilog_syntax error #227

vinayakkp opened this issue Feb 22, 2023 · 3 comments
Assignees

Comments

@vinayakkp
Copy link

vinayakkp commented Feb 22, 2023

Hi,

When I am trying to load a Verilog header file and I see this error:

Error detected while processing $HOME/.vimrc[1434]..$HOME/tools/share/vim/vim90/syntax/syntax.vim[43]..BufRead Autocommands for ".vh"..FileType Autocommands for ""..function 9_LoadIndent[14]..script $HOME/.vim/bundle/verilog_systemverilog.vim/indent/verilog_systemverilog.vim:
line 45:
E121: Undefined variable: g:verilog_syntax
line 46:
E121: Undefined variable: g:verilog_syntax
line 47:
E121: Undefined variable: g:verilog_syntax
Error detected while processing $HOME/.vimrc[1434]../$HOME/tools/share/vim/vim90/syntax/syntax.vim[43]..BufRead Autocommands for ".vh"..FileType Autocommands for ""..Syntax Autocommands for "*"..function 4_SynSet[25]..script $HOME/.vim/bundle/verilog_systemverilog.vim/syntax/verilog_systemverilog.vim:
line 246:
E121: Undefined variable: g:verilog_syntax
E116: Invalid arguments for function 20_SyntaxCreate
line 341:
E121: Undefined variable: g:verilog_syntax
E116: Invalid arguments for function 20_SyntaxCreate

I am using the latest code from master as of Feb 22nd. Am I missing something?

Thanks in advance for your help. Appreciate it.

@vhda vhda self-assigned this Feb 23, 2023
@vhda
Copy link
Owner

vhda commented Feb 23, 2023

Looking at those paths I can see you are copying the files of this plugin over vim's standard installation, which is incorrect.
I suggest you use a plugin manager like vim-plug.

@vinayakkp
Copy link
Author

Hi,

I am using Vundle plugin manager and have following code:

call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'vhda/verilog_systemverilog.vim'
call vundle#end()

I am using latest VIM 9.0

@vinayakkp
Copy link
Author

Thanks for response. I did bunch of cleanup of old plugins and it now seems to work. If I can reproduce the old issue again, will update this ticket.

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

No branches or pull requests

2 participants