Menu

#42 E121: Undefinierte Variable: b:undo_ftplugin

open
nobody
bug (3)
2022-12-02
2022-11-19
Anonymous
No

Originally created by: krischik
Originally owned by: dkearns

When starting GVim on an Ada project on the following errors are displayed.

image

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.

Discussion

  • Anonymous

    Anonymous - 2022-11-19

    Originally posted by: krischik

    Confirmed on develop and master branch.

     
  • Anonymous

    Anonymous - 2022-11-19

    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:

    As a developer I want to be able to check and build my code without first opening a source file.

     
  • Anonymous

    Anonymous - 2022-11-20

    Originally posted by: dkearns

    @krischik, please assign it to me and I'll take a look at it later today.

     
  • Anonymous

    Anonymous - 2022-11-21
     
  • Anonymous

    Anonymous - 2022-11-21
     
  • Anonymous

    Anonymous - 2022-11-21

    Originally posted by: krischik

    @dkearns Thanks!

     
  • Anonymous

    Anonymous - 2022-12-02

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.