Repository navigation
Description
This issue was originally created at: 2009-06-22 03:47:07.
This issue was reported by: russel.
russel said at 2009-06-22 03:47:08
The SConstruct:
Execute ( 'touch adob' )
Default ( Alias ( 'install' , InstallAs ( 'flob' , 'adob' ) , 'ln -s flob weed' ) )
Clean ( '.' , [ 'flob' , 'weed' ] )when executed leads to the error:
|> scons
python /home/Checkouts/Bazaar/SCons_Trunk/bootstrap/src/script/scons.py
scons: Reading SConscript files ...
touch adob
scons: done reading SConscript files.
scons: Building targets ...
Install file: "adob" as "flob"
ln -s flob weed
scons: *** [install] TypeError : scons_subst_list() got an unexpected keyword
argument 'executor'
Traceback (most recent call last):
File "/home/Checkouts/Bazaar/SCons_Trunk/bootstrap/src/engine/SCons/Taskmaster.py", line 237, in execute
self.targets[0].build()
File "/home/Checkouts/Bazaar/SCons_Trunk/bootstrap/src/engine/SCons/Node/__init__.py", line 375, in build
apply(self.get_executor(), (self,), kw)
File "/home/Checkouts/Bazaar/SCons_Trunk/bootstrap/src/engine/SCons/Executor.py", line 363, in __call__
return self.do_execute(target, kw)
File "/home/Checkouts/Bazaar/SCons_Trunk/bootstrap/src/engine/SCons/Executor.py", line 345, in do_execute
status = apply(act, args, kw)
File "/home/Checkouts/Bazaar/SCons_Trunk/bootstrap/src/engine/SCons/Action.py", line 564, in __call__
stat = self.execute(target, source, env, executor=executor)
File "/home/Checkouts/Bazaar/SCons_Trunk/bootstrap/src/engine/SCons/Action.py", line 782, in execute
cmd_list, ignore, silent = self.process(target, map(rfile, source), env, executor)
File "/home/Checkouts/Bazaar/SCons_Trunk/bootstrap/src/engine/SCons/Action.py", line 699, in process
result = env.subst_list(self.cmd_list, 0, executor=executor)
File "/home/Checkouts/Bazaar/SCons_Trunk/bootstrap/src/engine/SCons/Environment.py", line 2301, in subst_list
return apply(SCons.Subst.scons_subst_list, nargs, nkw)
TypeError: scons_subst_list() got an unexpected keyword argument 'executor'
scons: building terminated because of errors.
|>gregnoel said at 2009-11-10 17:20:34
Bug party triage.
loonycyborg said at 2010-01-23 13:28:51
This seems to apply to only to command-line actions, i.e. if you pass a string. Python functions and action factories still work. Probably this bug was introduced in r3883
gregnoel said at 2010-02-03 12:44:46
Bug party triage. Probably a regression introduced in r3820, so try to squeeze it in to the next checkpoint (and hence into 1.3). Gary and Steven to chase it.
loonycyborg said at 2010-03-13 07:23:20
I've discovered that this error doesn't happen if Alias is called as env.Alias instead of as global function. It seems to be caused by NoSubstitutionProxy's subst_list method not supporting 'executor' arg.
garyo said at 2010-07-03 18:05:43
Sorry for the delay on this. Here's the relevant part of the BugParty irc log
from 02-feb-10:17:30:37 garyo Anyway, 2443? Omit the executor there, or handle it in
subst_list?
17:28:57 sgk aha
17:29:04 sgk i think i see the problem
17:30:48 sgk handle it in subst_list()
17:30:58 garyo ok, I'll do that.
17:30:56 sgk it's being handled in Environment.subst_list() correctly
17:31:13 sgk but not in the NoSubstitutionProxy that handles the default
environment case
17:31:19 garyo (right, just handle it all the way down)
17:31:18 sgk that's where the problem is
17:31:36 garyo ok, got it.
17:31:39 loonycyborg I hacked around it in my install, but it's probably not
good idea to submit my hack.
17:31:45 GregNoel OK, do we need to reschedule the issue?
17:32:06 sgk put my name on 2443 so it's on my radar screen
17:32:09 garyo loonycyborg: I think we have a handle on it now. Yes, let's do
it for 1.3 unless it gets more complicated than I think.
17:32:10 sgk p1 due to the regression?
17:32:16 garyo ok w/ me.
17:32:25 sgk and... 1.3?
17:32:50 GregNoel done; I'll assign it to Gary with Steven as QAI'm going to start on it for 2.1.
stevenknight said at 2010-07-05 10:15:55
Fixed in r5083:
Thanks for a very concise test case.
Activity