Forum > General

Bug in "startlazarus" ?

(1/2) > >>

bonmario:
Hi,
if i use this command

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---/usr/share/lazarus/default/lazarus /media/DiscoC/MyDir/MyProject.lprit starts lazarus and open my project

but if i use this command

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---/usr/share/lazarus/default/startlazarus /media/DiscoC/MyDir/MyProject.lprit only starts lazarus

It's correct or it's a bug?
I seem to remember that in the past "startlazarus" also opened the project received as a parameter.

Thanks, Mario

Bart:
Which Lazarus version?
starlazarus is supposed to pass commandline parameters to lazarus.

Bart

bonmario:
Sorry, you're right.
Thisi is my version: Lazarus 2.1.0 r65078M FPC 3.2.0 x86_64-linux-gtk2

The same also in Windows

Hi, Mario

Bart:
Maybe report this on the bugtracker?

In starlazarus.lpr there are these lines:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---            // if there is a lazarus instance accepting files, pass files to that            LazIDEInstances.PerformCheck;
So one might think that is is supposed to work.

Bart

Bart:
On windows for me this works as expected b.t.w.
Both commands open the same project.
(After the first I opende another project and closed Lazarus)

--- Code: ---C:\devel\lazarus>lazarus c:\Users\Bart\LazarusProjecten\eplus\eplus.lpi

C:\devel\lazarus>startlazarus c:\Users\Bart\LazarusProjecten\eplus\eplus.lpi
--- End code ---

Lazarus 2.1.0 r64844 FPC 3.2.2 i386-win32-win32/win64

Bart

Navigation

[0] Message Index

[#] Next page

Go to full version