maybe if there is an include line :
what about detecting Device too. For exemple by adding in source file :
#define device attiny13
i can try to implement that
// Compiler: Avrgcc device: attiny13
Yes, device, family and board only add information to the current compiler.when i add the line in a file which is already saved, compiler is not update whereas device does :
I think any of those could work.perhaps it could be checked before
int error = m_compiler->compile( debug );
in CodeEditor::compile method ?
or when the file is saved before compile ?
Merged at Rev 1516.Bas has proposed merging lp:~bastien-jacquot/simulide/simulide into lp:simulide.
update compiler from source file before compile
I continue the discussion here...i added a bug on launchpad (with a possible patch) for another problem.
Problems I see:compilations errors are not detected with avrgcc.
problem is that gcc output are translate...
change LANG environment variable when compiling ?
Yes that rules out this approach.Error and warning messages starts with same patterns.
To get the exit code:ok, but where is checked (and how) on which line the error is in order to show it with red dot ?
I was thinking about that too.arcachofo wrote:
Finding line numbers for all errors and showing red dots in line number
That's an option, but it takes twice the time, for large projects in slow computers it could be an issue.One's for printing translated message, one's in english for parsing.
Yes, that would be great.Showing warnings too with orange dots ?
Yes that looks great.bjacquot wrote:what do you think about something like that :
sorry I'm not comfortable with bazaar !
of course with 2 QList for errors and warnings.
and use exitCode from m_compProcess for Compiler::getErrors return value ?
bjacquot likes this post
Permissions in this forum:
You cannot reply to topics in this forum