E121: Undefinierte Variable: b:undo_ftplugin
Brought to you by:
krischik
Originally created by: krischik
Originally owned by: dkearns
When starting GVim on an Ada project on the following errors are displayed.
In this case GVim is started with in server mode with the following script populating the tag list with all ada sources:
pushd "${PROJECT_HOME}/${in_Sub_Project}"
gvim --servername "${PROJECT_NAME}" \
1>~/Library/Logs/${PROJECT_NAME}-${0:t:r}.out \
2>~/Library/Logs/${PROJECT_NAME}-${0:t:r}.err &
sleep 5;
if test -e "${PROJECT_HOME}/Utilities/Functions.vim"; then
gvim --servername "${PROJECT_NAME}" --remote-send ":source ${PROJECT_HOME}/Utilities/Functions.vim<CR>"
fi
gvim --servername "${PROJECT_NAME}" --remote-send ":TlistToggle<CR>"
if test -e alire.toml; then
gvim --servername "${PROJECT_NAME}" --remote-send ":TlistAddFiles ${PROJECT_HOME}/${in_Sub_Project}/src/*.ad?<CR>"
if test -e "src/${in_Sub_Project}.ads"; then
gvim --servername "${PROJECT_NAME}" --remote-send ":edit src/${in_Sub_Project}.ads<CR>"
elif test -e "src/${in_Sub_Project}.adb"; then
gvim --servername "${PROJECT_NAME}" --remote-send ":edit src/${in_Sub_Project}.adb<CR>"
else
gvim --servername "${PROJECT_NAME}" --remote-send ":compiler alire<CR>"
fi
fi
popd;
It seems that the compiler plugin is loaded before the filetype plugin.
Originally posted by: krischik
Confirmed on develop and master branch.
Originally posted by: krischik
Won't happen if you first open an ada file and then set the compiler. However I consider first setting the compiler a valid use case:
Originally posted by: dkearns
@krischik, please assign it to me and I'll take a look at it later today.
Originally posted by: krischik
@dkearns Thanks!
Originally posted by: dkearns
@krischik, I have a fix for this but need to split it out from some other changes.
I'm a bit busy at the moment but I'll try to get to it this weekend. Please ping me if I let it slip and I'm holding you up on something else.