You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
possibly related to #150, i can't use {posargs} even in "commands=" if any other substitution are present.
Using tox 2.3.1, and the commandline here is just to try to list the environments:
$ tox -c some_tox.ini -l
For all examples, failure looks like:
#!
Traceback (most recent call last):
File "/home/classic/.venv/bin/tox", line 11, in <module>
sys.exit(cmdline())
File "/home/classic/.venv/lib/python2.7/site-packages/tox/session.py", line 38, in main
config = prepare(args)
File "/home/classic/.venv/lib/python2.7/site-packages/tox/session.py", line 26, in prepare
config = parseconfig(args)
File "/home/classic/.venv/lib/python2.7/site-packages/tox/config.py", line 229, in parseconfig
parseini(config, inipath)
File "/home/classic/.venv/lib/python2.7/site-packages/tox/config.py", line 729, in __init__
self.make_envconfig(name, section, reader._subs, config)
File "/home/classic/.venv/lib/python2.7/site-packages/tox/config.py", line 760, in make_envconfig
res = meth(env_attr.name, env_attr.default)
File "/home/classic/.venv/lib/python2.7/site-packages/tox/config.py", line 929, in getargvlist
return _ArgvlistReader.getargvlist(self, s)
File "/home/classic/.venv/lib/python2.7/site-packages/tox/config.py", line 1097, in getargvlist
replaced = reader._replace(current_command)
File "/home/classic/.venv/lib/python2.7/site-packages/tox/config.py", line 973, in _replace
return Replacer(self, crossonly=crossonly).do_replace(value)
File "/home/classic/.venv/lib/python2.7/site-packages/tox/config.py", line 992, in do_replace
return self.RE_ITEM_REF.sub(self._replace_match, x)
File "/home/classic/.venv/lib/python2.7/site-packages/tox/config.py", line 1021, in _replace_match
return self._replace_substitution(match)
File "/home/classic/.venv/lib/python2.7/site-packages/tox/config.py", line 1067, in _replace_substitution
val = self._substitute_from_other_section(sub_key)
File "/home/classic/.venv/lib/python2.7/site-packages/tox/config.py", line 1058, in _substitute_from_other_section
crossonly=self.crossonly)
File "/home/classic/.venv/lib/python2.7/site-packages/tox/config.py", line 973, in _replace
return Replacer(self, crossonly=crossonly).do_replace(value)
File "/home/classic/.venv/lib/python2.7/site-packages/tox/config.py", line 992, in do_replace
return self.RE_ITEM_REF.sub(self._replace_match, x)
File "/home/classic/.venv/lib/python2.7/site-packages/tox/config.py", line 1021, in _replace_match
return self._replace_substitution(match)
File "/home/classic/.venv/lib/python2.7/site-packages/tox/config.py", line 1067, in _replace_substitution
val = self._substitute_from_other_section(sub_key)
File "/home/classic/.venv/lib/python2.7/site-packages/tox/config.py", line 1061, in _substitute_from_other_section
"substitution key %r not found" % key)
tox.ConfigError: ConfigError: substitution key 'posargs' not found
it would be nice if {posargs} just worked everywhere.
Also, current documentation at https://tox.readthedocs.org/en/latest/config.html does not describe the {posargs} token by itself, there's just the docs about {posargs:DEFAULT} which seems to be something else.
The text was updated successfully, but these errors were encountered:
it looks pretty similar, though my test case is different; #279 is attempting to move {posargs} as part of a variable that's interpreted elsewhere, while mine is doing something simpler, adding {posargs} in place to a line that happens to include variables from elsewhere. While the fix for both might be the same I'd hope that all of these combinations are tested.
possibly related to #150, i can't use {posargs} even in "commands=" if any other substitution are present.
Using tox 2.3.1, and the commandline here is just to try to list the environments:
For all examples, failure looks like:
Example 1, fails:
Example 2, fails:
Example 3, passes:
it would be nice if {posargs} just worked everywhere.
Also, current documentation at https://tox.readthedocs.org/en/latest/config.html does not describe the {posargs} token by itself, there's just the docs about {posargs:DEFAULT} which seems to be something else.
The text was updated successfully, but these errors were encountered: