View Issue Details

IDProjectCategoryView StatusLast Update
0035184LazarusIDEpublic2019-03-08 13:10
ReporterLagunov Aleksey Assigned ToMattias Gaertner  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version2.1 (SVN) 
Summary0035184: error on startlazarus
Descriptionon fedora linux x64

lazarus]$ ./startlazarus
 is a file
TLazarusManager.Run starting /usr/local/share/lazarus/lazarus ...
[FORMS.PP] ExceptionOccurred
  Sender=EProcess
  Exception=Cannot execute empty command-line
  Stack trace:
  $000000000070A529 MAKECOMMAND, line 186 of fcl-process/src/unix/process.inc
  $000000000070AD03 EXECUTE, line 330 of fcl-process/src/unix/process.inc
  $0000000000496E46 EXECUTE, line 448 of lazarusmanager.pas
  $0000000000496A2A RUN, line 400 of lazarusmanager.pas
  $000000000041F092 main, line 53 of startlazarus.lpr

Revision 60532 work normal
TagsNo tags attached.
Fixed in Revision60577.
LazTarget-
Widgetset
Attached Files

Relationships

has duplicate 0035201 resolvedJuha Manninen Lazarus Startup Error 

Activities

Lagunov Aleksey

2019-03-04 06:39

reporter   ~0114611

error on revision 60535
60534 work normal

Juha Manninen

2019-03-04 07:58

developer   ~0114612

r60535 is by Mattias:
 "IDE: fixed checking type of compiler (fpc/pas2js), fixed quoting compiler filename, improved error handling"

Cyrax

2019-03-04 08:42

reporter  

lazarusmanager.pas.diff (503 bytes)   
diff --git a/ide/lazarusmanager.pas b/ide/lazarusmanager.pas
index 2aaef8a9e7..87b8e1534a 100644
--- a/ide/lazarusmanager.pas
+++ b/ide/lazarusmanager.pas
@@ -429,8 +429,8 @@ begin
   FProcess.Options := [];
   FProcess.ShowWindow := swoShow;
   Params:=TStringListUTF8.Create;
-  Params.Add(LazarusPath);
   SplitCmdLineParams(CommandLine,Params);
+  FProcess.Executable:=LazarusPath;
   FProcess.Parameters:=Params;
   Params.Free;
   if (EnvOverrides<>nil) and (EnvOverrides.Count>0) then
-- 
2.20.1
lazarusmanager.pas.diff (503 bytes)   

Cyrax

2019-03-04 08:43

reporter   ~0114616

Attached patch that will fix this bug.

Mattias Gaertner

2019-03-04 09:01

manager   ~0114617

My fault, sorry.
Thanks for the fix.

Lagunov Aleksey

2019-03-04 09:45

reporter   ~0114618

work ok. thx.

Issue History

Date Modified Username Field Change
2019-03-04 06:29 Lagunov Aleksey New Issue
2019-03-04 06:39 Lagunov Aleksey Note Added: 0114611
2019-03-04 07:58 Juha Manninen Note Added: 0114612
2019-03-04 07:58 Juha Manninen Assigned To => Mattias Gaertner
2019-03-04 07:58 Juha Manninen Status new => assigned
2019-03-04 08:42 Cyrax File Added: lazarusmanager.pas.diff
2019-03-04 08:43 Cyrax Note Added: 0114616
2019-03-04 09:01 Mattias Gaertner Fixed in Revision => 60577.
2019-03-04 09:01 Mattias Gaertner LazTarget => -
2019-03-04 09:01 Mattias Gaertner Note Added: 0114617
2019-03-04 09:01 Mattias Gaertner Status assigned => resolved
2019-03-04 09:01 Mattias Gaertner Resolution open => fixed
2019-03-04 09:45 Lagunov Aleksey Note Added: 0114618
2019-03-04 09:45 Lagunov Aleksey Status resolved => closed
2019-03-08 13:10 Juha Manninen Relationship added has duplicate 0035201