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
I am a new user to SConsolidator/Eclipse/SCons. I am working with a
pure C project.
When I click the Swiss Flag Icon to refresh my build settings from my
hand codes SConstruct file, I get this error:
=== Running SCons at 2/12/13 4:03 PM ====
Command line: /usr/bin/scons -u -s -f SConstruct -f
/home/pottmi/mypro/mypro/ProjectInfoExtractor.py
--directory=/home/pottmi/mypro/mypro
AttributeError: 'NoneType' object has no attribute 'rfind':
File "/home/pottmi/mypro/mypro/ProjectInfoExtractor.py", line 182:
write_config(incls, macs, env)
File "/home/pottmi/mypro/mypro/ProjectInfoExtractor.py", line 141:
% to_string(get_sys_includes('cc', environ)))
File "/home/pottmi/mypro/mypro/ProjectInfoExtractor.py", line 76:
cc_output = invoke_compiler(lang, environ)
File "/home/pottmi/mypro/mypro/ProjectInfoExtractor.py", line 57:
stdout=subprocess.PIPE)
File "/usr/lib/scons/SCons/Action.py", line 674:
return subprocess.Popen(cmd, **kw)
File "/usr/lib/python2.6/subprocess.py", line 639:
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1228:
raise child_exception
Duration 608 ms.
My SConstruct file looks like this:
VariantDir('build', '.')
SConscript('build/src/SConscript')
My src/SConscript file looks like this:
env = Environment(CPPPATH = ['.', '..', '/usr/include'])
env.Program('dumpstatus', ['dumpstatus.c', 'logger.c'])
I can build without error.
The /home/pottmi/mypro/mypro/ProjectInfoExtractor.py file does not
exist after the error so I cannot use that to debug.
The project was created from existing source and SConstruct using the sconsolidator wizard. There were no errors during that time. This problem happened the first and every time I click the swiss flag" button.
I have tried this with a variety of different settings for CPPPATH. I did notice that my settings for CPPPATH are making it into the C configuration in eclipse despite the error.
Questions are:
What can I do to fix this?
What can I do to debug this in the future when I get similar problems?
BTW: scons is great. Despite this problem it is so much less frustrating than automake.
The text was updated successfully, but these errors were encountered:
Reported by Michael Potter:
I am a new user to SConsolidator/Eclipse/SCons. I am working with a
pure C project.
When I click the Swiss Flag Icon to refresh my build settings from my
hand codes SConstruct file, I get this error:
=== Running SCons at 2/12/13 4:03 PM ====
Command line: /usr/bin/scons -u -s -f SConstruct -f
/home/pottmi/mypro/mypro/ProjectInfoExtractor.py
--directory=/home/pottmi/mypro/mypro
AttributeError: 'NoneType' object has no attribute 'rfind':
File "/home/pottmi/mypro/mypro/ProjectInfoExtractor.py", line 182:
write_config(incls, macs, env)
File "/home/pottmi/mypro/mypro/ProjectInfoExtractor.py", line 141:
% to_string(get_sys_includes('cc', environ)))
File "/home/pottmi/mypro/mypro/ProjectInfoExtractor.py", line 76:
cc_output = invoke_compiler(lang, environ)
File "/home/pottmi/mypro/mypro/ProjectInfoExtractor.py", line 57:
stdout=subprocess.PIPE)
File "/usr/lib/scons/SCons/Action.py", line 674:
return subprocess.Popen(cmd, **kw)
File "/usr/lib/python2.6/subprocess.py", line 639:
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1228:
raise child_exception
Duration 608 ms.
My SConstruct file looks like this:
VariantDir('build', '.')
SConscript('build/src/SConscript')
My src/SConscript file looks like this:
env = Environment(CPPPATH = ['.', '..', '/usr/include'])
env.Program('dumpstatus', ['dumpstatus.c', 'logger.c'])
I can build without error.
The /home/pottmi/mypro/mypro/ProjectInfoExtractor.py file does not
exist after the error so I cannot use that to debug.
The project was created from existing source and SConstruct using the sconsolidator wizard. There were no errors during that time. This problem happened the first and every time I click the swiss flag" button.
I have tried this with a variety of different settings for CPPPATH. I did notice that my settings for CPPPATH are making it into the C configuration in eclipse despite the error.
Questions are:
BTW: scons is great. Despite this problem it is so much less frustrating than automake.
The text was updated successfully, but these errors were encountered: