[fpc-devel] Failing Lazarus Codetools Pas2JS-related tests - again

Maxim Ganetsky ganmax at narod.ru
Mon Mar 18 20:46:04 CET 2024


18.03.2024 22:15, Mattias Gaertner via fpc-devel пишет:
> 
> 
> On 18.03.24 18:43, Maxim Ganetsky via fpc-devel wrote:
>> [...]
>> After recent update of FPC 3.3.1 (and Pas2JS) in Lazarus CI several 
>> Codetools tests related to Pas2JS started failing again:
>>
>> TTestPas2js.TestPas2js_ReadSettings: pas2js system unit not found
>> TTestPas2js.TestPas2js_FindDeclaration: pas2js system unit not found
>> TTestPas2js.TestPas2js_FindDeclaration_AWait: pas2js system unit not 
>> found
>>
>> They worked fine with FPC 3.3.1 from the end of December.
>>
>> Contents of Pas2JS configuration files follow:
>>
>> [...]
>> #7 1429.0 #else
>> ||
>> #7 1429.0 -Fu$CfgDir/../lib/fpc/3.3.1/pas2js/*/*/src
> 
> This should be enough
> -Fu$CfgDir/../lib/fpc/3.3.1/pas2js/packages/*/src
> 
>> [...]
> Can you compile a simple Helloworld?
> 
> begin
>    writeln('Hi');
> end.

Note that these failures are encountered in our CI system. I didn't 
test, but guess that compiling Helloworld will fail (because system unit 
cannot be found).

> ?
> 
> If this works, you might try removing the 
> components/codetools/tests/codetools.config, so codetools rebuild the 
> cache.

These failures happen inside CI, so there is always a clean checkout 
without this file.

-- 
Best regards,
  Maxim Ganetsky                  mailto:ganmax at narod.ru



More information about the fpc-devel mailing list