[Scons-dev] MSVC exception
Daniel Moody
dmoody256 at gmail.com
Mon Feb 4 13:16:47 EST 2019
I tested master on a windows system that didn't have any MSVC tools
installed and I got:
File
"C:\Users\dmmoody\Workspace\scons\src\engine\SCons\Tool\MSCommon\vc.py",
line 307, in find_vc_pdir_vswhere
vc_pdir = os.path.join(vsdir[0], 'VC')
IndexError: list index out of range
when creating an environment. It seems the Popen call returns an empty
string from stdout and that gets converted to an empty list. Seems we
should do some list size checking here? Anyone else can verify?
Heres the code in github:
https://github.com/SCons/scons/blob/5e859ac7a1aee773e23679ffdeaabdd4a957cf4c/src/engine/SCons/Tool/MSCommon/vc.py#L306
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20190204/15d88d3f/attachment.html>
More information about the Scons-dev
mailing list