View Issue Details

IDProjectCategoryView StatusLast Update
0035470LazarusIDEpublic2019-08-08 13:15
Reporterantispam88Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformOSWindows 10 Pro 64OS Version1803
Product Version2.0.2Product Buildr60954 
Target VersionFixed in Version 
Summary0035470: Run parameters are not set in lps file after upgrade from 1.8.4
DescriptionAfter the upgrade the run parameters which are defined in project file are not set for execution.
But just opening the "Run parameters" dialog and confirming it with OK without changing any value corrects the issue.
Here is the difference in the lps file:
    <RunParams>
      <FormatVersion Value="2"/>
      <Modes Count="0" ActiveMode=""/>
    </RunParams>
vs.
    <RunParams>
      <FormatVersion Value="2"/>
      <Modes Count="0" ActiveMode="default"/>
    </RunParams>
Steps To ReproduceOpen a project created with 1.8.4 where one or more parameters are defined and run the project.
TagsNo tags attached.
Fixed in Revision
LazTarget
WidgetsetWin32/Win64
Attached Files

Activities

Juha Manninen

2019-04-30 14:37

developer   ~0115920

Upload an example project please.
The <RunParams> tag in your description has no actual parameters.

antispam88

2019-04-30 16:41

reporter   ~0115924

In the lps file there are no run params stored.
In the lpi file there is following section:
    <RunParams>
      <local>
        <CommandLineParams Value="-test1"/>
      </local>
      <FormatVersion Value="2"/>
      <Modes Count="1">
        <Mode0 Name="default">
          <local>
            <CommandLineParams Value="-test1"/>
          </local>
        </Mode0>
      </Modes>
    </RunParams>

If you need a sample project I have to set up the old lazarus version.

antispam88

2019-08-07 23:34

reporter   ~0117589

Sorry for my late answer, but I tried to create an example after my last post - without success.

Now I have installed 2.0.4 on a fresh notebook and got the same error.
I could create a working example (attachement).
If you open the lpi file and just run it should show "'Params: 0". After close + open lazarus again running the project should show then "Params: 1".

project1.zip (129,180 bytes)

Anton Kavalenka

2019-08-08 13:13

reporter   ~0117591

Can confirm the same for Linux. Debugging requires external xserver specified in run options. It will work only if I open run options.

New projects not affected by this problem.

Issue History

Date Modified Username Field Change
2019-04-29 22:59 antispam88 New Issue
2019-04-30 14:37 Juha Manninen Note Added: 0115920
2019-04-30 16:41 antispam88 Note Added: 0115924
2019-08-07 23:34 antispam88 File Added: project1.zip
2019-08-07 23:34 antispam88 Note Added: 0117589
2019-08-08 13:13 Anton Kavalenka Note Added: 0117591