mirror of https://gitlab.com/basile.b/dexed.git
upstream fix, false err after listing imports
This commit is contained in:
parent
edad9efe4c
commit
d7de93a500
|
@ -1319,10 +1319,10 @@ begin
|
||||||
LoadFromStream(proc.Stderr);
|
LoadFromStream(proc.Stderr);
|
||||||
Insert(0, format('%s crashed with code: %d',
|
Insert(0, format('%s crashed with code: %d',
|
||||||
[shortenPath(proc.Executable), proc.ExitStatus]));
|
[shortenPath(proc.Executable), proc.ExitStatus]));
|
||||||
|
str += ReplaceStr(Text, #0, #10);
|
||||||
str += 'parameters:'#10;
|
str += 'parameters:'#10;
|
||||||
str += proc.Parameters.Text;
|
str += proc.Parameters.Text;
|
||||||
str += 'stderr:'#10;
|
str += 'stderr:'#10;
|
||||||
str += ReplaceStr(Text, #0, #10);
|
|
||||||
raise Exception.Create(str);
|
raise Exception.Create(str);
|
||||||
finally
|
finally
|
||||||
free;
|
free;
|
||||||
|
|
|
@ -51,9 +51,9 @@ begin
|
||||||
prc.Input.Write(str[1], str.length);
|
prc.Input.Write(str[1], str.length);
|
||||||
prc.CloseInput;
|
prc.CloseInput;
|
||||||
processOutputToStrings(prc, imports);
|
processOutputToStrings(prc, imports);
|
||||||
|
while prc.Running do ;
|
||||||
// TODO-cmaintenance: remove this from version 3 gold
|
// TODO-cmaintenance: remove this from version 3 gold
|
||||||
tryRaiseFromStdErr(prc);
|
tryRaiseFromStdErr(prc);
|
||||||
while prc.Running do ;
|
|
||||||
finally
|
finally
|
||||||
prc.free;
|
prc.free;
|
||||||
end;
|
end;
|
||||||
|
@ -77,9 +77,9 @@ begin
|
||||||
prc.Execute;
|
prc.Execute;
|
||||||
prc.CloseInput;
|
prc.CloseInput;
|
||||||
processOutputToStrings(prc, results);
|
processOutputToStrings(prc, results);
|
||||||
|
while prc.Running do ;
|
||||||
// TODO-cmaintenance: remove this from version 3 gold
|
// TODO-cmaintenance: remove this from version 3 gold
|
||||||
tryRaiseFromStdErr(prc);
|
tryRaiseFromStdErr(prc);
|
||||||
while prc.Running do ;
|
|
||||||
finally
|
finally
|
||||||
prc.free;
|
prc.free;
|
||||||
end;
|
end;
|
||||||
|
|
|
@ -194,6 +194,7 @@ end;
|
||||||
|
|
||||||
function TLibraryItem.getModule(const value: string): TModuleInfo;
|
function TLibraryItem.getModule(const value: string): TModuleInfo;
|
||||||
begin
|
begin
|
||||||
|
//TODO-cFCL/LCL: use THashMap.GetValue from next FPC rlz
|
||||||
result := nil;
|
result := nil;
|
||||||
if fModulesByName.contains(value) then
|
if fModulesByName.contains(value) then
|
||||||
exit(fModulesByName.GetData(value));
|
exit(fModulesByName.GetData(value));
|
||||||
|
@ -429,6 +430,7 @@ end;
|
||||||
|
|
||||||
function TLibraryManager.getLibraryByAlias(const value: string): TLibraryItem;
|
function TLibraryManager.getLibraryByAlias(const value: string): TLibraryItem;
|
||||||
begin
|
begin
|
||||||
|
//TODO-cFCL/LCL: use THashMap.GetValue from next FPC rlz
|
||||||
result := nil;
|
result := nil;
|
||||||
if fItemsByAlias.contains(value) then
|
if fItemsByAlias.contains(value) then
|
||||||
exit(fItemsByAlias.GetData(value));
|
exit(fItemsByAlias.GetData(value));
|
||||||
|
|
Loading…
Reference in New Issue