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

No such variable: @mods #38

Closed
ionelmc opened this issue Apr 21, 2017 · 3 comments
Closed

No such variable: @mods #38

ionelmc opened this issue Apr 21, 2017 · 3 comments

Comments

@ionelmc
Copy link

ionelmc commented Apr 21, 2017

It woudl appear that if I use absolute path i get error about missing variable.

Eg conf:

/workspace/** {
    prep: echo "mods:" @mods
    prep: echo "dirmods:" @dirmods
}
@oblitum
Copy link

oblitum commented Sep 2, 2017

This is working for me on last release:

/tmp/mutt/mutt-* {
	prep +onchange: echo "@mods"
}

But I have another issue, the output is like the following:

20:15:11: skipping prep:
20:15:30: prep: echo ".//tmp/mutt/mutt-foo-1001-3996-7005169743704104769"
.//tmp/mutt/mutt-foo-1001-3996-7005169743704104769
>> done (1.494ms)

The absolute path is clearly wrong.

@oblitum
Copy link

oblitum commented Sep 3, 2017

Another issue I found with absolute paths: if the directory doesn't exist modd will simply terminate with an error telling that lstat failed on such directory because it doesn't exist. I couldn't solve this even with a empty match pattern to try create the directory on script startup. I'd suggest to run the empty match patterns before setting up watching of the other patterns, so that it's possible to do some preparation.

@cortesi
Copy link
Owner

cortesi commented Nov 1, 2017

I'm unable to reproduce the original issue here with the latest version of modd. Let's open a separate ticket for the empty directory issue.

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

3 participants