Re: [Lazarus] New "summary" line in Messages window
On 9/30/14, Graeme Geldenhuys wrote: >> What information is hidden? The old message ended with something like "Project $targetfilename succesfully built", now it does not show the $targetfilename anymore, which sometimes is inconvenient for me. Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Pochecker (was Fuzzy traslations ignored)
On 9/29/14, Giuliano Colla wrote: > But as far as the indication of the presence of errors in the graphical > view, I strongly disagree with you. > I tested with the translations of ($Lazarus)/languages/lazaruside.po. > You must scan exactly 12165 lines on the results page to see all the > errors (the remaining lines give the percentage for translations). See OK, you have a point there. The hint text needs modification though IMHO, not jus a plain "%d Errors". Feel free to commit. Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Pochecker (was Fuzzy traslations ignored)
On 9/29/14, Maxim Ganetsky wrote: > Do you really want to reimlement PoEdit or Lokalize in Lazarus (e.g. > implement translation memory, dictionaries support etc.)? What for? I > think it is better to just open external editor which is associated with > PO files (e.g. PoEdit or Lokalize). I agree with you. Currently the file can be opened in the IDE. I plan to implement some "external editor" capability for the tool. (I don't want to implement yet another options dialog for it, so it'll probably a commandline paramter, and possibly stored in the config file.) Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Pochecker (was Fuzzy traslations ignored)
On 9/29/14, Giuliano Colla wrote: >> This is wrong, I think. >> ErrCount depends on the previous tests that have run (and on the >> "Ignore Fuzzy" option. >> The CheckStatistics runs independantly from all other tests. >> As a result the new property for TStat can be rather misleading. > > Why should it be misleading? It just tells if there are any errors for > the tests required. If you set "Ignore Fuzzy" it means that you don't > care and the format errors of Fuzzy translations are not counted. The hint suggest an absolute value for the number of errors found, when in fact it is dependant on the test settings. It does not seem right to me. Maybe it should be refrased then? Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Pochecker (was Fuzzy traslations ignored)
On 9/29/14, Giuliano Colla wrote: >> Wouldn't it be more logical to use DoubleClick (ore select by mouse >> and have a button on the form)? > > The problem is that: > > 1) the OnItemSelected, which would have been the logical choice, doesn't > appear to work (for the vsIcon mode) with some popular widgetsets (I > don't remember which ones, but a couple among gtk2, win32 and Qt) I'll look into that. AFAIR it works on Windows and GTK2 Linux. > 2) OnClick and OnDoubleClick do not provide you neither the ListView > Item nor the mouse position: you know only that the full window has been > clicked somewhere. Therefore one is forced to use an event which > provides mouse position. No you can access the global Mouse.CursorPos in an OnClick or OnDblClick and use ScreenToClient to get the relative coordinates. I will test this apporach in my ListView test suite. No hurry though, it's a minor issue. Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Problem in the debugger?
Hi All, While I hover mouse over a variable during debugging, I often get popups shown as attached. Is there any known problem of the debugger, or I have to do some setup/tweak? Thanks! Xiangrong -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] New "summary" line in Messages window
On Mon, 29 Sep 2014 23:36:54 +0100 Graeme Geldenhuys wrote: >[...] > > compiler is currently working. Once the compilation is finished only the > > errors/hints/notes are shown. > > Lazarus 1.2.x also shows the Linking line only for a brief moment. > > I upgraded from 1.0.x to 1.3.x (trunk from about 1 month ago), so > completely skipped 1.2.x releases. AFAIR 1.0.x did the same. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] New "summary" line in Messages window
On 2014-09-29 23:30, Mattias Gaertner wrote: > > The gradient is used when there is not enough space to > show all lines and you have to scroll to see them. OK. I knew to scroll, but I didn't know there was a meaning to the gradient. It wasn't immediately obvious. I just thought it was eye candy gone wrong. >> Ah, I found it now. Thanks. I was looking for color options under the >> usual Lazarus theme settings. > > I guess you mean the Editor color? Yes, that's correct. > compiler is currently working. Once the compilation is finished only the > errors/hints/notes are shown. > Lazarus 1.2.x also shows the Linking line only for a brief moment. I upgraded from 1.0.x to 1.3.x (trunk from about 1 month ago), so completely skipped 1.2.x releases. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] New "summary" line in Messages window
On Mon, 29 Sep 2014 23:03:24 +0100 Graeme Geldenhuys wrote: > On 2014-09-29 20:33, Mattias Gaertner wrote: > > > > The font is your normal font. Is it not? > > Under Windows 7 it looked different to me. I'll double check tomorrow at > work. Maybe clearing out my Lazarus settings will help. The colors and > gradient looked terrible under Windows - not sure if my Windows color > scheme affected the look in Lazarus. eg: My Windows 7 color scheme has a > grey background color for text, memo, treeview etc components. The gradient is used when there is not enough space to show all lines and you have to scroll to see them. > > You can change colors in the options. > > Ah, I found it now. Thanks. I was looking for color options under the > usual Lazarus theme settings. I guess you mean the Editor color? > > What information is hidden? > > I build the same project with different settings - producing different > executables in different output locations. I'm pretty sure I used to see > the "Linking..." message showing me the location of the final executable. The IDE shows the last line of the FPC output, so you see, where the compiler is currently working. Once the compilation is finished only the errors/hints/notes are shown. Lazarus 1.2.x also shows the Linking line only for a brief moment. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] New "summary" line in Messages window
On 2014-09-29 20:33, Mattias Gaertner wrote: > > The font is your normal font. Is it not? Under Windows 7 it looked different to me. I'll double check tomorrow at work. Maybe clearing out my Lazarus settings will help. The colors and gradient looked terrible under Windows - not sure if my Windows color scheme affected the look in Lazarus. eg: My Windows 7 color scheme has a grey background color for text, memo, treeview etc components. > You can change colors in the options. Ah, I found it now. Thanks. I was looking for color options under the usual Lazarus theme settings. > What information is hidden? I build the same project with different settings - producing different executables in different output locations. I'm pretty sure I used to see the "Linking..." message showing me the location of the final executable. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Pochecker (was Fuzzy traslations ignored)
Il 29/09/2014 21:35, Bart ha scritto: On 9/29/14, Giuliano Colla wrote: [..] 7) Trying to use the tool I realized that another feature was missing: GraphStat provided only information about the Translated/Untranslated/Fuzzy, but didn't tell a thing about errors. Therefore I've added another property to TStat, and filled it properly (TStat.Create, etc). Then I've added a red question mark to the pie image when the errors are > 0, and I've added the number of errors to the hint. This is wrong, I think. ErrCount depends on the previous tests that have run (and on the "Ignore Fuzzy" option. The CheckStatistics runs independantly from all other tests. As a result the new property for TStat can be rather misleading. I tested the IDE integration, and it works as expected. But as far as the indication of the presence of errors in the graphical view, I strongly disagree with you. I tested with the translations of ($Lazarus)/languages/lazaruside.po. You must scan exactly 12165 lines on the results page to see all the errors (the remaining lines give the percentage for translations). See Image: http://www.bononiadocta.it/Lazarus/Pochecker-r.png This makes the tool completely useless to provide a general view of the state of the translations. If you compare with this image: http://www.bononiadocta.it/Lazarus/Pochecker-g.png you may judge by yourself what's more practical. Giuliano -- Giuliano Colla Project planning question: when it's 90% done, are we halfway or not yet? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Pochecker (was Fuzzy traslations ignored)
Il 29/09/2014 22:40, Bart ha scritto: On 9/29/14, Giuliano Colla wrote: Please find here enclosed my proposed patch for Pochecker. Committed (edited version) in 3 batches. I did not check the IDE integration myself. I'll test IDE integration and let you know. I noticed you uses MousUp for opening, this means you cannot click on an item without being prompted for opening. Wouldn't it be more logical to use DoubleClick (ore select by mouse and have a button on the form)? The problem is that: 1) the OnItemSelected, which would have been the logical choice, doesn't appear to work (for the vsIcon mode) with some popular widgetsets (I don't remember which ones, but a couple among gtk2, win32 and Qt) 2) OnClick and OnDoubleClick do not provide you neither the ListView Item nor the mouse position: you know only that the full window has been clicked somewhere. Therefore one is forced to use an event which provides mouse position. The choice is then between MouseDown and MouseUp. I picked up MouseUp because it simulates the behavior of OnClick (which is actually triggered when mouse is released. I've been fighting with ListView when working on editortoolbar and I learned that it's a sort of wild beast, which nobody has succeeded in taming up to now. It almost never does what's expected to do. That's why I had tried to avoid it. Code for positioning widdegts on a window is a child's play, with respect with events which do not occur, or which occur in reverse order, or things like that... Giuliano -- Giuliano Colla Project planning question: when it's 90% done, are we halfway or not yet? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Pochecker (was Fuzzy traslations ignored)
Il 29/09/2014 21:35, Bart ha scritto: On 9/29/14, Giuliano Colla wrote: Please find here enclosed my proposed patch for Pochecker. I took a quick look at the patch: 2) In order to be able to open the file, I needed its full name, so I've been forced to add a new property to Tstat, and then pass its value to TStat.Create. I would rather call th eproperty FullName instead of Name... Also it we could just use the fullname only (and extract shortname when needed, or declare a function PoShortName). I fully agree on FullName. For the rest, I think that one more property is less expensive in terms of code, and on speed. 6) At startup the last choices are remembered, but not by the OpenFile dialog. Therefore I've set the InitialDir of the dialog to the one of the last file, which is usually a much better starting point than the defaults. I intend to have that in the PoChecker.xml settings. 7) Trying to use the tool I realized that another feature was missing: GraphStat provided only information about the Translated/Untranslated/Fuzzy, but didn't tell a thing about errors. Therefore I've added another property to TStat, and filled it properly (TStat.Create, etc). Then I've added a red question mark to the pie image when the errors are > 0, and I've added the number of errors to the hint. This is wrong, I think. ErrCount depends on the previous tests that have run (and on the "Ignore Fuzzy" option. The CheckStatistics runs independantly from all other tests. As a result the new property for TStat can be rather misleading. Why should it be misleading? It just tells if there are any errors for the tests required. If you set "Ignore Fuzzy" it means that you don't care and the format errors of Fuzzy translations are not counted. When I have more time I will test the patch and adapt it (see notes above). One further remark. For the sake of svn history it is encouraged to split commits per "issue fixed", so in this case: - antialiasing - better hints - IDE integration Makes for better bug-hunting in the future. I'll remember for next time. Giuliano -- Giuliano Colla Project planning question: when it's 90% done, are we halfway or not yet? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Pochecker (was Fuzzy traslations ignored)
29.09.2014 22:08, Giuliano Colla пишет: [snip] I believe that there's a simple way to go in the right direction. Pochecker (when integrated in the IDE) is being added the capability of opening a po file in the IDE editor. The syntax highlighter for po files is already there. Adding to the IDE editor some smarter po-file editing capabilities can be done without a big effort, following the guidelines of the HTML editor provided by the weblaz package, and perhaps implementing a minimal codetool-like unit for po syntax (which is rather simple). Do you really want to reimlement PoEdit or Lokalize in Lazarus (e.g. implement translation memory, dictionaries support etc.)? What for? I think it is better to just open external editor which is associated with PO files (e.g. PoEdit or Lokalize). This could end in a smooth cycle: check, edit, check again, but even now it's already usable: after all translations are performed by developers. In many cases translators are not developers and have difficulties with programming. -- Best regards, Maxim Ganetsky mailto:gan...@narod.ru -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Pochecker (was Fuzzy traslations ignored)
On 9/29/14, Giuliano Colla wrote: > Please find here enclosed my proposed patch for Pochecker. Committed (edited version) in 3 batches. I did not check the IDE integration myself. I noticed you uses MousUp for opening, this means you cannot click on an item without being prompted for opening. Wouldn't it be more logical to use DoubleClick (ore select by mouse and have a button on the form)? Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Pochecker (was Fuzzy traslations ignored)
On 9/29/14, Giuliano Colla wrote: > > Please find here enclosed my proposed patch for Pochecker. I took a quick look at the patch: > 2) In order to be able to open the file, I needed its full name, so I've > been forced to add a new property to Tstat, and then pass its value to > TStat.Create. I would rather call th eproperty FullName instead of Name... Also it we could just use the fullname only (and extract shortname when needed, or declare a function PoShortName). > 6) At startup the last choices are remembered, but not by the OpenFile > dialog. Therefore I've set the InitialDir of the dialog to the one of > the last file, which is usually a much better starting point than the > defaults. I intend to have that in the PoChecker.xml settings. > 7) Trying to use the tool I realized that another feature was missing: > GraphStat provided only information about the > Translated/Untranslated/Fuzzy, but didn't tell a thing about errors. > Therefore I've added another property to TStat, and filled it properly > (TStat.Create, etc). Then I've added a red question mark to the pie > image when the errors are > 0, and I've added the number of errors to > the hint. This is wrong, I think. ErrCount depends on the previous tests that have run (and on the "Ignore Fuzzy" option. The CheckStatistics runs independantly from all other tests. As a result the new property for TStat can be rather misleading. When I have more time I will test the patch and adapt it (see notes above). One further remark. For the sake of svn history it is encouraged to split commits per "issue fixed", so in this case: - antialiasing - better hints - IDE integration Makes for better bug-hunting in the future. Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] New "summary" line in Messages window
On Mon, 29 Sep 2014 20:21:03 +0100 Graeme Geldenhuys wrote: > Hi, > > Is there any way to disable the new "summary" lines that appear in the > Messages window when I compile a project. For a couple of reasons: > > - It looks butt ugly. The gradient colors just don't do it for me. > - It looks even worse under Windows (compared to Linux or FreeBSD with > GTK2). Fonts and Color. The font is your normal font. Is it not? You can change colors in the options. > - It hides information I want to see. What information is hidden? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] New "summary" line in Messages window
Hi, Is there any way to disable the new "summary" lines that appear in the Messages window when I compile a project. For a couple of reasons: - It looks butt ugly. The gradient colors just don't do it for me. - It looks even worse under Windows (compared to Linux or FreeBSD with GTK2). Fonts and Color. - It hides information I want to see. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Error message if lazarus is closed
On Mon, 29 Sep 2014 19:19:18 +0200 John Landmesser wrote: > Hi Mattias, > > the problem is strange, but solved: > > Had a project with XMLPropStorage1.Active := true ( at design-Time!!! ) > but without the fileName for the "config.xml" Fixed. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Pochecker (was Fuzzy traslations ignored)
Il 28/09/2014 21:13, Maxim Ganetsky ha scritto: 27.09.2014 10:06, Vincent Snijders пишет: 2014-09-26 22:49 GMT+02:00 Maxim Ganetsky mailto:gan...@narod.ru>>: 26.09.2014 20 :53, Bart пишет: I propose to add two optional files sanitization/cleanup features: 1. Make all entries that have formatting errors fuzzy. 2. Remove PreviousMsgId (comments starting with "#| ") from entries which are not fuzzy (in this case such comments are no longer relevant, but translation tools don't remove them themselves when removing fuzzy flag). No, I'm not going to, and I strongly feel we should no go that way. The tool is for checking. It's a pity. These features ease translations maintenance work and are not covered by PO file editors. Maybe it is better to add these feature to updatepofile? IMHO it better belongs to POChecker because it already has most of needed infrastructure. E.g. updatepofile cannot detect formatting errors while POChecker can. I believe that there's a simple way to go in the right direction. Pochecker (when integrated in the IDE) is being added the capability of opening a po file in the IDE editor. The syntax highlighter for po files is already there. Adding to the IDE editor some smarter po-file editing capabilities can be done without a big effort, following the guidelines of the HTML editor provided by the weblaz package, and perhaps implementing a minimal codetool-like unit for po syntax (which is rather simple). This could end in a smooth cycle: check, edit, check again, but even now it's already usable: after all translations are performed by developers. Giuliano -- Giuliano Colla Project planning question: when it's 90% done, are we halfway or not yet? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Pochecker (was Fuzzy traslations ignored)
Il 26/09/2014 18:51, Bart ha scritto: Feel free to commit it, I will probably not interfere with my work. I'll be working on the mainform most of the time now (and the settings unit). Please find here enclosed my proposed patch for Pochecker. I've implemented the opening in the IDE editor (which brought a number of consequences), but I've also made some improvements. What I've done: 1) cosmetic: adding an AntialiasingMode := amOn to the canvas in TGraphStatForm.CreateBitmap, the Qt image is much better (Qt has antialiasing support). Other widgetsets are unaffected. 2) In order to be able to open the file, I needed its full name, so I've been forced to add a new property to Tstat, and then pass its value to TStat.Create. 3) If you open the file in the IDE editor, you have still two modal windows and the main window open, in front of the Editor Window, and you don't get any visual feedback that a new editor window has been opened. I introduced a custom Modal Result mrOpenEditorFile, so that the modal windows are closed, and the main window is minimized. 4) Once you're done editing you may want to check again, but this requires that Pochecker is visible in the Task Bar: the property ShowInTaskBar must be set to stAlways to make sure that it's accessible from the task bar in all platforms. 5) If after editing and saving your file(s) you click a second time on "Run Selected Tests" you'd like to see the current situation, not the previous one. Therefore I've added a boolean FNewRun, to know if a call to TryCreatePoFamily is required before running the tests. 6) At startup the last choices are remembered, but not by the OpenFile dialog. Therefore I've set the InitialDir of the dialog to the one of the last file, which is usually a much better starting point than the defaults. 7) Trying to use the tool I realized that another feature was missing: GraphStat provided only information about the Translated/Untranslated/Fuzzy, but didn't tell a thing about errors. Therefore I've added another property to Tstat, and filled it properly (TStat.Create, etc). Then I've added a red question mark to the pie image when the errors are > 0, and I've added the number of errors to the hint. If you like what I've done, but it creates conflicts with your changes, let me know if you prefer that I take care of adapting my patch to the current situation. Giuliano -- Giuliano Colla Project planning question: when it's 90% done, are we halfway or not yet? Index: pocheckerconsts.pas === --- pocheckerconsts.pas (revisione 46344) +++ pocheckerconsts.pas (copia locale) @@ -3,6 +3,7 @@ {$mode objfpc}{$H+} interface +uses Controls; resourcestring //Main form @@ -40,7 +41,8 @@ sFuzzy = 'Fuzzy'; sStatHint = '%3d Translated (%3.1f%%)' + LineEnding + '%3d UnTranslated (%3.1f%%)' + LineEnding + - '%3d Fuzzy (%3.1f%%)'; + '%3d Fuzzy (%3.1f%%)' + LineEnding + + '%d Errors'; //PoFamiles sOriginal = 'Original'; @@ -78,6 +80,12 @@ sPercTranslated = '%s: %4.1f%% translated strings.'; sPercUntranslated = '%s: %4.1f%% untranslated strings.'; sPercFuzzy = '%s: %4.1f%% fuzzy strings.'; + //GraphStat + sOpenFile = 'Open file %s in Ide Editor?'; + SOpenFail = 'Unable to open file %s'; +const + mrOpenEditorFile = mrNone+100; + implementation end. Index: resultdlg.lfm === --- resultdlg.lfm (revisione 46344) +++ resultdlg.lfm (copia locale) @@ -27,10 +27,10 @@ object CloseBtn: TBitBtn AnchorSideRight.Control = Panel1 AnchorSideRight.Side = asrBottom - Left = 657 - Height = 26 + Left = 651 + Height = 27 Top = 12 - Width = 75 + Width = 81 Anchors = [akRight] AutoSize = True BorderSpacing.Right = 10 @@ -41,10 +41,10 @@ end object SaveBtn: TBitBtn AnchorSideRight.Control = CloseBtn - Left = 544 - Height = 26 + Left = 524 + Height = 27 Top = 12 - Width = 103 + Width = 117 Anchors = [akRight] AutoSize = True BorderSpacing.Around = 10 @@ -90,10 +90,10 @@ end object CopyBtn: TBitBtn AnchorSideRight.Control = SaveBtn - Left = 393 - Height = 26 + Left = 357 + Height = 27 Top = 12 - Width = 141 + Width = 157 Anchors = [akRight] AutoSize = True BorderSpacing.Around = 10 @@ -139,10 +139,10 @@ end object GraphStatBtn: TBitBtn AnchorSideRight.Control = CopyBtn - Left = 226 - Height = 26 + Left = 162 + Height = 27 Top = 12 - Width = 157 + Width = 185 Anchors = [akRight] AutoSize = True Caption = 'Show statistics graph' @@ -198,7 +198,7 @@ ParentColor = False ParentFont = False TabOrder = 0 -G
Re: [Lazarus] Error message if lazarus is closed
Hi Mattias, the problem is strange, but solved: Had a project with XMLPropStorage1.Active := true ( at design-Time!!! ) but without the fileName for the "config.xml" Changed it to false and now everything is ok. But why tries XMLPropStorage1 to write its xml file when i close lazarus, there is just nothing to save at design-time! Should i write a bug-report for this? Thanks for your help! I didn't try the gdb, thats far beyond my knowledge :-(( JohnML -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Cannot open a non-select statement.
Thanks a lot, its works On 26 Sep 2014 19:09, "Rik van Kekem" wrote: > Izac Kruger wrote: > >> if I clicked on the second button who is to >> removed all the data on the fields, then after refield again the >> information and clicked on the INSERT button, I received a funny >> message: SQLQeuryLite: Cannot open a non-select statement. >> > ... > > else begin >> //DB connections. >> if DataModuleConn.SQLTransSQLite.Active=False then >>begin >> DataModuleConn.SQLite3Conn.Connected:=True; >> DataModuleConn.SQLTransSQLite.Active:=True; >> DataModuleConn.SQLQuerySQLite.Active:=True; >> >> DataModuleConn.SQLQuerySQLite.SQL.Text:='INSERT INTO >> loginConnection (hostname, hostip, dbname, username, password) VALUES (' >> +':getHOSTNAME, >> > You have a line DataModuleConn.SQLQuerySQLite.Active:=True; > Why? > This is usually for opening a dataset with a SELECT-statement. > If your SQL is still the INSERT-statement from the previous insert an > Active:=True will give you that error. > > Actually you should make sure the SQLQuerySQLite is NOT active before > changing the SQL.Text. So if you change that line as follows it should work: > DataModuleConn.SQLQuerySQLite.Active:=False; > // ^-- always make sure Active is false before setting SQL.Text > > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Error message if lazarus is closed
On Mon, 29 Sep 2014 17:41:12 +0200 John Landmesser wrote: > Hi Mattias: > > notice: > > just startet lazarus from Terminal and saw this line: > > "[TJITComponentList.DestroyJITComponent] ERROR destroying component > Error: In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is > missing > " > > that should give a important hint ( ... but not for me ) DestroyJITComponent has only caught the exception. It did not raise it. Please use gdb to find out what raised it. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Error message if lazarus is closed
Hi Mattias: notice: just startet lazarus from Terminal and saw this line: "[TJITComponentList.DestroyJITComponent] ERROR destroying component Error: In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing " that should give a important hint ( ... but not for me ) *** -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Error message if lazarus is closed
On Mon, 29 Sep 2014 17:28:25 +0300 Juha Manninen wrote: > On Mon, Sep 29, 2014 at 4:35 PM, John Landmesser > wrote: > > In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing > > In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing > > The *file://* part looks suspicious. Otherwise it is the default > Lazarus config directory in your Unix/Linux home directory. This is probably PrimaryConfigPath+''. Some code uses an empty filename. And worse: it does not catch the exception with a message. So this code has at least two bugs. Now we have to find out what code this is. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Error message if lazarus is closed
On Mon, Sep 29, 2014 at 4:35 PM, John Landmesser wrote: > In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing > In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing The *file://* part looks suspicious. Otherwise it is the default Lazarus config directory in your Unix/Linux home directory. > my lazarus: > Lazarus 1.3 r46345 FPC 2.6.2 x86_64-linux-gtk 2 > > Should i write a bug report? I don't have any problems with the latest trunk, including r46345. So, it is not a bug in Lazarus but some kind of local configuration problem. Try to clean your system. Remove the local config (after making a backup maybe), make sure there are no other Lazarus versions in search path, "make clean" etc. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Error message if lazarus is closed
notice: just startet lazarus from Terminal and saw this line: "[TJITComponentList.DestroyJITComponent] ERROR destroying component Error: In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing " that should give a important hint ( ... but not for me ) *** Am Montag, den 29.09.2014, 15:35 +0200 schrieb John Landmesser: > Hi list, > > > since some time i get an error message if i close lazarus: > > > content of the message dialog: > > > In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is > missing > In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is > missing > > > > But there is no .lazarus file, but the folder .lazarus?!! > > > The caption of the MessageBox is in german "Lesefehler" (reading > error). > > > So i think lazarus tries to read a file, that doesn't exist?! > > > my lazarus: > Lazarus 1.3 r46345 FPC 2.6.2 x86_64-linux-gtk 2 > > > > > > Should i write a bug report? > > > > > > > > -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Error message if lazarus is closed
On Mon, 29 Sep 2014 15:35:36 +0200 John Landmesser wrote: > Hi list, > > since some time i get an error message if i close lazarus: > > content of the message dialog: > > In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing > In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing Maybe you installed a package, that reads a config file ''. Start the IDE in gdb or the debugger and find the stacktrace of the error message. That should give you a hint what package it is. See here: http://wiki.freepascal.org/Creating_a_Backtrace_with_GDB#GDB_ready_to_accept_commands Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Error message if lazarus is closed
Hi list, since some time i get an error message if i close lazarus: content of the message dialog: In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing In 'file:///home/john1/.lazarus' (line 1 pos 1): Root element is missing But there is no .lazarus file, but the folder .lazarus?!! The caption of the MessageBox is in german "Lesefehler" (reading error). So i think lazarus tries to read a file, that doesn't exist?! my lazarus: Lazarus 1.3 r46345 FPC 2.6.2 x86_64-linux-gtk 2 Should i write a bug report? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus