Recent

Author Topic: Lazarus 1.6 - 1st Release Candidate  (Read 116772 times)

guest58172

  • Guest
Re: Lazarus 1.6 - 1st Release Candidate
« Reply #105 on: December 22, 2015, 04:57:20 pm »
By the way the bug was introduced by andrej the 12 of Nov:

https://github.com/alrieckert/lazarus/commit/ed747e55fb894735ca2e8c33731d580b7d5f7e69

I think that it can breaks the completion in basically almost all the code editors made with Laz.
The problem is that the role of TSynCustomHighlighter.GetIdentChars is not well defined, it's even not mandatory to use it when we lex in our custom HL class.


Ondrej Pokorny

  • Full Member
  • ***
  • Posts: 220
Re: Lazarus 1.6 - 1st Release Candidate
« Reply #106 on: December 23, 2015, 08:36:35 am »
By the way the bug was introduced by andrej the 12 of Nov:

https://github.com/alrieckert/lazarus/commit/ed747e55fb894735ca2e8c33731d580b7d5f7e69

I think that it can breaks the completion in basically almost all the code editors made with Laz.
The problem is that the role of TSynCustomHighlighter.GetIdentChars is not well defined, it's even not mandatory to use it when we lex in our custom HL class.

Yes, I did it and I changed it for some reason :)

I suggest to change the implementation of  TSynCustomHighlighter.GetIdentChars to

Code: Pascal  [Select][+][-]
  1. function TSynCustomHighlighter.GetIdentChars: TSynIdentChars;
  2. begin
  3.   Result := ['_', 'A'..'Z', 'a'..'z', '0'..'9'];
  4. end;
  5.  

Looks correct to me. Applied in r51001, will be merged to 1.6. Please open a bug report if you find similar issues the next time.
« Last Edit: December 23, 2015, 08:42:04 am by ondrejpokorny »

guest58172

  • Guest
Re: Lazarus 1.6 - 1st Release Candidate
« Reply #107 on: December 23, 2015, 09:19:57 am »
I did it just after my little investigation, see http://bugs.freepascal.org/view.php?id=29235. I needed to find fix directly, that's why I waited.

jma_sp

  • Full Member
  • ***
  • Posts: 150
  • El conocimiento si ocupa lugar.
Re: Lazarus 1.6 - 1st Release Candidate
« Reply #108 on: December 23, 2015, 11:53:44 am »
i found one error in the first run, after install in Windows XP SP3, look the attach image, i think that is an UTF8 problem because the ó char is not show in the message, the message say (i can upload images hir):

Unable to create file "C:\Documents and settings\Administrador\Configuracin local\Datos de programa\lazarus\enviromentsoptions.xml

note the spanish word "Configuracin" must be "Configuración"

Same for me. I will wait until next release candidate (thanks for fix it in (r50716/r50718)).

A mi me sucede lo mismo no establece la vocal acentuada en el instalador.
« Last Edit: December 23, 2015, 12:12:54 pm by jma_sp »
Devuan Beowulf 3.0( JWM/ROX/iDesk) - Puppy Linux,  Haiku OS,.ReactOS 0.4.xx  - FreeDos .

Ondrej Pokorny

  • Full Member
  • ***
  • Posts: 220
Re: Lazarus 1.6 - 1st Release Candidate
« Reply #109 on: December 23, 2015, 03:06:06 pm »
I did it just after my little investigation, see http://bugs.freepascal.org/view.php?id=29235. I needed to find fix directly, that's why I waited.

Sorry, I missed this one! Thanks!

bhinet

  • Newbie
  • Posts: 2
Re: Lazarus 1.6 - 1st Release Candidate
« Reply #110 on: December 25, 2015, 10:56:33 pm »
TDBGRID is not triggering all ONSELECTEDITOR-events

Got a problem with this new version. - I am using TDBGRID and its ONSELECTEDITOR-event to use TEDIT as a replacement for the grids cell-editor. - Its working fine with prior versions (The position of the editor-rect ist given from - DbGrid.SelectedFieldRect).

The NEW VERSION does NOT fire the ONSELECTEDITOR-event when entering a cell by KEYBOARD. But everything ist allright when entering a cell by MOUSE.
When a cell is entered by keyboard the onselecteditor event is ONLY triggered - after one has CHANGED the cell-text (thats not enough ;-)).

With Lazarus 1.4.4 its allright:
ONSELECTEDITOR is fired - EACH TIME when EDITORMODE is going to true (one is editing).

Where should the bug being reported ?

mantis.freepascal.org

I have the same problem with onSelectEditor. I send the problem to mantis.freepascal.org

The problem is in the file grids.pas, in line 7155 after MoveSelection, in previous version call always to SelectEditor. And New version of the file only call if option dgAlwaysShowEditor is set to true.

guest58172

  • Guest
Re: Lazarus 1.6 - 1st Release Candidate
« Reply #111 on: December 26, 2015, 11:33:10 am »
Did someone already reported that the CHM is full of error ?

typically:

Quote
Resource unavailable:ms-its:ref.chm::/ref/ref/ref/refse33.html#x69-910006.1.

Press OK to ignore and risk data corruption.
Press Cancel to kill the program.

