Forum > Debugger

How to set HostApplication with a relative path or something similar?

(1/4) > >>

EMBarbosa:
We have a  multiplataform lib (.dll/.so) that many devs are working on.

The code is on SVN/Git, so any dev checkout it in different folders/drivers.

But when we set the https://wiki.lazarus.freepascal.org/IDE_Window:_Run_parameters#Host_Application, Lazarus can't find the host application. The way I see, it doesn't respect macros or relative path.

Is it true? How we can configure the lib in a way it would work to any dev?

Martin_fr:
This is probably something that should be improved. Maybe add a bug-or-feature-request. So it will be known.

EMBarbosa:

--- Quote from: Martin_fr on December 25, 2022, 07:50:21 pm ---This is probably something that should be improved. Maybe add a bug-or-feature-request. So it will be known.

--- End quote ---
Thank you Martin.

I didn't looked for it before, but I found this one:

https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/32331

I don't know what the "Advice" in the title of this issue means, but as I see, it is already reported. Right?

Martin_fr:

--- Quote from: EMBarbosa on December 26, 2022, 09:41:22 pm ---
--- Quote from: Martin_fr on December 25, 2022, 07:50:21 pm ---This is probably something that should be improved. Maybe add a bug-or-feature-request. So it will be known.

--- End quote ---
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/32331

I don't know what the "Advice" in the title of this issue means, but as I see, it is already reported. Right?

--- End quote ---

Indeed, already there.

I have not tested, but it is possible that the "patch" https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/32331#note_638205833 still works.
It may not be the final solution, but it may at least give you some workaround.

EMBarbosa:

--- Quote from: Martin_fr on December 26, 2022, 10:05:57 pm ---I have not tested, but it is possible that the "patch" https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/32331#note_638205833 still works.
It may not be the final solution, but it may at least give you some workaround.

--- End quote ---

Thank you. I will try this patch.

But another thing that I tried to test is the option to "launching application".

When we check that option, then the "host application" should not be used at all, right? But the IDE checks if the file exists or if the host application parameter is empty.

If the IDE used only the cmd line provided below, then it everything would work, I think.

Navigation

[0] Message Index

[#] Next page

Go to full version