Recent

Author Topic: Lazarus Release Candidate 2 of 1.8  (Read 74829 times)

jujibo

  • Full Member
  • ***
  • Posts: 114
Re: Lazarus Release Candidate 2 of 1.8
« Reply #60 on: June 14, 2017, 10:01:36 am »
Package sparta_dockedformeditor fails to compile because requires sparta_MDI and it has been removed.

branches/fixes_1_8
Rev: 55345

Note: Fixed in rev. 55350  Thanks.
« Last Edit: June 14, 2017, 11:35:02 am by jujibo »

jc99

  • Hero Member
  • *****
  • Posts: 553
    • My private Site
Re: Lazarus Release Candidate 2 of 1.8
« Reply #61 on: June 14, 2017, 06:27:28 pm »
Hi all,
first i want to thank the whole team for this excellent piece of software.

I really like to work with it.

Now I stumbled on something, maybe It's something old, maybe something went wrong with my version ... but I could verify it with the released version:
I use the x86_64 version on win10:
I write :
Code: [Select]
{$IfOpt H-}S{$Else}PChar(S){$EndIf} ... and I set the cursor on $else then I press [Ctrl]-[Space] for the List of options
then I use the cursor-keys to set the cursor on PChar and press [Space] i get:
Code: [Select]
{$IfOpt H-}S{$Else}ElseIf(S){$EndIf}I expected the list to close or to show options about PChar but not that. Is it something new or something old ? Is it a Bug ? Will it be fixed ?

« Last Edit: June 14, 2017, 06:30:42 pm by jc99 »
OS: Win XP x64, Win 7, Win 7 x64, Win 10, Win 10 x64, Suse Linux 13.2
Laz: 1.4 - 1.8.4, 2.0
https://github.com/joecare99/public
'~|    /''
,_|oe \_,are
If you want to do something for the environment: Twitter: #reduceCO2 or
https://www.betterplace.me/klimawandel-stoppen-co-ueber-preis-reduzieren

PeterX

  • Sr. Member
  • ****
  • Posts: 404
Re: Lazarus Release Candidate 2 of 1.8
« Reply #62 on: June 15, 2017, 12:06:01 am »
Whole project compiles even though source code is "blue".
There's one bracket too much in line 64, pos 1 ..

usually using latest Lazarus release version with Windows 10

PeterX

  • Sr. Member
  • ****
  • Posts: 404
Re: Lazarus Release Candidate 2 of 1.8
« Reply #63 on: June 15, 2017, 12:09:52 am »
Example :

