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

[error] Get an error when a command contains setting environment variable which has 'VERSION' as part of its name #40

Closed
Irving-cl opened this issue Jul 10, 2020 · 5 comments

Comments

@Irving-cl
Copy link

If I set such a command in tasks.ini:

[hi]
command=MY_VERSION=1.2 echo hello

When I execute it in asynctask, I would get such an error:

Error: $(VIM_VERSION) is invalid in command line
from /XXX/XXX/.config/asynctask/tasks.ini:
command=MY_VERSION=1.2 echo hello

I've verified that so long as the variable's name contains 'VERSION' it would have this problem.
It seems that this env variable breaks VIM_VERSION, but they don't have the same name. Is there any fix for this?

@skywind3000
Copy link
Owner

图片

I can't reproduce your problem

@skywind3000
Copy link
Owner

Overrided by another task with same name ?

@Irving-cl
Copy link
Author

Irving-cl commented Jul 10, 2020

I think I don't have another task. I haven't tried it in vim, I did it in a shell, could you please try this in a shell:

asynctask -f
(Then choose hi and execute it)

Screen Shot 2020-07-10 at 1 44 58 PM

Screen Shot 2020-07-10 at 1 45 15 PM

skywind3000 pushed a commit that referenced this issue Jul 10, 2020
@skywind3000
Copy link
Owner

fixed

@Irving-cl
Copy link
Author

Thanks!

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