IDE creates bad *.lrs files
Original Reporter info from Mantis: EugenE
-
Reporter name: Eugen Bolz
Original Reporter info from Mantis: EugenE
- Reporter name: Eugen Bolz
Description:
I'm using a virtual machine to compile my program also on Linux (normally im under Windows)
And if I move a TForm the IDE creates a bad *.lrs like this:
LazarusResources.Add('TForm1','FORMDATA',[
'TPF0'#6'TForm1'#5'Form1'#4'Left'#3#204#0#6'Height'#3'N'#1#3'Top'#3#176#0#5'W'
... // removed by me
+'lickDir'#7#6'cdDown'#7'Command'#2#15#9'MoveCaret'#8#6'Option'#2#0#0#1#5'Shi'
+'ft'#11#0#9'ShiftMask'#11#6'ssCtrl'#0#6'Button'#7#6'mbLeft'#10'ClickCount'#7
+#5'ccAny'#8'ClickDir'#7#6'cdDown'#7'Command'#2#15#9'MoveCaret'#8#6'Option'#2
+#1#0#0#0#0#0#0#9'TMainMenu'#9'MainMenu1'#4'left'#2#30#3'top'#2#10#0#9'TMenuI'
+'tem'#9'MenuItem1'#7'Caption'#6#9'New Item1'#0#0#0#0
]);
#30#3'top'#2#10#0#9'TMenuItem'#9'MenuItem1'#7'Caption'#6#9'New Item1'#0
+#0#0#0
]);
Windows Vista
Lazarus SVN-Latest
Kubuntu 9.04 ( on a virtual machine, project folder mounted under /mnt/lazarus)
Lazarus SVN-Lates
Steps to reproduce:
- Open the Project under Windows
- Move the Form
- Build the Project -> No Error
- Close Lazarus
- Open the Project under Kubuntu
- Build the Project -> should be no error
- Move the Form
- Build the Project -> Now an Error
- the *.lrs File will be opened with this error messages:
Compiling project1.lpr
Compiling unit1.pas
unit1.lrs(254,1) Error: Illegal expression
unit1.lrs(254,1) Fatal: Syntax error, ";" expected but "]" found
but this opened file doesnt seems to be with a syntax error?
-
close the *.lrs file and a Question comes up ( dont know the real text, cause using translation ) content changed of file *.lrs -> dont save it and close it
-
reopen the *.lrs file and you will see something like this:
... // removed by me
+#15#9'MoveCaret'#8#6'Option'#2#1#0#0#0#0#0#0#9'TMainMenu'#9'MainMenu1'#4'lef'
+'t'#2#30#3'top'#2#10#0#9'TMenuItem'#9'MenuItem1'#7'Caption'#6#9'New Item1'#0
+#0#0#0
]);
#8#6'Option'#2
+#1#0#0#0#0#0#0#9'TMainMenu'#9'MainMenu1'#4'left'#2#30#3'top'#2#10#0#9'TMenuI'
+'tem'#9'MenuItem1'#7'Caption'#6#9'New Item1'#0#0#0#0
]);
Mantis conversion info:
- Mantis ID: 13931
- Version: 0.9.27 (SVN)
- Fixed in revision: 20512 (#e88c1fad)
- Target version: 0.9.28