Lazarus

Announcements => Lazarus => Topic started by: Martin_fr on August 13, 2017, 11:24:57 pm

Title: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Martin_fr on August 13, 2017, 11:24:57 pm
The Lazarus team is glad to announce the fourth release candidate of
Lazarus 1.8.

This release was built with FPC 3.0.4RC1, except for Mac OS, which
still uses 3.0.2.
The previous release Lazarus 1.6.4 was built with FPC 3.0.2.
https://bugs.freepascal.org/view.php?id=31629

Here is the list of fixes for Lazarus 1.8.x:
http://wiki.freepascal.org/Lazarus_1.8_fixes_branch

Here is the list of changes for Lazarus and Free Pascal:
http://wiki.lazarus.freepascal.org/Lazarus_1.8.0_release_notes
http://wiki.lazarus.freepascal.org/User_Changes_3.0.4

The release is available for download on SourceForge:
http://sourceforge.net/projects/lazarus/files/

Choose your CPU, OS, distro and then the "Lazarus 1.8 RC4" directory.

Checksums for the SourceForge files:
http://www.lazarus-ide.org/index.php?page=checksums#1_8_0RC4

Minimum requirements:

Windows:       
  2k, XP, Vista, 7, 8, 8.1 and 10, 32 or 64bit.

FreeBSD/Linux:
  gtk 2.8 for gtk2, qt4.5 for qt, qt5.6 for qt5, 32 or 64bit.

Mac OS X:
  10.5 to 10.12; Carbon (32bit), Cocoa (64bit, not stable), qt and qt5 (32 or 64bit).

The svn tag is
http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_8_0_RC4

For people who are blocked by SF, the Lazarus releases from SourceForge are mirrored at:
ftp://ftp.freepascal.org/pub/lazarus/releases/
and later at (after some time for synchronization)
http://mirrors.iwi.me/lazarus/

== Why should everybody (including you) test the release candidate? ==

In the past weeks the Lazarus team has stabilized the 1.8 fixes branch.
The resulting 1.8RC4 is now stable enough to be used by any one for
test purposes.

However many of the fixes and new features that where committed since the release of 1.6 required changes to the code of existing features too. While we have tested those ourself, there may still be problems that only occur with very specific configurations or one project in a million.

Yes, it may be that you are the only person with a project, that will not work in the new IDE. So if you do not test, we can not fix it.

Please do not wait for the final release, in order to test. It may be too late. Once the release is out we will have to be more selective about which fixes can be merged for further 1.8.x releases. So it may be, that we can not merge the fix you require. And then you will miss out on all the new features.

== How to test ==

Download and install the 1.8 RC4.
- On Windows you can install as a 2ndary install, that will not affect your current install:
  http://wiki.lazarus.freepascal.org/Multiple_Lazarus#Installation_of_multiple_Lazarus
- On other platforms, if you install to a new location you need to use --primary-config-path

In either case you should make backups. (including your primary config)

Open your project in the current Lazarus (1.6.x), and use "Publish Project" from the project menu. This creates a clean copy of your project.

You can then open that copy in the RC4. Please test:
- If you can edit forms in the designer
   - rename components / change properties in Object inspector / Add new events
   - Add components to form / Move components on form
   - Frames, if you use them
- If you can navigate the source code (e.g. jump to implementation)
- Auto completion in source code
- Compile, debug and run
- Anything else you use in your daily work

Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Martin_fr on August 13, 2017, 11:26:10 pm
Please note that this includes the release candidate for the upcoming FPC 3.0.4.

So this really is your chance to test it all. Please do.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Phil on August 13, 2017, 11:32:31 pm
Mac OS X:
  10.5 to 10.12; Carbon (32bit), Cocoa (64bit, not stable), qt and qt5 (32 or 64bit).

That's a stretch.

On Mac, Qt 4 libraries are only available as 64-bit, but the Pascal interface library is only 32-bit (and fails if you try to compile it from source for 64-bit in my testing).

Qt 5 requires building of the interface library and this requires the full Qt (qmake, etc.), not just the libraries.

