Skip to content
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

E121: Undefinierte Variable: b:undo_ftplugin #42

Open
krischik opened this issue Nov 19, 2022 · 5 comments
Open

E121: Undefinierte Variable: b:undo_ftplugin #42

krischik opened this issue Nov 19, 2022 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@krischik
Copy link
Owner

krischik commented Nov 19, 2022

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.

@krischik krischik added the bug Something isn't working label Nov 19, 2022
@krischik
Copy link
Owner Author

Confirmed on develop and master branch.

@krischik
Copy link
Owner Author

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.

@dkearns
Copy link

dkearns commented Nov 20, 2022

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

@krischik krischik assigned krischik and dkearns and unassigned krischik Nov 21, 2022
@krischik
Copy link
Owner Author

@dkearns Thanks!

@dkearns
Copy link

dkearns commented Dec 2, 2022

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants