Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2018-03

Running Lazarus in Lazarus

7 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Lubos Pintes

Hello,
Is it possible to run Lazarus as an application in IDE? I have a freeze somewhere, (Windows 10's "not responding" addition in a title bar). A --debug-log doesn't help me much, because it is not flushed. I know how to rebuild IDE, but don't know how to run it so that it can be debugged.
Thanks!

Reply by email

Mattias Gaertner
to Lubos Pintes
Show quoted text 6 lines
Hello, Is it possible to run Lazarus as an application in IDE? I have a freeze somewhere, (Windows 10's "not responding" addition in a title bar). A --debug-log doesn't help me much, because it is not flushed. I know how to rebuild IDE, but don't know how to run it so that it can be debugged.

Open the lazarus\lazarus.lpi and run it.

Mattias

Reply by email

Lubos Pintes
to Mattias Gaertner

This is <lazarus>/ide/lazarus.lpi, where <lazarus> is directory with whole Lazarus repo right?
Because my code I added there is not compiled. I added my files to <lazarus>/interfaces/lcl.lpk. When I build the IDE from tools menu, my code is compiled. But when I open the above-mentioned project, it runs but behaves differently.

Dňa 02.03.2018 o 13:45 Mattias Gaertner via Lazarus napísal(a):

Show quoted text 14 lines
On Fri, 2 Mar 2018 13:40:24 +0100 Lubos Pintes via Lazarus wrote: > Hello, > Is it possible to run Lazarus as an application in IDE? I have a freeze > somewhere, (Windows 10's "not responding" addition in a title bar). > A --debug-log doesn't help me much, because it is not flushed. > I know how to rebuild IDE, but don't know how to run it so that it can > be debugged. Open the lazarus\lazarus.lpi and run it. Mattias

Reply by email

Mattias Gaertner
to Lubos Pintes
This is <lazarus>/ide/lazarus.lpi, where <lazarus> is directory with whole Lazarus repo right?

Yes, sorry.

Because my code I added there is not compiled. I added my files to <lazarus>/interfaces/lcl.lpk.

Why did you add files to the LCL? That's quiet unusual.

When I build the IDE from tools menu, my code is compiled. But when I open the above-mentioned project, it runs but behaves differently.

Check Tools/ Options / Lazarus directory.
The lazarus.lpi runs the default lazarus.exe.

Mattias

Reply by email

Lubos Pintes
to Mattias Gaertner

Hello,
I added my files to lcl.lpk, because I am developing an UI Automation support for LCL, Win32 WidgetSet more concretely. And all files from win32 directory are there, so I also added the UIA files there. That means into win32\ subdirectory and to the lcl.lpk. Dňa 02.03.2018 o 15:05 Mattias Gaertner via Lazarus napísal(a):

Show quoted text 23 lines
On Fri, 2 Mar 2018 14:49:15 +0100 Lubos Pintes via Lazarus wrote: > This is <lazarus>/ide/lazarus.lpi, where <lazarus> is directory with > whole Lazarus repo right? Yes, sorry. > Because my code I added there is not compiled. I added my files to > <lazarus>/interfaces/lcl.lpk. Why did you add files to the LCL? That's quiet unusual. > When I build the IDE from tools menu, my > code is compiled. But when I open the above-mentioned project, it runs > but behaves differently. Check Tools/ Options / Lazarus directory. The lazarus.lpi runs the default lazarus.exe. Mattias

Reply by email

Lubos Pintes
to Mattias Gaertner: On Fri, 2 Mar 2018 14:49:15 +0100 Yes, sorry. Why did you add files to the LCL? That's…

Hi,
I think the file is malformed somehow. Yes, indeed it runs the default Lazarus, but it is unable to build it. Obviously, it would be impossible to rewrite the running program. So someone could possibly fix the lazarus.lpi.
So I renamed the Lazarus.exe, then opened the renamed IDE, pressed F9 and the "Program not found" error appeared.
I then tried to build with Ctrl+F9, and the following was written: The project's compiler options has no compile command. See Project / Compiler Options ... / Compilation
So how can I fix this? Or can someone fix the lazarus.lpi? Thanks!

Dňa 02.03.2018 o 15:05 Mattias Gaertner via Lazarus napísal(a):

Show quoted text 23 lines
On Fri, 2 Mar 2018 14:49:15 +0100 Lubos Pintes via Lazarus wrote: > This is <lazarus>/ide/lazarus.lpi, where <lazarus> is directory with > whole Lazarus repo right? Yes, sorry. > Because my code I added there is not compiled. I added my files to > <lazarus>/interfaces/lcl.lpk. Why did you add files to the LCL? That's quiet unusual. > When I build the IDE from tools menu, my > code is compiled. But when I open the above-mentioned project, it runs > but behaves differently. Check Tools/ Options / Lazarus directory. The lazarus.lpi runs the default lazarus.exe. Mattias

Reply by email

Mattias Gaertner
to Lubos Pintes
Hi, I think the file is malformed somehow. Yes, indeed it runs the default Lazarus, but it is unable to build it.

The lazarus.lpi does not contain the installed packages, so it cannot build the IDE.
Use Tools / Build Lazarus to build Lazarus.

Mattias

Reply by email