compilation issues lazarus / 13-General ---------------------------------------------------------------------- ciuly · 2007-12-06 14:19 lazarus 0.9.24 with fpc 2.2.0 as taken from sourceforge a few days ago I get the folloing quite a lot. Error: c:\lazarus\fpc\2.2.0\bin\i386-win32\ppc386.exe returned an error exitcode (normal if you did not specify a source file to be compiled) and that is the only line that shows in the messages window. sometimes, I find afetr some poking around that I forgot to add a unit to the uses clause and the error dissapears. but tehre are cases, like right now, when I jsut can't figure out what in the world is the problem. can't this be fixed to show ever line during compilation and not jsut the last one? and there is another one, when I'm using the sqldb unit in the uses clause or any other db related unit and I try to show the code completion via the ctrl+space (or whatever that is called in lazarus)  C:\lazarus\fpc\2.2.0\source\packages\fcl-db\src\sqldb\sqldb.pp(2,29) Error: no pascal node found at cursor (i.e. in unparsed code) )I'm using the mysql stuff) the cursor is on a comment. it doesn't make any sense. suggestions? ---------------------------------------------------------------------- Leledumbo · 2007-12-07 04:58 Quoteand that is the only line that shows in the messages window. By default, the messages tab doesn't show all compiler messages. Try right-clicking on it and select "copy all and hidden messages to clipboard" (or something similar). QuoteC:\lazarus\fpc\2.2.0\source\packages\fcl- db\src\sqldb\sqldb.pp(2,29) Error: no pascal node found at cursor (i.e. in unparsed code) To the best of my knowledge, code completion needs cursor position to determine what kind of completion should be done. If the cursor is on a class declaration, it will complete the implementation, if it's on a statement and the variables used aren't yet declared, it will create the declaration (identifier completion), etc. If you put it on a comment, what kind of completion should be done? ---------------------------------------------------------------------- ciuly · 2007-12-07 08:39 I copied all messages with hidden to clipboard: all 23227 of them is that normal? I know I've checked in the settings to show all messages, this was back in 0.9.22 when the compilation was taking around 2 minutes and the UI freezed. showing all messages made the ui responsive. I uncheked it now and it seems the problem with not showing the messages dissapeared. weird thing. I also see another warning now: You are using the oboslete switch -OG does this mean we are no longer supposed to use the "generate faster code" option from the compiler configuration dialog? then why is it still there? well, that's why I mentioned "ctrl+space" because I dont' remember what lazarus calls that. In delphi, it's called code completeion, but I rmember readinf somewhere that in lazarus, it's called something else. it's when you write classidentifier.+ to see what's "in it". if the sqldb is in the uses clause, I get that error message, the sqldb unit opens up and the cursor positions itsef on that exact same location every time (2, 29) no matter which unit I'm in. it happens with a newly created application on which I drop the db components (a mysql connection (for 5.0) a grid, a transaction and a query. ---------------------------------------------------------------------- Leledumbo · 2007-12-10 07:22 QuoteI also see another warning now: You are using the oboslete switch -OG I've posted this in bug tracker. FPC has some obsolete compiler options which Lazarus still use. -OG has no replacement, I guess it's now used by default. I've never used ctrl+space though, so I have no idea why it happens. Anyone knows the solution? ---------------------------------------------------------------------- ciuly · 2007-12-10 08:41 I see. thanks for the report one quesiton though: if you don't use ctrl+space, what do you use when you want to know some method/property name and you don't remember it? or jsut want to see what other methods/properties there are in some class? ---------------------------------------------------------------------- Leledumbo · 2007-12-10 11:05 Just type a dot after the class name or class instance and wait for a while till the list appears. ---------------------------------------------------------------------- ciuly · 2007-12-10 11:19 cool thing thanks as weird as it sounds, I cannot reproduce the issue with the sqldb anymore. it might be one of those problems that fixes itself once you restart the IDE. I'll get back on that if it happens again.