Author Topic: Unleashed Pascal (async/await, parallel for, match, string interpolation & more)  (Read 70256 times)

creaothceann

  • Sr. Member
  • ****
  • Posts: 481
Not sure exactly what you mean

The one in the attachment below. (Not a big issue once you know about the option in the View menu.)


create a new empty window, turn on the panes you want there, and turn them off in the main window.

Thanks, that works perfectly.

- - -

Btw. when starting lazarus.exe without an *.lpi file as a parameter (for example via the Desktop shortcut), it doesn't load the previous project. Perhaps there could be an option for that?

Fibonacci

  • Hero Member
  • *****
  • Posts: 1125
  • Behold, I bring salvation - Unleashed Pascal
    • fibo.gg
The one in the attachment below. (Not a big issue once you know about the option in the View menu.)

Already done, update.

Btw. when starting lazarus.exe without an *.lpi file as a parameter (for example via the Desktop shortcut), it doesn't load the previous project. Perhaps there could be an option for that?

IDE Options -> Environment -> IDE Startup -> check "Open last project and packages at start"
Unleashed Pascal: async/await, parallel for, match, tuples, string interpolation, inline vars, autofree, no-RTTI & tons more. Star on GitHub ⭐

creaothceann

  • Sr. Member
  • ****
  • Posts: 481
Thank you.

- - -

