U
Ulf Thorsen
I use Visual Studio 2005 for a C-project using an external compiler, and came
up with the idea that error parsing would be neat, i.e. enabling the
functionality
available for a "normal" build where you can double click a compile
error/warning message and be guided to the file/line in question.
Using sed to filter output from the compiler i managed to make the error
output look like the ones generated from the regular compiler, and hooray, it
seemed to work!
However, i found that in some cases double clicking an error message it will
crash the entire Visual Studio framework, and I simply can't figure out why.
Examples:
These two work, and are stable:
V:\ulth_view\gc900xp\cu\scu\c\scu_bas.c(338) : Error C0137 : expression must
be a modifiable lvalue
V:\ulth_view\gc900xp\cu\scu\c\scu_bas.c(333) : Warning C0177-D : variable
"iWontUseThis" was declared but never referenced
While this one is highly unstable:
V:\ulth_extended\gc800ext\CU\cu\scu\c\scu_bas.c(1001) : Error C0020 :
undeclared identifier "sculog"
I can't see the difference here, so if anyone can i'd be delighted to hear
any theories. If someone inside MS could explain in detail what happens when
you double click somewhere in the output window, it would also be valuable to
me.
I know I'm going a bit outside the scope of Visual Studio here, but when it
is working I find it highly useful, and so would probably others who use this
framework with external compilers.
PS: When writing this, i just realised there's another difference: The ones
that are working are in a single project solution, while the ones that aren't
are in a multi project solution. Perhaps this hasn't got anything to do with
error parsing to do at all, but rather the mechanism for finding a certain
file and focusing on it? I don't know.
up with the idea that error parsing would be neat, i.e. enabling the
functionality
available for a "normal" build where you can double click a compile
error/warning message and be guided to the file/line in question.
Using sed to filter output from the compiler i managed to make the error
output look like the ones generated from the regular compiler, and hooray, it
seemed to work!
However, i found that in some cases double clicking an error message it will
crash the entire Visual Studio framework, and I simply can't figure out why.
Examples:
These two work, and are stable:
V:\ulth_view\gc900xp\cu\scu\c\scu_bas.c(338) : Error C0137 : expression must
be a modifiable lvalue
V:\ulth_view\gc900xp\cu\scu\c\scu_bas.c(333) : Warning C0177-D : variable
"iWontUseThis" was declared but never referenced
While this one is highly unstable:
V:\ulth_extended\gc800ext\CU\cu\scu\c\scu_bas.c(1001) : Error C0020 :
undeclared identifier "sculog"
I can't see the difference here, so if anyone can i'd be delighted to hear
any theories. If someone inside MS could explain in detail what happens when
you double click somewhere in the output window, it would also be valuable to
me.
I know I'm going a bit outside the scope of Visual Studio here, but when it
is working I find it highly useful, and so would probably others who use this
framework with external compilers.
PS: When writing this, i just realised there's another difference: The ones
that are working are in a single project solution, while the ones that aren't
are in a multi project solution. Perhaps this hasn't got anything to do with
error parsing to do at all, but rather the mechanism for finding a certain
file and focusing on it? I don't know.