Recent

Author Topic: Lazarus Release 2.2.6  (Read 39213 times)

DreamVB

  • Full Member
  • ***
  • Posts: 100
    • Memo Pad
Re: Lazarus Release 2.2.6
« Reply #15 on: March 10, 2023, 11:19:07 pm »
Thanks you for all your hard work.
Dream Believe Achieve

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10235
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release 2.2.6
« Reply #16 on: March 11, 2023, 12:28:12 am »
On Linux LMDE5 taking error on the start:

Directory: /usr/share/fpcsrc/3.2.2/
Warning: Found version 3.2.2, expected 3.3.1
You can download FPC and the FPC sources from http://sourceforge.net/projects/lazarus/?source=directory

Result in messages on compilation:

Compile Project, Target: /home/bs/tmp/project1: Exit code 1, Errors: 1
project1.lpr(12,3) Fatal: Can't find unit Interfaces used by Project1

Did you have another fpc version installed before? Maybe you need to uninstall that first.
On Linux it is tricky to have more than one fpc version at the same time.

bobihot

  • New Member
  • *
  • Posts: 36
Re: Lazarus Release 2.2.6
« Reply #17 on: March 11, 2023, 06:26:27 am »
Did you have another fpc version installed before? Maybe you need to uninstall that first.
On Linux it is tricky to have more than one fpc version at the same time.
I have only FPC version 3.2.2 installed with lazarus 2.2.4
But he maybe wanted version 3.3.1?

dbannon

  • Hero Member
  • *****
  • Posts: 3003
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release 2.2.6
« Reply #18 on: March 11, 2023, 06:31:53 am »
On Linux it is tricky to have more than one fpc version at the same time.

Not really Martin. It all depends on $PATH, I have this at the end of my .bashrc script -
Code: Bash  [Select][+][-]
  1. FPCV='fpc-3.2.2'
  2. export OLD_PATH="$PATH"
  3. export PATH="$HOME/bin/FPC/$FPCV/bin":"$PATH"

If I want to go back to, eg, 3.2.0 I'd type -
Code: Pascal  [Select][+][-]
  1. export PATH="$HOME/bin/FPC/fpc-3.2.0/bin":"$OLD_PATH"

In both cases, FPC installed from a tarball in user space.

Davo

 
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

TRon

  • Hero Member
  • *****
  • Posts: 3128
Re: Lazarus Release 2.2.6
« Reply #19 on: March 11, 2023, 06:46:29 am »
On Linux it is tricky to have more than one fpc version at the same time.

Not really Martin. It all depends on $PATH, I have this at the end of my .bashrc script -

If I want to go back to, eg, 3.2.0 I'd type -
Code: Pascal  [Select][+][-]
  1. export PATH="$HOME/bin/FPC/fpc-3.2.0/bin":"$OLD_PATH"

Code: [Select]
-V

As alternative you can also use an alias or a link as that also saves you from using/modifying the path environment variable.

Make sure to have properly configured paths in fpc.cfg.

What does make things very messy is when someone installs FPC using the package manager /and/ also builds/installs a standalone compiler. In such cases it is easier to just use a complete standalone setup and leave the systems package manager for what it is. Also a recipe for disaster seems to be installing a Lazarus which also contains FPC icw the system package manager and/or a stand-alone build. If you wish to have multiple FPC versions then it is better to DIY and adjust other software to use that stand-alone setup. The only tool that currently does not seem to play game with that is the FPC package manager (but that might be just me).

edit: link to FPC version switching
« Last Edit: March 11, 2023, 08:12:11 am by TRon »
All software is open source (as long as you can read assembler)

PierceNg

  • Sr. Member
  • ****
  • Posts: 379
    • SamadhiWeb
Re: Lazarus Release 2.2.6
« Reply #20 on: March 11, 2023, 06:48:17 am »
I run zsh. Idea's the same as what dbannon wrote. With these, I switch by doing like "path0; fpc331path". I also have jdk8path, jdk11path, node16path, node18path and so on.

Code: Text  [Select][+][-]
  1. export PATH0CAR=standard stuff that should be found first
  2. export PATH0CDR=standard stuff that can be overridden by stuff earlier in the path
  3. export PATH=$PATH0CAR:$PATH0CDR
  4.  
  5. function path0() {
  6.   export PS1="%n@%m:%~%# "
  7.   export PATH=$PATH0CAR:$PATH0CDR
  8.   hash -r
  9. }
  10.  
  11. function fpc331ccpath() {
  12.   export OLD_PS1=$PS1
  13.   export PS1="[fpc331cc] $OLD_PS1"
  14.   export FPCPATH=~/pkg/fpc331/bin:~/pkg/fpc331/lib/fpc/3.3.1
  15.   export PATH=$PATH0CAR:$FPCPATH:$PATH0CDR
  16.   hash -r
  17. }
  18.  
  19. function fpc331path() {
  20.   export OLD_PS1=$PS1
  21.   export PS1="[fpc331 laz22] $OLD_PS1"
  22.   export FPCPATH=~/pkg/fpc331/bin:~/pkg/fpc331/lib/fpc/3.3.1:~/pkg/lazarus22b
  23.   export PATH=$PATH0CAR:$FPCPATH:$PATH0CDR
  24.   hash -r
  25. }
  26.  
  27. function fpcllvmpath() {
  28.   export OLD_PS1=$PS1
  29.   export PS1="[llvm14 fpcllvm] $OLD_PS1"
  30.   export LLVMPATH=~/pkg/llvm14/bin
  31.   export FPCPATH=~/pkg/fpcllvm/bin:~/pkg/fpcllvm/lib/fpc/3.3.1
  32.   export PATH=$LLVMPATH:$PATH0CAR:$FPCPATH:$PATH0CDR
  33.   hash -r
  34. }

