Fw: Re: [Eric] auto-compile forms, check syntax
Carles Pina i Estany
carles at pina.cat
Sun Jan 14 17:18:38 GMT 2007
(sorry, I sent to Detlev only)
Hello,
On Jan/14/2007, Detlev Offenbach wrote:
> > > > -Sometimes (often :-) ) there is some syntax error in my programs. I
> > > > have seen that "Right click" - "check" - "Syntax" tells me it. I would
> > > > like that when I close the document or when I execute the project this
> > > > thing is checked. I have seen in preferences (but I cannot find now)
> > > > something related on it and was enabled, but was not working. Any tip?
> > >
> > > That setting may be found in the configuration dialog Editor->General
> > > page. It should work (at least it does over here with eric 3.9.4).
> >
> > Ok, I have "Automatic Syntax check". If I type a mistake the "bug" (left
> > of the line) appears if I save or I execute (Shift+F2, at least). But I
> > would expect that, when I press Shift+F2 if there is any error it asks
> > me to show the errors (there is 3 errors in this file-lines, etc.). I
> > even would expect a short description of the error...
> >
>
> When you save a script or run/debug/... a project, which causes all unsaved
> scripts to be saved first, the syntax check is performed, if the a.m. setting
> is switched on. However, Python's syntax checker stops at the first one found
ok, I see... only one error by file
> and that one is reported back to the IDE and marked with the little bug
> symbol. The message reported by Python is accessible via the margin context
> menu "Show syntax error message". This is on a per file basis. If all your
> errors are one per file, all will be flagged. If you have more than one per
> file, only the first one will be flagged.
Ok, I have done a test. I have a project with N files, I have done a
mistake in two files. I would like that when I run the project Eric
verifies the errors in all files from project and tell me "You have at
least one error in file1, file2 and file3. Do you want to continue
executing the project?"
It has happened to me: I edit some files, I execute theproject and then,
during run time, appears a syntax error. I have "waste" some time
executing an invalid project...
Maybe I am using Eric in incorrect way and I don't know :-) (like before
run and project run)
--
Carles Pina i Estany GPG id: 0x8CBDAE64
http://pinux.info Manresa - Barcelona
More information about the Eric
mailing list