guest58172

  • Guest
Re: Lazarus 1.6 - 1st Release Candidate
« Reply #112 on: December 26, 2015, 11:36:20 am »
Refactoring doesn't seem to work well with type helpers.

For example: hit F2 to rename an helper function. I Just encountered this when renaming the member of a helper for strings whose name was ambiguous. I think it happens when helpers are chained.

arneolav

  • Full Member
  • ***
  • Posts: 195
    • ElTranslador
Re: Lazarus 1.6 - 1st Release Candidate
« Reply #113 on: December 26, 2015, 07:05:45 pm »
TGroupBox,
in the IDE; On change Caption of a groupbox, the box is going blank, labels are hidden, Checkbox is not hidden:
Code: Pascal  [Select][+][-]
  1. unit Unit1;
  2. {$mode objfpc}{$H+}
  3. interface
  4. uses
  5.   Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls;
  6. type
  7.   { TForm1 }
  8.   TForm1 = class(TForm)
  9.     CheckBox1: TCheckBox;
  10.     GroupBox1: TGroupBox;
  11.     Label1: TLabel;
  12. .....
  13.  
Win XP, Win7, Win 10, Win 11, win64 , Lazarus 3.0RC1
Delphi/DevExpress

ftplazarus

  • Newbie
  • Posts: 4
Re: Lazarus 1.6 - 1st Release Candidate
« Reply #114 on: December 29, 2015, 03:45:40 pm »
With AnchorDocking, my bottom window is growing upper a few pixels each time Lazarus is launched.

It is a known issue.
  http://bugs.freepascal.org/view.php?id=18538

It's a very puzzling issue indeed.
May I propose as a workaround in ide\main.pp ln 1582, to add the line :

EnvironmentOptions.UseDesktop(EnvironmentOptions.ActiveDesktop);

This loads the active desktop again, and with the correct sizes this time !

Best regards.

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4468
  • I like bugs.
Re: Lazarus 1.6 - 1st Release Candidate
« Reply #115 on: December 29, 2015, 06:43:33 pm »
It's a very puzzling issue indeed.
May I propose as a workaround in ide\main.pp ln 1582, to add the line :

EnvironmentOptions.UseDesktop(EnvironmentOptions.ActiveDesktop);

This loads the active desktop again, and with the correct sizes this time !

Interesting! The line you added actually solves the issue.

Why does reading the active desktop in TMainIDE.StartIDE prevent the bug also with actions done while the IDE is running? I have no idea.
See r51081. It will be merged to 1.6 if no regressions are found.
See: http://bugs.freepascal.org/view.php?id=18538
and: http://bugs.freepascal.org/view.php?id=17908

Everybody please review also the other issues related to AnchorDocking. How many valid open issues we still have?
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

jarto

  • Full Member
  • ***
  • Posts: 106
Re: Lazarus 1.6 - 1st Release Candidate
« Reply #116 on: December 29, 2015, 07:01:26 pm »
This works in at least XE7 and XE8: CharInSet(Ch,['å','ä','ö'])

With FPC3, Lazarus trunk and even with proper unicode-mode:

Error: Incompatible types: got "WideChar" expected "Char".

Related bug reports:

http://mantis.freepascal.org/view.php?id=16656
http://mantis.freepascal.org/view.php?id=9922

FTurtle

  • Sr. Member
  • ****
  • Posts: 292
Re: Lazarus 1.6 - 1st Release Candidate
« Reply #117 on: December 29, 2015, 08:15:20 pm »
This works in at least XE7 and XE8: CharInSet(Ch,['å','ä','ö'])

With FPC3, Lazarus trunk and even with proper unicode-mode:

Error: Incompatible types: got "WideChar" expected "Char".

From here:
http://www.freepascal.org/future.var

Quote
Planned for later versions

    Linking with C++ code
    Higher level optimizer including liveliness analysis
    LLVM backend support
    Support for more architectures
    Corba support?
    Cleanup of unit loading system
    Better support for dynamic linking and packages
    Support for sets with more than 256 elements

P.S. By the way, I think it is good for pages like that to write last modification date.

ftplazarus

  • Newbie
  • Posts: 4
Re: Lazarus 1.6 - 1st Release Candidate
« Reply #118 on: December 29, 2015, 08:47:03 pm »

Why does reading the active desktop in TMainIDE.StartIDE prevent the bug also with actions done while the IDE is running? I have no idea.

I have the following supposition :
The construction of the active desktop is not complete when done by RestoreIDEWindows in TMainIDE.StartIDE.
It lacks the controls named AnchorDockSitex and AnchorDockSplitterx (as seen from debug report in lines TAnchorDockMaster.LoadLayoutFromConfig Map).
When constructing the desktop again with UseDesktop, these controls are there, and then the desktop works correctly later on.

But this remains to prove thoroughly...

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11452
  • FPC developer.
Re: Lazarus 1.6 - 1st Release Candidate
« Reply #119 on: December 29, 2015, 10:18:07 pm »
http://www.freepascal.org/future.var

(two modifications for spelling mistakes since 2007, not the best resource to predict the future)

 

TinyPortal © 2005-2018