Code: Pascal  [Select][+][-]
  1. unit Unit1;
  2.  
  3. {$mode objfpc}{$H+}
  4.  
  5. (***************************************************)
  6. (*    comments ..
  7.  
  8. (***************************************************)
  9.  
  10. interface
  11.  
  12. uses
  13.   Classes, SysUtils;
  14.  
  15. implementation
  16.  
  17. end.
  18.  
« Last Edit: June 15, 2017, 12:12:45 am by PeterX »
usually using latest Lazarus release version with Windows 10

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Lazarus Release Candidate 2 of 1.8
« Reply #64 on: June 15, 2017, 10:43:15 am »
The validity of your code depends on the "nested comments" FPC option.
IIRC both CodeTools and the editor highlighting are clever enough to respect that option.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

PeterX

  • Sr. Member
  • ****
  • Posts: 404
Re: Lazarus Release Candidate 2 of 1.8
« Reply #65 on: June 15, 2017, 11:40:10 am »
The validity of your code depends on the "nested comments" FPC option.
IIRC both CodeTools and the editor highlighting are clever enough to respect that option.

Hm. I installed Lazarus 1.8RC2, clean.
Nice to hear that the validity of code
depends on the "nested comments" FPC option.
But I didn't change any settings.  %)

Well, I thought, blue lines  are - always - just comments, not valid code ?
I never saw Lazarus accepting and compiling blue code lines ...  :o
usually using latest Lazarus release version with Windows 10

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Lazarus Release Candidate 2 of 1.8
« Reply #66 on: June 15, 2017, 12:33:54 pm »
Ok, there is no specific compiler option for nested comments but it is included in modes.
{$mode objfpc} supports nested comments while {$mode delphi} does not.
{$MODESWITCH NESTEDCOMMENTS} can be used in source code, too.

However there seems to be a compiler bug when '(*...*)' style comments are used. Nesting is not recognized then. To test, put an intentional syntax error into your unit's implementation section and compile.
With '{...}' style comments everything works.
Lazarus syntax highlighting works as intended with both styles.

Please report the FPC bug. I found only one existing open report about nested comments but it is not related.
  https://bugs.freepascal.org/view.php?id=4587
« Last Edit: June 15, 2017, 01:05:27 pm by JuhaManninen »
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Zoran

  • Hero Member
  • *****
  • Posts: 1829
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Lazarus Release Candidate 2 of 1.8
« Reply #67 on: June 15, 2017, 12:40:02 pm »
This really seems to be a compiler bug. This works, while it shouldn't with this switch turned on:

Code: Pascal  [Select][+][-]
  1. program Project1;
  2.  
  3. {$ModeSwitch nestedcomments+}
  4.  
  5. (*
  6. (***)
  7.  
  8. begin
  9.   writeln('see');
  10.   readln;
  11. end.
  12.  

But, if you change the middle asterisk in second commented line to anything else, it (correctly) does not compile:
Code: Pascal  [Select][+][-]
  1. program Project1;
  2.  
  3. {$ModeSwitch nestedcomments+}
  4.  
  5. (*
  6. (*a*)
  7.  
  8. begin
  9.   writeln('see');
  10.   readln;
  11. end.
  12.  

In these tests, modeswitch directive can be replaced with {$mode objfpc},  behaves same.
« Last Edit: June 15, 2017, 12:42:07 pm by Zoran »

Zoran

  • Hero Member
  • *****
  • Posts: 1829
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Lazarus Release Candidate 2 of 1.8
« Reply #68 on: June 15, 2017, 12:54:08 pm »

PeterX

  • Sr. Member
  • ****
  • Posts: 404
usually using latest Lazarus release version with Windows 10

Eugene Loza

  • Hero Member
  • *****
  • Posts: 663
    • My games in Pascal
Re: Lazarus Release Candidate 2 of 1.8
« Reply #70 on: June 16, 2017, 09:33:16 am »
As strange as it goes, when I copy something from Lazarus (1.8.0RC2 64 bit * Debian Jessie 64 bit) it adds a "sharp" symbol (#) in the end:
Code: Pascal  [Select][+][-]
  1. if not isLoaded then begin
  2.   WriteLnLog('DMusicTrack.Start','ERROR: Music is not loaded!');
  3.   exit;
  4. end;#
The symbol is not visible when pasted in Lazarus, but appears when pasting into other app.
My FOSS games in FreePascal&CastleGameEngine: https://decoherence.itch.io/ (Sources: https://gitlab.com/EugeneLoza)

PeterX

  • Sr. Member
  • ****
  • Posts: 404
Re: Lazarus Release Candidate 2 of 1.8
« Reply #71 on: June 18, 2017, 12:30:25 am »
I currently work on lots of dialogs in my large project,
[shift]-[F12] shows up the list.

This windows doesn't remember it's position
and called again, always overlays the sourcecode editor window.
I now always have to drag it to the right again ..

Is it possible anyhow to make it remember it's last used position ?
usually using latest Lazarus release version with Windows 10

balazsszekely

  • Guest
Re: Lazarus Release Candidate 2 of 1.8
« Reply #72 on: June 18, 2017, 08:05:22 am »
@PeterX
Quote
currently work on lots of dialogs in my large project,
[shift]-[F12] shows up the list.

This windows doesn't remember it's position
and called again, always overlays the sourcecode editor window.
I now always have to drag it to the right again ..

Is it possible anyhow to make it remember it's last used position ?

1. Open ViewUnit_Dlg.pp (IDE subfolder, Lazarus directory)
2. Change Position from poScreenCenter to poDesigned
3. Move the form to desired position
4. Rebuild the IDE(MainMenu-->Tools-->Build Lazarus with profile: Normal IDE

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Re: Lazarus Release Candidate 2 of 1.8
« Reply #73 on: June 18, 2017, 11:05:19 am »
I currently work on lots of dialogs in my large project, [shift]-[F12] shows up the list.

This windows doesn't remember it's position and called again, always overlays the sourcecode editor window.
I now always have to drag it to the right again ..
That is a bug. Most IDE windows have these calls:
Code: Pascal  [Select][+][-]
  1.   IDEDialogLayoutList.ApplyLayout(Self);
  2.   IDEDialogLayoutList.SaveLayout(Self);
when opening / closing the window. The purpose is to remember the window position and size.
I tested with many windows, the same bug is there.

It may have been there for some time. Did it work with Lazarus 2.6.4 1.6.4?
« Last Edit: June 18, 2017, 11:41:22 am by JuhaManninen »
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Lazarus Release Candidate 2 of 1.8
« Reply #74 on: June 18, 2017, 11:19:32 am »
It may have been there for some time. Did it work with Lazarus 2.6.4?
lazarus 1.4.4 exhibits the same behavior. Pressing shift+f12 opens the dialog in the center of the screen. moving it anywhere of center and closing and next time it will reopen on the center of the screen. Personally I prefer the current behavior, its a dialog and it should always open and close on the same spot regardless of user actions. It is not a floating toolbar that it should intergrade with the applications layout.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

 

TinyPortal © 2005-2018