Al-Eid

  • Jr. Member
  • **
  • Posts: 75
Re: Lazarus Release 2.2.6
« Reply #21 on: March 11, 2023, 08:24:00 am »
Thanks to all
Good luck

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10235
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus Release 2.2.6
« Reply #22 on: March 11, 2023, 08:55:06 am »
Did you have another fpc version installed before? Maybe you need to uninstall that first.
On Linux it is tricky to have more than one fpc version at the same time.
I have only FPC version 3.2.2 installed with lazarus 2.2.4
But he maybe wanted version 3.3.1?

3.2.2 is correct

What happens if you open a terminal and run
   fpc

What does it output?

RadDeveloper

  • New member
  • *
  • Posts: 8
Lazarus Release 2.2.6 [Project Source]
« Reply #23 on: March 13, 2023, 07:43:38 am »
Hi Lazarus Team! Since the two last releases, this issue hasn't been fixed :-(

Here is the bug in this version. Here the steps: Launch Lazarus IDE, Click Project -> View Project Source, then close project1.lpr page, then again Click Project -> View Project Source, then the source page appears to be blank (no project code inside), and cannot compile a project.

Thanks.

Quote from: Handoko
I confirm what RadDeveloper said is reproducible on Lazarus 2.2.2 Linux GTK2.

But that only happens on new project, so the steps to produce the issue are:
1. Start Lazarus
2. File > New > Project > Application > OK
3. Project > View Project Source
4. Close the project1.lpr tab on the Source Editor
5. Project > View Project Source

af0815

  • Hero Member
  • *****
  • Posts: 1354
Re: Lazarus Release 2.2.6
« Reply #24 on: March 13, 2023, 08:49:31 am »
Is the project1.lpr saved gefore or not ? I cannot see this on a saved project.
Open the Project inspector and if your lpr is still in project
regards
Andreas

chenyuchih

  • Jr. Member
  • **
  • Posts: 82
Re: Lazarus Release 2.2.6
« Reply #25 on: March 13, 2023, 09:59:36 am »
Great news! Thank you all the Lazarus team(and fpc staffs also)

Ericktux

  • Sr. Member
  • ****
  • Posts: 350
Re: Lazarus Release 2.2.6
« Reply #26 on: March 13, 2023, 06:22:34 pm »
muchas gracias a todo el equipo lazarus, saludos desde Perú  :)

dbannon

  • Hero Member
  • *****
  • Posts: 3003
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Lazarus Release 2.2.6 [Project Source]
« Reply #27 on: March 14, 2023, 02:09:07 am »
Hi Lazarus Team! Since the two last releases, this issue hasn't been fixed :-(

Here is the bug in this version. Here the steps: Launch Lazarus IDE, Click Project -> View Project Source, then close project1.lpr page, then again Click Project -> View Project Source, then the source page appears to be blank (no project code inside), and cannot compile a project.

Thanks.

Quote from: Handoko
I confirm what RadDeveloper said is reproducible on Lazarus 2.2.2 Linux GTK2.

But that only happens on new project, so the steps to produce the issue are:
1. Start Lazarus
2. File > New > Project > Application > OK
3. Project > View Project Source
4. Close the project1.lpr tab on the Source Editor
5. Project > View Project Source

as af0815 says, at no stage in that process has the project been saved. If you close it without saving, you cannot really expect it to be there can you ?

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

dsiders

  • Hero Member
  • *****
  • Posts: 1208
Re: Lazarus Release 2.2.6 [Project Source]
« Reply #28 on: March 14, 2023, 02:42:53 am »
Hi Lazarus Team! Since the two last releases, this issue hasn't been fixed :-(

Here is the bug in this version. Here the steps: Launch Lazarus IDE, Click Project -> View Project Source, then close project1.lpr page, then again Click Project -> View Project Source, then the source page appears to be blank (no project code inside), and cannot compile a project.

Thanks.

Quote from: Handoko
I confirm what RadDeveloper said is reproducible on Lazarus 2.2.2 Linux GTK2.

But that only happens on new project, so the steps to produce the issue are:
1. Start Lazarus
2. File > New > Project > Application > OK
3. Project > View Project Source
4. Close the project1.lpr tab on the Source Editor
5. Project > View Project Source

as af0815 says, at no stage in that process has the project been saved. If you close it without saving, you cannot really expect it to be there can you ?

Davo

Better tell someone to go break version 2.3.0 then. Because it does not exhibit that behavior. So, error or not, it won't exist in version 2.4.
Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

dalfy

  • New Member
  • *
  • Posts: 10
Re: Lazarus Release 2.2.6
« Reply #29 on: March 15, 2023, 04:27:25 pm »
Hello.
Where can I place a proposal for the FPDoc documentation module?
Suggestion: after renaming the variable (by F2), as well rename the variables in the xml file.

 

TinyPortal © 2005-2018