EDIT: One thing I noticed is that the scrollbars are flickering when they are moved (even if they don't actually end up moving), especially the vertical one in the code editor. When moving the horizontal scrollbar, the vertical one is flickering too.
« Last Edit: October 07, 2026, 08:53:07 am by creaothceann »

Fibonacci

  • Hero Member
  • *****
  • Posts: 1125
  • Behold, I bring salvation - Unleashed Pascal
    • fibo.gg
EDIT: One thing I noticed is that the scrollbars are flickering when they are moved (even if they don't actually end up moving), especially the vertical one in the code editor. When moving the horizontal scrollbar, the vertical one is flickering too.

Can't reproduce that here. Could you record a short video of it? Which theme are you on?
Unleashed Pascal: async/await, parallel for, match, tuples, string interpolation, inline vars, autofree, no-RTTI & tons more. Star on GitHub ⭐

Thaddy

  • Hero Member
  • *****
  • Posts: 19978
  • Pointless static linking author
And which platform and widgetset?
Any "programmer" that knows only one programming language is not a programmer

Fibonacci

  • Hero Member
  • *****
  • Posts: 1125
  • Behold, I bring salvation - Unleashed Pascal
    • fibo.gg
Themes for your own apps + a component library

The IDE has theming - so now your apps can have it too. Drop a TAppTheme on a form: the same themes as the IDE (or follow the system), plus sliders to tune them into something completely your own.

Second: 98 components, preinstalled in the IDE as one package - TAppTheme is one of them.

Video, me clicking through the demo: https://streamable.com/h0rt8x
Demo (sources + Windows and Linux binaries): https://github.com/unleashedpascal/ide/releases/tag/components-demo

Everything is on the devel branch, for the compiler I suggest devel as well. Feedback welcome.
« Last Edit: October 16, 2026, 03:18:49 pm by Fibonacci »
Unleashed Pascal: async/await, parallel for, match, tuples, string interpolation, inline vars, autofree, no-RTTI & tons more. Star on GitHub ⭐

fcu

  • Full Member
  • ***
  • Posts: 136
wow looking so good , hope lazarus has the same thing

creaothceann

  • Sr. Member
  • ****
  • Posts: 481
EDIT: One thing I noticed is that the scrollbars are flickering when they are moved (even if they don't actually end up moving), especially the vertical one in the code editor. When moving the horizontal scrollbar, the vertical one is flickering too.

Can't reproduce that here. Could you record a short video of it? Which theme are you on?

Here's a screen recording. Windows 11, 64-bit Lazarus/FPC, latest updates and Nvidia drivers. When scrolling through the source code with the cursor keys there's some flickering on the horz. scrollbar, but it's almost invisible in the video except at ~00:24. It's much more visible in person.

Btw. here's another video, recorded with the Nvidia app; this one's 60 fps.

- - -

Another issue:

I did a re-install on one of my PCs before you posted the "Themes for your own apps + a component library" message.
("Unleashed Pascal IDE 4.99 (rev e56b4ef) compiler 3.3.1 x86_64-win64-win32/win64")

Now, on another PC, after 1. re-installing and 2. doing a clean re-install, I get an access violation when I want to open "Menu | Tools | Options..." to change the settings.
("Unleashed Pascal IDE 4.99 (rev 5e0947f) compiler 3.3.1 x86_64-win64-win32/win64")

[project1 Default - Unleashed Pascal IDE v4.99]
Access violation.
Press OK to ignore and risk data corruption.
Press Abort to kill the program.
[OK] [Abort]

Fibonacci

  • Hero Member
  • *****
  • Posts: 1125
  • Behold, I bring salvation - Unleashed Pascal
    • fibo.gg
Thanks, the recording shows it. The bars were painted in a few steps straight onto the window and on Windows 11 the compositor sometimes catches the frame between the track fill and the thumb, so the bar looks like it vanishes for an instant. There is a commit in devel now that paints the bar off screen and puts it up in one blit. I have no Windows 11 here, so I can't confirm it myself, but the half-painted frame can't show up anymore, so it should be gone with the next build.

I get an access violation when I want to open "Menu | Tools | Options..." (...)

Can't reproduce that here either. Did you install with the Unleashed installer or with fpcupdeluxe? Either way, please install with the devel installer (not the normal one) and pick the devel branch for both the IDE and the compiler. Everything devel: the whole theme system is devel-dependent and even the compiler carries fixes needed for it to work together. Any other combination can end in crashes like this one.

If it still fails with that, start the IDE as lazarus.exe --debug-log=C:\temp\ide.log, open Tools | Options, press OK on the error dialog and close the IDE. Devel builds from today on write the backtrace of such an exception into that log, with unit names and line numbers, no rebuild needed. Then send me by PM or mail (fibodevy@gmail.com), rather than posting them, since they contain paths from your machine:

1. ide.log from above
2. installer.log from the installation folder (next to installer.ini)
3. your screen resolution and the scaling (e.g. 150%)
Unleashed Pascal: async/await, parallel for, match, tuples, string interpolation, inline vars, autofree, no-RTTI & tons more. Star on GitHub ⭐

DimTim

  • New Member
  • *
  • Posts: 48
Is it possible to add cross-compilers to the installation?  For example, ARM/Linux.  Fpcupdeluxe fails.

Fibonacci

  • Hero Member
  • *****
  • Posts: 1125
  • Behold, I bring salvation - Unleashed Pascal
    • fibo.gg
Is it possible to add cross-compilers to the installation?  For example, ARM/Linux.  Fpcupdeluxe fails.

How does it fail? That's exactly why I try to keep Unleashed compatible with fpcupdeluxe - so cross compilers are easy to install.

A few more cross compilers will be added to the Unleashed installer, at least arm64 for Linux and Windows. Probably soon - I recently got a device with such a CPU, so I can test it and make sure it works. All the other more "exotic" CPU/OS mixes will stay available through fpcupdeluxe.
Unleashed Pascal: async/await, parallel for, match, tuples, string interpolation, inline vars, autofree, no-RTTI & tons more. Star on GitHub ⭐

creaothceann

  • Sr. Member
  • ****
  • Posts: 481
I have no Windows 11 here, so I can't confirm it myself, but the half-painted frame can't show up anymore, so it should be gone with the next build.

It appears fine now.


[...]

PM sent.

Fibonacci

  • Hero Member
  • *****
  • Posts: 1125
  • Behold, I bring salvation - Unleashed Pascal
    • fibo.gg
PM sent.

Thanks a lot for the logs. The most valuable part turned out to be your last finding: with that I could reproduce it on my machine, and it turned out to be two bugs, one on opening Options and another one on closing it. Both are fixed in devel.
Unleashed Pascal: async/await, parallel for, match, tuples, string interpolation, inline vars, autofree, no-RTTI & tons more. Star on GitHub ⭐

creaothceann

  • Sr. Member
  • ****
  • Posts: 481
Thanks, it's working now.

DimTim

  • New Member
  • *
  • Posts: 48
Is it possible to add cross-compilers to the installation?  For example, ARM/Linux.  Fpcupdeluxe fails.

How does it fail? That's exactly why I try to keep Unleashed compatible with fpcupdeluxe - so cross compilers are easy to install.
I attached the log file. Probably the reason is that fpcupdeluxe installs cross compilers in ..\cross\bin and ..\cross\lib (then specific dirs for i386-win32, i386-linux etc), but Unleashed installer uses reversed scheme: ..\cross\i386-linux\bin, ..\cross\i386-linux\lib.

Quote
A few more cross compilers will be added to the Unleashed installer, at least arm64 for Linux and Windows.
Thanks, this is turning out to be a very interesting project!

 

TinyPortal © 2005-2018