Summary: | ftplugin/ada.vim problem with vim-7.1 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | George Shapovalov (RETIRED) <george> |
Component: | New packages | Assignee: | Vim Maintainers <vim> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bugs+gentoo |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
vim-7.1-ada-default-compiler.patch
vim-7.1-ada-mapleader.patch |
Description
George Shapovalov (RETIRED)
![]() This is a bug in the ftplugin/ada.vim script provided by upstream, so I'm going to close this bug as UPSTREAM. If you could report this bug to the upstream vim maintainers, I'm sure they'll come up with a good fix. Here's their instructions for submitting a bug report (taken from their FAQ): 2.6. Where can I report bugs? First collect the required information using the following command: :source $VIMRUNTIME/bugreport.vim Now send the resulting text from the above command to the bugs@vim.org e-mail address. The Vim Development mailing list (see above) is a good place to discuss general bugs. If the bug you find is with syntax highlighting or some other "added feature" (i.e. not directly programmed into vim), attempt to inform the maintainer of that feature. For more information, read :help bug-reports When a patch is made to fix this, we'll make a new gentoo release of vim. Hi Mike. I checked with the upstream. Now apparently we are supposed to set at least two vars in .vimrc to make the plugin not complain and work properly: let g:ada_default_compiler = 'gnat' let g:mapleader = "<F12>" Adding them indeed works. I am not sure what is the best way to deal with this - whether to add these options to the default vimrc or to produce a warning. First is probably better, as the warning is not that useful for majority of users and setting ada_default_compiler to "gnat" should be fine in foreseeable future (we don't have any other Ada compilers in the tree so far and that is the only free compiler anyway). That is the settings are pretty static. George Created attachment 148776 [details, diff]
vim-7.1-ada-default-compiler.patch
Created attachment 148778 [details, diff]
vim-7.1-ada-mapleader.patch
Here are two patches for the problems you've described. The first one checks if the variable g:ada_default_compiler exists before using it and the second one uses
<LocalLeader> instead of g:mapleader which is the appropriate usage here.
Can you please test these and see if they work fine?
(apply the patches in /usr/share/vim/vim71)
I'll submit them upstream but I want them to be tested by someone who knows ada first :)
Why not adding a further change to put in vimrc the default ada compiler? This appears to be fixed in current versions. Closing as fixed. |