Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/serverprotocol/PasLS.LazConfig.pas
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,8 @@ procedure TLazProjectConfig.GuessCodeToolConfig;
begin
Doc := nil;
try
FN:=Dir + DirectorySeparator + 'environmentoptions.xml';
// This way we ensure we don't have 2 backslashes on the path
FN:= IncludeTrailingPathDelimiter(Dir) + 'environmentoptions.xml';
if FileExists(FN) and LoadLazConfig(FN) then
begin
EnvironmentOptions := Root.FindNode('EnvironmentOptions');
Expand All @@ -984,7 +985,10 @@ procedure TLazProjectConfig.GuessCodeToolConfig;
FreeAndNil(Doc);
end;
try
if LoadLazConfig(Dir + DirectorySeparator + 'fpcdefines.xml') then
// This way we ensure we don't have 2 backslashes on the path
FN:= IncludeTrailingPathDelimiter(Dir) + 'fpcdefines.xml';
// Before this change, there were a lot of errors reported
if FileExists(FN) and LoadLazConfig(FN) then
begin
FPCConfigs := Root.FindNode('FPCConfigs');
Item1 := nil;
Expand Down