Cautions are in order.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: dicepd on August 14, 2017, 03:01:37 am
Installing from targz packages in a clean VM (devuan jessie x86-64) fpc installs fine. Added path to fpc bin dir and fpc responds. However when trying make bigide in lazarus dir I get the following error:
Code: [Select]
Free Pascal Compiler version 3.0.4rc1 [2017/06/29] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling lazres.pp
Linking ./lazres
/usr/bin/ld: warning: ./link.res contains output sections; did you forget -T?
/usr/bin/ld: /home/peter/fpc-3.0.4/lib/fpc/3.0.4/units/x86_64-linux/rtl/cprt0.o: unrecognized relocation (0x2a) in section `.text'
/usr/bin/ld: final link failed: Bad value
Error: Error while linking

UPDATE:
I found out what the issue is, basically the zipped/tgz files have been built with a later ld which is incompatible with ld v2.5 hence the 'unrecognized relocation (0x2a) in section'. So I have had to download an earlier fpc built with an earlier version of gnu ld and compile fpc from source.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Groffy on August 14, 2017, 09:05:04 am
Impressive long list of fixes. When taking Lazarus RC4 tag out of the repository, is there somewhere a fpc 3.0.4 for Win32/64 installer available?

Best regards
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: JuhaManninen on August 14, 2017, 10:30:12 am
Impressive long list of fixes. When taking Lazarus RC4 tag out of the repository, is there somewhere a fpc 3.0.4 for Win32/64 installer available?
FPC 3.0.4 RC1:
 http://forum.lazarus.freepascal.org/index.php/topic,37609.0.html
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Groffy on August 14, 2017, 12:00:10 pm
FPC 3.0.4 RC1:
 http://forum.lazarus.freepascal.org/index.php/topic,37609.0.html

ftp://ftp.freepascal.org/pub/fpc/beta/3.0.4-rc1/

Got it - thank you

Best regards
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: carl_caulkett on August 14, 2017, 12:15:59 pm
Will the macOS version eventually include FPC 3.0.4?
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Thaddy on August 14, 2017, 12:25:31 pm
Probably: yes. You can also try to keep up with FPC trunk...
In this case a stable variant is chosen, which is a good thing, not a bad thing.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: BSaidus on August 14, 2017, 12:45:25 pm
OOOh!! problem !
Here is a screenshoot
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Martin_fr on August 14, 2017, 02:05:41 pm
Impressive long list of fixes. When taking Lazarus RC4 tag out of the repository, is there somewhere a fpc 3.0.4 for Win32/64 installer available?

The Lazarus RC4 installer for win contains FPC 3.0.4rc1
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Groffy on August 14, 2017, 02:17:42 pm
The Lazarus RC4 installer for win contains FPC 3.0.4rc1

Thats, right but I have at least two or more Lazarus versions parallel installed (trunk, RCs, latest released) but only one installation contains the fpc compiler.

With best regards
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Bart on August 14, 2017, 03:19:12 pm
AFAIK every Lazarus installer for Windows installs fpc as well.

You can look in the the fpc 3.0.4RC1 released topic (http://forum.lazarus.freepascal.org/index.php/topic,37609.0.html) for download links.

Bart
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Thaddy on August 14, 2017, 03:23:01 pm
AFAIK every Lazarus installer for Windows installs fpc as well.

You can look in the the fpc 3.0.4RC1 released topic (http://forum.lazarus.freepascal.org/index.php/topic,37609.0.html) for download links.

Bart
But Bart, it is the underestimated art of UNinstalling that is always the problem...The installer should uninstall (both previous and itself) . It doesn't..Must I get grumpy? Ask!
Then there's even the dark art of removing paths from the environment or making sure the path is in the right order...
Then there is the black art of removing any traces of a previous install, including any registry settings or /etc/fpc.cfg and the likes.... (Oh well, that's not just Lazarus)

Lazarus simply installs... and does not take at any point (well, actually the least important one is OK) into account any of the red devils above. >:D
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Ondrej Pokorny on August 14, 2017, 03:56:17 pm
Thaddy, feel free to improve it.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: tianya on August 14, 2017, 04:50:56 pm
good job,wish lazarus to be better
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Martin_fr on August 14, 2017, 05:38:02 pm
it is the underestimated art of UNinstalling that is always the problem...The installer should uninstall (both previous and itself) . It doesn't..Must I get grumpy? Ask!
....

Well it is not all that simple. Based on windows (some may be valid for other OS...)

The ONLY registry entries are:
- pointer to uninstaller / entry in installed progs list
- file associations

Not sure, but afaik the inno un-installer removes those?

If you install into an empty folder, and then run the uninstaller afaik every file in that folder is removed.

app/user settings are usually not uninstalled (afaik that is a convention?). But the installer offers to remove them (if you can create a patch for the uninstaller, and add an option ... feel free)

----
I am not sure how the uninstaller behaves if you install a new version into an existing folder (excluding any files mentioned in the next section!)

----
In the following "ppu" is used as example for generated files. (*.ppu / *.o  / resources / ...)

On Linux those are in ~/.lazarus / so should be easier to remove. on win this may depend on user permissions to install folder...

----
The problem starts, when the IDE (by compiling) or the user (by editing/adding files in the install dir) creates file that the installer did not install (new ppu of packages).

Those  files were not installed. So they do not get uninstalled.

That is partly correct. If you created a new package of your own, and saved it in the install dir, (or if you moved your holiday pics into the install dir (by accident)) then those must not be uninstalled.
 
But if compiling an optional package (eg Cody) added ppu files, it would be nice, if those were uninstalled.

But to do this the uninstaller needs a list of all files that can be created that way, and that should be removed.
And that list should not be static. Since it can change from version to version.

So what would be needed is a script/app that generates this list, while the installer is build. (afaik inno db has support for adding such a list, once it exists)

----
And actually there should be 2 such lists.
1) for the uninstaller as above
2) for the installer.

As for (2).
Sometimes a file gets moved or removed.
If you install a new version of Lazarus the ppu of files that are no longer in place, should be removed.
This would avoid conflicts when updating without uninstalling.

So this list, contains the diff of all the ppu that the current version does NOT have/create, but that existed in the previous version(s) (eg any version since last/previous n.m.0 release)

------
patches welcome
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: mogenslarsen on August 14, 2017, 07:32:01 pm
RC4 have fixed only a part of the bugs reported in https://bugs.freepascal.org/view.php?id=32097 ("Weird-looking IDE (esp. Object Inspector) and tiny icons on high-DPI displays with scaling=300%").
Need I report that as a new bugreport? Or should I somewhat revive the old one (which is marked as resolved)?
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: BeniBela on August 14, 2017, 07:54:59 pm
I hope the Unity tray icon (https://bugs.freepascal.org/view.php?id=32258) gets fixed in the next one
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Ondrej Pokorny on August 14, 2017, 08:13:23 pm
RC4 have fixed only a part of the bugs reported in https://bugs.freepascal.org/view.php?id=32097 ("Weird-looking IDE (esp. Object Inspector) and tiny icons on high-DPI displays with scaling=300%").
Need I report that as a new bugreport? Or should I somewhat revive the old one (which is marked as resolved)?

Please report separately, thanks.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: JuhaManninen on August 14, 2017, 11:33:21 pm
I hope the Unity tray icon (https://bugs.freepascal.org/view.php?id=32258) gets fixed in the next one
You write in the report: "I cannot reproduce it,..."
Sorry but how do you expect others to reproduce the problem if you cannot do it even yourself?
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: BeniBela on August 14, 2017, 11:46:42 pm
I hope the Unity tray icon (https://bugs.freepascal.org/view.php?id=32258) gets fixed in the next one
You write in the report: "I cannot reproduce it,..."
Sorry but how do you expect others to reproduce the problem if you cannot do it even yourself?

They do not need to reproduce it, just add a fifth parameter (nil)
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: jwdietrich on August 15, 2017, 08:22:07 am
The Mac version is bundled with FPC 3.0.2 rather than with version 3.0.4. Is that intended?
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Bart on August 15, 2017, 02:18:05 pm
There is no 3.0.4RC1 for MacOSX.

Bart
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: mobilevil on August 16, 2017, 09:22:59 am
edit: fixed. nevermind.

I thought 1.8 RC4 was broken but I was wrong. with 1.8 RC4, the FPC version is updated to 3.0.4 RC1, in which the fp-web package is updated to support routing.
to enable legacy routing to fix my stupid hello world FCGI applicaiton,  add this to the main program.

Application.LegacyRouting:=true;


I am pretty new here, I am not sure how should I create a bug report so let me write things down here first. It would be great if you guys can point me to the right driection like, is it a freepascal bug? or is it a lazarus bug? Pointer to run time library setup would also be great. Maybe I can try to fix this bug myself.

Seems fpWEB's CGI and Fast CGI are broken in RC4, but they are fine in RC3. Just simple hello world CGIs. Apache give server errors.

edit:tested with RC4 clean install in VMWARE

windows 7 pro 64 bit
Lazarus 1.80 RC4 64bit
apache 2.4 64 bit, httpd-2.4.27-x64-vc14.zip and
mod_fcgid-2.3.9a-2.4.x-x64-vc14.zip from https://www.apachehaus.net/

I have weblaz, lazwebextra installed(plus zeos, lazreport).
create a new CGI project, add a action, set it to default, and add a onrequest handler.
begin
  AResponse.Content:='hello cgi';
  Handled:=true
end;
compile with RC3, it runs. all good.
recompile with RC4 in a VM, it gives

The application encountered the following error:
Error: Not found
Stack trace:
$00000001000381D1
$0000000100037AC4
$000000010003824D
$000000010002F9A8
$000000010003029F
$000000010002F31F
$000000010003063F
$00000001000353B5
$00000001000016C2 line 11 of hellocgi.lpr
$00000001000016D6
$000000010000F643
$0000000100010141
$00000000775259BD
$000000007765A2E1

similarly, with a fast cgi app running in lazarus debug mode, it gives exception class 'EHTTPRoute' with message:Not found at address 10003B7E1. Seems debugger is not able to locate the source.

and btw, I have been trying to test with apache module, but so far I am only able to get things working with apache 2.2 32bit.

my apache's conf is pretty clean except i setup my CGI path and FastCGI module

ScriptAlias /cgi-bin/ "C:/Checkout/testcgi/lib/x86_64-win64/"

LoadModule fastcgi_module "modules/mod_fastcgi.so"
<IfModule mod_fastcgi.c>
  <Directory "C:/Checkout/testfcgi/lib/x86_64-win64">
    #Order allow,deny
    #Allow from all
   Require all granted
  </Directory>
  FastCgiExternalServer "C:/Checkout/testfcgi/lib/x86_64-win64/testfcgi.exe" -host 127.0.0.1:9999 -idle-timeout 30 -flush
  #FastCgiServer "C:/Checkout/testfcgi/lib/x86_64-win64/testfcgi.exe" -idle-timeout 30
  ScriptAlias /testfcgi "C:/Checkout/testfcgi/lib/x86_64-win64/testfcgi.exe"
</IfModule>


Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: BeniBela on August 18, 2017, 05:18:35 pm
Something is wrong with the source editor drawing on gtk2/opensuse.

Sometimes I do something, but it is not displayed.

I have selected a block of text, deleted it, but it was still shown, till I scrolled somewhere else.

I have pressed end to jump to the end of the line, but nothing happened. Only after a pressing another key it showed, it actually had jumped there.

Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Martin_fr on August 18, 2017, 06:01:28 pm
Did it work well in RC3?

If you start the IDE from a console (shell/terminal) are there any errors printed out?

In case: Did you recompile the IDE, what setting (specially -O# ?) did you use?
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: BeniBela on August 18, 2017, 07:23:28 pm
Did it work well in RC3?

I do not know, I have a new computer :/

It worked with RC2 and xfce on the old computer



If you start the IDE from a console (shell/terminal) are there any errors printed out?

Code: [Select]
NOTE: Window with stalled focus found!, faking focus-out event

[USER] Invalid borders specified for theme pixmap:
        /usr/share/themes/Breeze/gtk-2.0/../assets/line-h.png,
borders don't fit within the image

TSourceEditCompletion.ccExecute nil


does not seem relevant


In case: Did you recompile the IDE, what setting (specially -O# ?) did you use?

I just used " make ". no -O it seems

and fpc 3.0.0



edit: I managed to get a screenshot: http://i.imgur.com/CVozNMv.png

Like a 50% chance to have it happen when pressing ctrl+alt+up in that function.

(quite complicated making screenshots. everything is always broken on my systems.  default print shortcut did not work. and additionally i had reassembled my keyboard and the print screen key ended up at the wrong place )
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Martin_fr on August 18, 2017, 09:41:20 pm
With or without anchordocking?

And if with anchordocking, can you test without?

High DPI?

-------
Very unlikely to help, but you can also try to compile with
-dVerboseSynEditInvalidate

Then in the output look for 
Code: Pascal  [Select][+][-]
  1. CustomSynEdit.InvalidateTextLines .... FirstLine=11 LastLine=12 rect=....
  2.  

Where 11 would be the line in the window (0 or 1 based).

This is not the textline. the window always starts with line 1 on top (or 0)....

Then when you edit, the relevant lines should get an invalidate.
The rect should give the area in pixels.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: nurettin on August 19, 2017, 01:54:02 pm
I tried lazarus 18 rc4 on linux mint using the amd64 deb files provided on sourceforge, the property editor doesn't work. I can't set any properties and the existing properties are not shown.

This happens with and without anchordockingdsgn Everything worked well in rc3,
https://image.ibb.co/neXkbk/Screenshot_from_2017_08_19_14_57_11.png

Edit: rebuilt 18rc4 from tar.gz sources using fpc 3.03, everything works fine. deb is somehow broken.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: JuhaManninen on August 19, 2017, 02:03:06 pm
Something is wrong with the source editor drawing on gtk2/opensuse.
May be a GTK2 version dependent problem in Suse. It uses the QT based KDE. I guess your editor starts to work when you compile the IDE for QT.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: BeniBela on August 19, 2017, 08:15:32 pm
Very unlikely to help, but you can also try to compile with
-dVerboseSynEditInvalidate

Then in the output look for 
Code: Pascal  [Select][+][-]
  1. CustomSynEdit.InvalidateTextLines .... FirstLine=11 LastLine=12 rect=....
  2.  

Where 11 would be the line in the window (0 or 1 based).

This is not the textline. the window always starts with line 1 on top (or 0)....

Then when you edit, the relevant lines should get an invalidate.
The rect should give the area in pixels.

That gave this

Code: [Select]
TCustomSynEdit.InvalidateTextLines SynEdit10:TIDESynEditor FirstLine=663 LastLine=663
  TCustomSynEdit.InvalidateTextLines TLazSynTextArea FirstLine=662 LastLine=662 rect=l=65,t=1083,r=1102,b=666
  TCustomSynEdit.InvalidateTextLines TLazSynTextArea FirstLine=662 LastLine=662 rect=l=65,t=0,r=1102,b=0
TCustomSynEdit.InvalidateTextLines SynEdit10:TIDESynEditor
TCustomSynEdit.InvalidateTextLines SynEdit10:TIDESynEditor FirstLine=630 LastLine=630
  TCustomSynEdit.InvalidateTextLines TLazSynTextArea FirstLine=629 LastLine=629 rect=l=65,t=456,r=1102,b=475
  TCustomSynEdit.InvalidateTextLines TLazSynTextArea FirstLine=629 LastLine=629 rect=l=65,t=0,r=1102,b=0
TCustomSynEdit.InvalidateTextLines SynEdit10:TIDESynEditor
TCustomSynEdit.InvalidateGutterLines SynEdit8:TIDESynEditor FirstLine=15 LastLine=15
  TCustomSynEdit.InvalidateGutterLines TLazSynGutterArea FirstLine=14 LastLine=14 rect=l=0,t=266,r=57,b=285
  TCustomSynEdit.InvalidateGutterLines TLazSynGutterArea FirstLine=14 LastLine=14 rect=l=1122,t=266,r=1135,b=285
  TCustomSynEdit.InvalidateGutterLines TSourceLazSynSurfaceGutter FirstLine=14 LastLine=14 rect=l=0,t=0,r=57,b=0
  TCustomSynEdit.InvalidateGutterLines TSourceLazSynSurfaceGutter FirstLine=14 LastLine=14 rect=l=1122,t=0,r=1135,b=0
TCustomSynEdit.InvalidateGutterLines SynEdit8:TIDESynEditor
TCustomSynEdit.InvalidateGutterLines SynEdit8:TIDESynEditor FirstLine=16 LastLine=16
  TCustomSynEdit.InvalidateGutterLines TLazSynGutterArea FirstLine=15 LastLine=15 rect=l=0,t=285,r=57,b=304
  TCustomSynEdit.InvalidateGutterLines TLazSynGutterArea FirstLine=15 LastLine=15 rect=l=1122,t=285,r=1135,b=304
  TCustomSynEdit.InvalidateGutterLines TSourceLazSynSurfaceGutter FirstLine=15 LastLine=15 rect=l=0,t=0,r=57,b=0
  TCustomSynEdit.InvalidateGutterLines TSourceLazSynSurfaceGutter FirstLine=15 LastLine=15 rect=l=1122,t=0,r=1135,b=0
TCustomSynEdit.InvalidateGutterLines SynEdit8:TIDESynEditor
TCustomSynEdit.InvalidateTextLines SynEdit8:TIDESynEditor FirstLine=15 LastLine=15
  TCustomSynEdit.InvalidateTextLines TLazSynTextArea FirstLine=14 LastLine=14 rect=l=57,t=266,r=1122,b=285
  TCustomSynEdit.InvalidateTextLines TLazSynTextArea FirstLine=14 LastLine=14 rect=l=57,t=0,r=1122,b=0
TCustomSynEdit.InvalidateTextLines SynEdit8:TIDESynEditor

and when I copied the lines from the terminal the X server crashed, but luckily I could save the clipboard from the tty. There was a short window between pressing ctrl+alt+backspace, where the clipboard became accessible again to xclip and the X server had not yet restarted
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Martin_fr on August 19, 2017, 09:07:49 pm
I am assuming that the lines match the text you modified.

So then this problem must be in the lcl widgetset code for gtk2.

It must be something severe, if it upsets your x server enough to crash it.

---------------
One thing you can still try:
components\synedit\syneditpointclasses.pas
line 2884...
Code: Pascal  [Select][+][-]
  1. procedure TSynEditScreenCaretPainterInternal.Init;
  2. begin
  3.   {$IFDEF LCLCarbon}
  4.     FForcePaintEvents := True;
  5. ...
After the whole ifdef, set FForcePaintEvents := True;
So it is always true.

Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: dicepd on August 20, 2017, 09:57:14 am
Trying to get back to normal programming with the new versions I notice that if errors occur which are caught in  LCL files on a break it does not reuse a copy of the file already opened but opens a new editor instance of the file with the postfix (2) against the name.

Quickly leads to too many editor windows when back tracing bugs.

Peter
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: dicepd on August 20, 2017, 11:32:53 am
Another project moved over to latest with only one change which is of note.

A RTTI TTIPropertyGrid which previously did not care about the current TIObject being freed from underneath it, now tries to access the dangling pointer in a paint event.

An easy one to place a guard against but a change in behaviour non the less.

Peter


Update/
Thinking about this some more this is probably a bug. RTTI should be following the Observer design pattern and as such should not participate in the lifetime of the object being observed. Therefore it is perfectly valid for an object to be freed and the Observer should be robust enough to not care.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: JZS on August 20, 2017, 11:44:37 am
Thank you...
It's really nice to have double version advancing at once.

I just discovered a nasty bug in the 1.8 RC4 and it happens in 1.9 as well.

When you drop FBAdmin on a new project (just empty form) you start having problems when you run and close. Also you get errors when you try to delete that component.

Shall I file a bug?

Win7 64, Laz 1.8rc4, Laz 1.9
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: JuhaManninen on August 20, 2017, 12:01:50 pm
Trying to get back to normal programming with the new versions I notice that if errors occur which are caught in  LCL files on a break it does not reuse a copy of the file already opened but opens a new editor instance of the file with the postfix (2) against the name.
Is it about symlinked files? Is it a regression?

When you drop FBAdmin on a new project (just empty form) you start having problems when you run and close. Also you get errors when you try to delete that component.
Shall I file a bug?
Yes if it can be reproduced. Is it a regression?
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: RAW on August 20, 2017, 11:14:11 pm
Hi, I know this is not a RC4 problem... but maybe it's easy to solve...  :)
If I use a bold font for the dialogfields under WINDOWS then LAZARUS changes the font inside Options, Object Inspector and Messages window. That's very nice, but it looks not very nice.

I know most people don't use the CLASSIC THEME and even if they use it, they probably don't change the standard font, so I guess nobody really cares about this.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: EganSolo on August 24, 2017, 08:50:28 am
The Lazarus team is glad to announce the fourth release candidate of
Lazarus 1.8.

So far so good. I've been using it extensively and have not noticed any issues. Great Icon refresh.

Two outstanding bugs from 1.6.x: (a) projectgroup panel is still forgetting to load the last project group when you open Laz and (b): Laz crashes whenever I switch from two monitors back down to one. This happens when I'm on my docked laptop using two monitors and I undock the laptop. Laz invariably crashes.

Aside from these two issues, the environment feel rock solid.

Thanks for another great release.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: JuhaManninen on August 24, 2017, 11:16:51 am
Two outstanding bugs from 1.6.x: (a) projectgroup panel is still forgetting to load the last project group when you open Laz
Is this reported?
Quote
and (b): Laz crashes whenever I switch from two monitors back down to one. This happens when I'm on my docked laptop using two monitors and I undock the laptop. Laz invariably crashes.
Can you get a debugger backtrace?
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Ondrej Pokorny on August 24, 2017, 10:06:54 pm
Quote
Quote
and (b): Laz crashes whenever I switch from two monitors back down to one. This happens when I'm on my docked laptop using two monitors and I undock the laptop. Laz invariably crashes.
Can you get a debugger backtrace?

+ what OS/WS? AFAIK somebody fixed this on Windows: https://mantis.freepascal.org/view.php?id=30763 (the fix is included in 1.8 ). I have no problem undocking my laptop from 2-external-monitor setup (on Windows).
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: EganSolo on August 25, 2017, 03:30:51 am
With regards to the undocking bug: It's windows 10 32b running in a VMWare VM on a Win 7 host. I'll report back tomorrow once I  dock it and use both monitors then undock it.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: BeniBela on August 29, 2017, 01:02:02 am

One thing you can still try:
components\synedit\syneditpointclasses.pas
line 2884...
Code: Pascal  [Select][+][-]
  1. procedure TSynEditScreenCaretPainterInternal.Init;
  2. begin
  3.   {$IFDEF LCLCarbon}
  4.     FForcePaintEvents := True;
  5. ...
After the whole ifdef, set FForcePaintEvents := True;
So it is always true.


It has not happened, since I put that there, but I have not used Lazarus much in the time


It must be something severe, if it upsets your x server enough to crash it.


That must have been just a coincidence. Atm my X server is crashing twice a day. I think that just happens on kde when I press alt+tab too quickly (back and forth to the terminal to copy the output)



Trying to get back to normal programming with the new versions I notice that if errors occur which are caught in  LCL files on a break it does not reuse a copy of the file already opened but opens a new editor instance of the file with the postfix (2) against the name.
Is it about symlinked files?


That is what I said

I know most people don't use the CLASSIC THEME and even if they use it, they probably don't change the standard font, so I guess nobody really cares about this.

The 90s are calling  :o
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Martin_fr on August 29, 2017, 03:01:03 am
Code: Pascal  [Select][+][-]
  1.     FForcePaintEvents := True;

It has not happened, since I put that there, but I have not used Lazarus much in the time

Ok, so that needs to be added for gtk2 then. (will do next week)
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Devstructor on August 30, 2017, 07:12:11 pm
I really like the new release candidate, but I found a problem  :)

After compiling a weblaz HTTP server application which was created with Lazarus 1.6.4 the project does not work anymore.

The routing seems to not work correctly. The HTTP server just responses
:Module Error The application encountered the following error: Error: Not found

It seems like the routing is not working, I cannot reach any of the existing OnRequest Methods of the TFPWebModule.

The bug is really easy to produce. Just install weblaz (shipped with Lazarus 1.8RC4), and create a new HTTP server application. A simple test does not even require the use of actions, you can just create the following OnRequest method:
Code: Pascal  [Select][+][-]
  1. procedure TFPWebModule1.DataModuleRequest(Sender: TObject; ARequest: TRequest;
  2.   AResponse: TResponse; Var Handled: Boolean);
  3. begin
  4.   AResponse.Content:='This test is working, great :)';
  5.   AResponse.Code:=200;
  6.   Handled:=True;
  7. end;  
  8.  

Thank you for your work  :)
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Michl on August 31, 2017, 10:27:25 pm
I know most people don't use the CLASSIC THEME and even if they use it, they probably don't change the standard font, so I guess nobody really cares about this.

The 90s are calling  :o
Hey and surely this would be hip in some near future :D
(Btw. I also work on such a system, I don't like bling-bling on my desktop).

Whatever.
@RAW: The reported bug is fixed in Lazarus Trunk and has shown some more font issues on Windows 7 / 10 / themed / not themed / High-DPI scaled / not High-DPI scaled, that should be fixed now. So thank you for reporting it!
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: RAW on August 31, 2017, 11:22:17 pm
Quote
@RAW: The reported bug is fixed in Lazarus Trunk and has shown some more font issues on Windows 7 / 10 / themed / not themed / High-DPI scaled / not High-DPI scaled, that should be fixed now. So thank you for reporting it!
THANK YOU very much for fixing it !!!  :)

Right now I'm playing around with FPCupDeluxe to get a nice install so that I can test it... Never used this program... normally I don't allow any internet connection from the admin account, but I think I cannot install on a user account... let's see...

FPCupDeluxe looks easy to handle and has some nice options... a little bit more and I'm getting excited...  :D
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: BeniBela on September 01, 2017, 05:39:03 pm
Code: Pascal  [Select][+][-]
  1.     FForcePaintEvents := True;

It has not happened, since I put that there, but I have not used Lazarus much in the time

Ok, so that needs to be added for gtk2 then. (will do next week)

Now something like that has happened with FForcePaintEvents := true.

It had not redrawn when scrolling, and when I pressed ctrl, it only redraw the individual line below the cursor
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: JuhaManninen on September 01, 2017, 06:30:33 pm
Right now I'm playing around with FPCupDeluxe to get a nice install so that I can test it...
Do you just need Lazarus trunk? You don't need FPCupDeluxe for that. FPC is a little more difficult and for it I also recommend FPCupDeluxe.
For Lazarus just do:
 $ svn co https://svn.freepascal.org/svn/lazarus/trunk lazarus
 $ cd lazarus
 $ make
 $ ./lazarus
or similar things with TortoiseSVN etc.

Quote
Never used this program... normally I don't allow any internet connection from the admin account, but I think I cannot install on a user account... let's see...
Yes you can install both FPC and Lazarus using FPCupDeluxe with user account.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: RAW on September 02, 2017, 01:06:59 am
Quote
Yes you can install both FPC and Lazarus using FPCupDeluxe with user account.
Yes.. tried it ... that's nice. (unfortunately I get too many errors.. right now I don't have time to go through it step by step..)

Quote
...or similar things with TortoiseSVN etc.
I've got the r55758 files dowloaded with TortoiseSVN. I know it's only the first step but better than nothing... was very easy...

I don't understand MAKE // tried "make" and "make bigide" and "make clean bigide"... I get 1600+ error messages... (syntax error)
Tried make /? and played a bit around, but I don't get it... Maybe I need to setup FPC in any way... I guess I have a little bit more time on sunday.. maybe I can figure it out then... thanks so far...
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: JuhaManninen on September 02, 2017, 10:28:34 am
I don't understand MAKE // tried "make" and "make bigide" and "make clean bigide"... I get 1600+ error messages... (syntax error)
Maybe you have Delphi installed. It comes with an incompatible "make" binary. There is a warning about it here:
 http://wiki.freepascal.org/Getting_Lazarus#Using_the_command-line
Just remove it and "make" starts to work, assuming you have FPC installed.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Thaddy on September 02, 2017, 11:28:46 am
Don't remove it. Use full path for fpc make. The Delphi make is simply necessary in some Delphi scenarios, like compiling their system.pas.
But it is correct that he has Delphi's make in a path before the gnu make. So it gets called first.

I use it like this:
Code: [Select]
e:\fpc311\bin\x86_64-win64\make bigide
An alternative is starting t from a simple batch file, using push/pop environment semantics.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: JuhaManninen on September 02, 2017, 02:20:49 pm
The Delphi make is simply necessary in some Delphi scenarios, like compiling their system.pas.
Why would somebody compile Delphi's system.pas? :)
Ok, renaming the binary is also one option. Then it can be renamed back in future if really needed.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Thaddy on September 02, 2017, 06:33:19 pm
Why would somebody compile Delphi's system.pas? :)
Oh, multiple reasons:
- Because I want to fix bugs..... (many)
- Because it is over-bloated in many cases: see KOL (or mOrMot) which has optional system replacements.
- Because I want to compile out VCL references when I do not need it
- Because I want to add/change copyright (legal: I own the sources and I compile it under GPL)
- Because I want to compile with the GPL flag (yes, there is one!) ON instead of off.
- Because I want to add a fingerprint..

Many more.....
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: benohb on September 03, 2017, 06:06:58 am


LINUX 64 GTK2
I have many notes

1)
At design time .. when you add a TStatusBar to window and try to resize the window (Right - down).the mouse cursor change to crSizeSW before reaching the edge of the window -This is because TStatusBar change mouse cursor  .

Another weird  thing. If you start drag above TStatusBar (Right - down) . the selection rectangle appear and and does not disappear even release  the mouse button
This happens in many versions

2)
TControlBar is  broking ...try selecting or resizing  .. webkit component   are broken too

svn 55764 has  same problems

Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: RAW on September 03, 2017, 08:03:58 am
Quote
Don't remove it. Use full path for fpc make. The Delphi make is simply necessary in some Delphi scenarios, like compiling their system.pas.
But it is correct that he has Delphi's make in a path before the gnu make. So it gets called first.

I use it like this:
Code: [Select]

 e:\fpc311\bin\x86_64-win64\make bigide
@Thaddy: Thank you very much... works fine... should have tried this right away...  :)

@Juha: Thank you very much, I should have thought about Delphi-stuff...

@Michl: Looks very good so far... Thank you very much again...

I've never used a trunk version so far... very easy this way...
Now I need to check the way to setup everything... normally I always use the secondary installation, I like that very much ... probably not recommended but I like C:\LAZARUS and C:\LAZARUS\CFG\... This way I have only one CFG dir for admin and user account... that's nice...
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: JuhaManninen on September 03, 2017, 10:56:14 am
@benohb, are some of the problems you mentioned regressions? Did they work in 1.6.4?
Are they reported?
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: benohb on September 04, 2017, 12:23:27 am
@JuhaManninen  ..yes . some of the problems

Ubuntu 16.04.2 LTS
FPC 3.0.0
lazarus 1.6+dfsg-1   
x86_64-linux-gtk 2

Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: BIT on September 06, 2017, 04:45:15 pm
В Windows если свернуть Lazarus и развернуть  пропадает окно Form остальные окна видно! Приходится заходить проект - формы и выбирать форму ((
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: ASerge on September 06, 2017, 05:39:44 pm
Russian text...
This is an international site, please write in English, for example, use online translators.
This problem has already been reported: https://bugs.freepascal.org/view.php?id=32266 (https://bugs.freepascal.org/view.php?id=32266).
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: BIT on September 06, 2017, 06:10:14 pm
Russian text...
This is an international site, please write in English, for example, use online translators.
This problem has already been reported: https://bugs.freepascal.org/view.php?id=32266 (https://bugs.freepascal.org/view.php?id=32266).
thanks ! But the translator can't convey my thoughts))
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: walkin-corpse on September 13, 2017, 08:05:14 pm
В Windows если свернуть Lazarus и развернуть  пропадает окно Form остальные окна видно! Приходится заходить проект - формы и выбирать форму ((
If I minimize and restore IDE in Windows then the Form pane disappearing (others visible). Must choose "Project" - "Forms" and select  the form to activate it.

(I'll try to translate the description of this really ancient bug, I not tested if it still here in most recent RC version).
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: dbannon on September 17, 2017, 02:52:28 am
The Lazarus team is glad to announce the fourth release candidate of
Lazarus 1.8.
....
Mac OS X:
  10.5 to 10.12; Carbon (32bit), Cocoa (64bit, not stable), qt and qt5 (32 or 64bit).

Does Cocoa being "not stable" mean you don't want bug reports at this stage ? Even very simple ones ?  (Set Project Options to Cocoa, drop a TMemo on otherwise blank form, Run and it will segfault during startup.)

This on a Macbook Pro, Sierra, Lazarus 1.8rc4. Similar problems seem to exist in the Trunk Cocoa Widget Set.

David
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: lainz on September 19, 2017, 05:06:57 pm
It's me or lazarus is faster than ever?

It compiles really fast...
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: BeniBela on September 21, 2017, 12:27:38 am
If it compiles

Just got this lazbuild assert failure between compiling

Quote
Code: [Select]
/home/theo/hg/components/pascal/internettools.pas(12,23) Hint: (5023) Unit "xquery__functions" not used in internettools
(1008) 134046 lines compiled, 10.8 sec
(1021) 45 warning(s) issued
(1022) 207 hint(s) issued
(1023) 28 note(s) issued
lazbuild: ../nptl/pthread_mutex_lock.c:117: __pthread_mutex_lock: Zusicherung »mutex->__data.__owner == 0« nicht erfüllt.
/home/theo/hg/programs/internet/xidel/../../../manageUtils.sh: line 156: 21985 Abgebrochen             (core dumped) lazbuild $1 $LPI

Title: I think there is a bug with checkbox multiline captions
Post by: Yukiko on September 25, 2017, 03:57:19 am
When I create a multi-line caption for a check box all the caption text is there but all on one line.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: mechtron on October 06, 2017, 09:43:55 am
I'm using linuxmint17 with kde5/plasma.
Whenever I close or restart lazarus, it crashes plasma and the desktop reloads. 
Not really a show stopper, but it looks very clunky.

Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: marcov on October 06, 2017, 10:20:58 am
I'm using linuxmint17 with kde5/plasma.
Whenever I close or restart lazarus, it crashes plasma and the desktop reloads. 
Not really a show stopper, but it looks very clunky.

Yeah. Plasma sounds alpha quality. Apps shouldn't be able to crash the windowmanager.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: JuhaManninen on October 06, 2017, 11:13:28 am
Yeah. Plasma sounds alpha quality. Apps shouldn't be able to crash the windowmanager.
That is a little outdated information. Plasma was alpha quality at the time of Linux Mint 17.
Even the last Mint 17.x release, 17.3 ‘Rosa’, is well over 2 years old, and Mint uses old versions of SW to start with. KDE there is maybe 3 years old.

The bug didn't crash the whole Plasma but it crashed Task Manager which then reloaded. It is fixed now:
 https://bugs.kde.org/show_bug.cgi?id=342763
Somebody even reported it in Lazarus bug tracker for some reason:
 https://bugs.freepascal.org/view.php?id=32041

KDE has now advanced into a very good shape! I personally use a rolling Manjaro. A rolling SparkyLinux, based on Debian testing, is also good.
@mechtron, you really must update your KDE. It makes no sense to struggle with old alpha/beta versions.

I installed KaOS into an old laptop.
 https://kaosx.us/
Wow! Very light on resources and looks good. Unfortunately not good for developers but for "normal" users quite perfect.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: avra on October 07, 2017, 09:49:53 am
I personally use a rolling Manjaro. A rolling SparkyLinux, based on Debian testing, is also good.
I also prefer Manjaro but I had to give up on it on Apollo Lake because it kept freezing randomly even with several latest kernels. Linux Mint with backported kernel and Debian testing worked very well, but I gave up on Debian testing because it strangely didn't have Kodi, and building from source had too many problems. So I ended up with Debian stable, although it was awful out of the box until 4.12 was installed. I looked at Sparky but couldn't find anything worth using it over Debian, so I wonder what did you see in it that I missed? Maybe that would be worth another look?
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: JuhaManninen on October 07, 2017, 12:37:17 pm
I also prefer Manjaro but I had to give up on it on Apollo Lake because it kept freezing randomly even with several latest kernels.
Oh, surprising! I even recommended an "Apollo Lake" Intel N3450 based mini-PC to a person. I myself still have Celeron N3000 in my main computer, ASRock Beebox. It is the earlier Braswell generation. No problems with Manjaro.
I could imagine a new kernel coming with rolling Manjaro would work better on a new CPU.

Quote
Linux Mint with backported kernel and Debian testing worked very well, but I gave up on Debian testing because it strangely didn't have Kodi, and building from source had too many problems.
Surprising again. A web search tells you can install it from:
 http://www.deb-multimedia.org/
although I didn't test it myself.

Quote
So I ended up with Debian stable, although it was awful out of the box until 4.12 was installed.
You mean the older Linux kernels lacked some HW drivers? Otherwise the differences between kernels in a desktop system are difficult to notice.

Quote
I looked at Sparky but couldn't find anything worth using it over Debian, so I wonder what did you see in it that I missed? Maybe that would be worth another look?
Good question. The main difference was that Sparky is rolling and Debian is not.
According to web it should be possible to use Debian testing as a rolling distro and even their documentation hints that way.
However when I changed "buster" to "testing" in /etc/apt/sources.list, I could not update any more.
I asked about it in Debian-user mailing list but didn't get a proper answer which is surprising again...
 http://debian.2.n7.nabble.com/Editing-etc-apt-sources-list-breaks-update-td4191020.html
The most on-topic answer was that using "buster" is OK because it will be the same as "testing" for maybe 2 years. The answer was from "Fungi4All" who was banned from the whole mailing list few days later for writing off-topic posts (not for me but for some other threads). For some reason he wrote me a personal mail saying he moves to Devuan and Artix.
So, my impression of Debian-user list is not good.

Anyway, for your use case Debian may be as good as Sparky.

My original search was for a rolling distro that can be installed on a x86 machine from a CD.
Such distros are going extinct although the machines are still very usable.
Many distros, including Manjaro, Ubuntu and Mint have dropped or are just dropping support for x86.
Debian still supports x86 and a CD-size image and has a good installer. Otherwise I would prefer a more modern distro.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: avra on October 07, 2017, 01:51:03 pm
I also prefer Manjaro but I had to give up on it on Apollo Lake because it kept freezing randomly even with several latest kernels.
Oh, surprising! I even recommended an "Apollo Lake" Intel N3450 based mini-PC to a person. I myself still have Celeron N3000 in my main computer, ASRock Beebox. It is the earlier Braswell generation. No problems with Manjaro.
I could imagine a new kernel coming with rolling Manjaro would work better on a new CPU.
Tested with kernel 4.12 and 4.13. Result was the same. Apollo Lake is supported since 4.10, unfortunately only Manjaro was freezing randomly on GIGABYTE GA-J3455N-D3H with 16GB RAM and 8TB HDD, so I had to give up on it after numerous fails to make it stable. Memory was tested with Memtest86+ 5.01 for several days without problems. System is mostly used as a backup server and home media center.

Quote
Quote
Linux Mint with backported kernel and Debian testing worked very well, but I gave up on Debian testing because it strangely didn't have Kodi, and building from source had too many problems.
Surprising again. A web search tells you can install it from:
http://www.deb-multimedia.org/
although I didn't test it myself.
Strangely apt-get can't find Kodi for installation in Debian testing. Look here: https://packages.debian.org/search?keywords=kodi&searchon=names&suite=testing&section=all

Quote
Quote
So I ended up with Debian stable, although it was awful out of the box until 4.12 was installed.
You mean the older Linux kernels lacked some HW drivers? Otherwise the differences between kernels in a desktop system are difficult to notice.
No, I mean that Debian stable comes with 4.09 and Apollo Lake is supported in 4.10. Therefore whole installation process until backporting 4.12 was a frustration, since mouse was erratic and every few seconds the whole system was frozen for 5-10 seconds. That ment that installation took 6-7 looong hours. After 4.12 was installed there were no further problems. I wanted to avoid that by using Debian testing (which had good kernel for Apollo Lake), but had to give up when I found that Kodi was not in available packages and installation from source was abandoned after fixing dozen of problems but more and more were coming. I have to mention that Linux Mint worked well out of the box, but I decided to go for LMDE. Unfortunately I couldn't make LMDE to work at all, so I ended up with Debian stable instead. Lazarus doesn't have any problems with XFCE (unlike with Cinnamon), so that was another reason (I know how to install another desktop manager but I prefer if distro already has my favorite).

Quote
Quote
I looked at Sparky but couldn't find anything worth using it over Debian, so I wonder what did you see in it that I missed? Maybe that would be worth another look?
Good question. The main difference was that Sparky is rolling and Debian is not.
Somehow I missed that very important feature. I will take another look at Sparky, although I will probably stay with Debian stable on Apollo Lake. For my specific use case of Apollo Lake, rolling release might not be such a good idea after all.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: munair on October 08, 2017, 06:23:13 pm
I'm using linuxmint17 with kde5/plasma.
Whenever I close or restart lazarus, it crashes plasma and the desktop reloads. 
Not really a show stopper, but it looks very clunky.

Keep in mind that Mint is built from Ubuntu and Ubuntu from Debian testing. I used both Mint and Ubuntu in the past and they turned out to be less stable as a programming environment than Debian stable. I use Debian 9 with KDE 5/plasma for several weeks now and so far I have not run into trouble with Lazarus. But I must add here that I use lcl-qt4 as provided by the Debian repo. If you use lcl-qt5 this may also be part of the problem. I currently do not have the means to test it myself.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: calebs on October 11, 2017, 03:00:43 pm
Hello all, maybe this is not the right place for this or maybe it's something is already answered elsewhere, but i noticed it a long ago and is still present in all lazarus versions, i think is not lazarus fault:
Im developing a multiplataform program that constist in many independent executables , mostly on windows (32/64 bits) and design forms there. Also i've tried developing in multiple linux distributions and windows managers and almost always find that the elements of the forms overlaps with labels and other text when i run the programs in different linuxes/wm... almost everytime i change linux to develop/run i have to redisign the forms and move away the components of forms to avoid their overlap.
Is there any solution to this? or its a linux font problem?
I've not found this problem in windows because i think always tried with default text size but i think that can happen if i change this too.
Thanks and keep the good work!
Ps: tried best to write in english, sorry!
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Handoko on October 11, 2017, 03:11:03 pm
I guess what you need are visual components that look the same on different platforms. Maybe you can try:
http://wiki.freepascal.org/Lazarus_Custom_Drawn_Package
http://wiki.lazarus.freepascal.org/BGRAControls
http://wiki.freepascal.org/Eye-Candy_Controls

Perhaps, you will be interested to read this:
http://forum.lazarus.freepascal.org/index.php/topic,38451.msg261672.html#msg261672
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: FTurtle on October 11, 2017, 03:39:50 pm
and almost always find that the elements of the forms overlaps with labels and other text when i run the programs in different linuxes/wm... almost everytime i change linux to develop/run i have to redisign the forms and move away the components of forms to avoid their overlap.
Is there any solution to this? or its a linux font problem?

Look at this:
http://forum.lazarus.freepascal.org/index.php/topic,33664.msg218436.html#msg218436
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Martin_fr on October 12, 2017, 03:39:40 am
almost everytime i change linux to develop/run i have to redisign the forms and move away the components of forms to avoid their overlap.
Is there any solution to this? or its a linux font problem?

Use anchors and the anchor editor. http://wiki.lazarus.freepascal.org/Autosize_/_Layout#Anchored_to_sibling and http://wiki.lazarus.freepascal.org/Anchor_Sides

If you have more questions on anchoring, please create a new thread/topic.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: jack616 on October 13, 2017, 12:29:30 pm
Before the next release could you please fix the long standing bug relating to
the failure of the lazarus uses clause to recognise relative paths in the lpr file.

eg:   uses '../../commonfiles/fred.pas'

(clicking the units button shows all files but clicking on the files fails to open them)

 PS - I dont know what you changed with the fonts this or recent releases ago
but its a big improvement - thanks for that.

john(not jack)
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: howardpc on October 13, 2017, 12:59:02 pm
Before the next release could you please fix the long standing bug relating to
the failure of the lazarus uses clause to recognise relative paths in the lpr file.

eg:   uses '../../commonfiles/fred.pas'

(clicking the units button shows all files but clicking on the files fails to open them)

AFAIK the uses clause works with unit names (not unit filenames).
So the unit cited in the uses clause as StdCtrls merely represents the filename ... /lazarus/lcl/stdctrls.pp
The unit name is a mapping of the filename, not an identity.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: jack616 on October 13, 2017, 02:19:26 pm
Ok so the fix is to change the use to filenames - strip the path from the pop-up display
and you no longer have to keep manually loading every single file in the project
and a commonfiles folder is simply and fully implemented?
It is currently  very irritating for larger projects.

As it stands the ctrl+f12 button serves little or no purpose (and is better served in the project
menu anyway ?)

john(not jack)

 
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Martin_fr on October 13, 2017, 03:38:25 pm
eg:   uses '../../commonfiles/fred.pas'

Does this compile?
If yes, is there a bug report?

Well if it compiles it should get fixed eventually.

But besides this (not affecting the need for a fix), I am curious why including files like this? Presumingly files shared with other projects?
In that case:
 I really recommend using a package for those files.

Though of course then, they get their own compiler settings.

If you move to packages make sure to clean all old ppu files.
Title: 1.8 RC4 and AnchorDockingDsgn 0.5
Post by: Noodly on October 14, 2017, 01:11:25 am
I've been using 1.8, RC4 for a while without any issues until I installed the AnchorDockingDsgn 0.5 package.

Now the code explorer and components tabs have joined in and I can't get rid of them. Screenshot attached.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Devstructor on October 17, 2017, 09:50:08 am
I found the solution. The template of a fpweb web application does not set Application.LegacyRouting to true. After Michael's changes in the routing, this is required to use the data module routing concept (http://lists.freepascal.org/pipermail/fpc-pascal/2017-January/049852.html).

I really like the new release candidate, but I found a problem  :)

After compiling a weblaz HTTP server application which was created with Lazarus 1.6.4 the project does not work anymore.

The routing seems to not work correctly. The HTTP server just responses
:Module Error The application encountered the following error: Error: Not found

It seems like the routing is not working, I cannot reach any of the existing OnRequest Methods of the TFPWebModule.

The bug is really easy to produce. Just install weblaz (shipped with Lazarus 1.8RC4), and create a new HTTP server application. A simple test does not even require the use of actions, you can just create the following OnRequest method:
Code: Pascal  [Select][+][-]
  1. procedure TFPWebModule1.DataModuleRequest(Sender: TObject; ARequest: TRequest;
  2.   AResponse: TResponse; Var Handled: Boolean);
  3. begin
  4.   AResponse.Content:='This test is working, great :)';
  5.   AResponse.Code:=200;
  6.   Handled:=True;
  7. end;  
  8.  

Thank you for your work  :)
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: dbannon on November 12, 2017, 11:33:12 pm
TTrayIcon has a memory leak on the Mac (OK Windows and Linux). I think it will probably affect any app using the TrayIcon so I'd suggest its reasonably serious.

I have logged this in the bug tracker, item number 32678

I have not tested under RC5 but don't see any indication that it has been fixed between RC4 and RC5.

(I'll cross post this to the Mac section of the forum because Mac users need to be alert to it.)

David
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: BIT on December 28, 2017, 03:48:01 pm
Вообщем скачал последнею сборку с сайта так и пропадают формы после сворачивание и разворачивания поправят это или так и останется?

Generally downloaded the latest build from the site and lost the shape after folding and unfolding fix this or will remain?

https://bugs.freepascal.org/view.php?id=32266
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: Thaddy on December 28, 2017, 04:09:15 pm
Some moderator should lock this thread for prosperity.
Maybe with a note to use the release.
Title: Re: Lazarus Release Candidate 4 of 1.8 (includes RC1 of fpc 3.0.4)
Post by: JuhaManninen on December 28, 2017, 04:15:33 pm
https://bugs.freepascal.org/view.php?id=32266
The report has had questions for over 2 months but they are not answered.
I personally don't promise to fix the issue. I don't use Windows much.
TinyPortal © 2005-2018