Using the Lazarus IDE => Editor => Topic started by: Jurassic Pork on September 07, 2021, 02:45:19 am

Title: CodeTools Error
Post by: Jurassic Pork on September 07, 2021, 02:45:19 am
i have a project with a form (Lazarus 2.0.12 , windows). In this form, I use the component TPythonEngine from the package Python4Lazarus. When i want to define an OnActivate event in the form properties , i have this error :
Codetools - Erreurs : 1
PythonEngine.pas(2617,17) Error: procedure prévu, mais threadvar trouvé
(waiting procedure, threadvar found) on this line of the PythonEngine.pas :
Code: Pascal  [Select][+][-]
  1.  private class threadvar f_savethreadstate: PPyThreadState;
if i put :
Code: Pascal  [Select][+][-]
  1. private class var f_savethreadstate: PPyThreadState;
it is OK.

CodeTools seems to not know the reserved word threadvar.

Friendly, J.P
Title: Re: CodeTools Error
Post by: PascalDragon on September 07, 2021, 09:13:00 am
This is already fixed in Lazarus 2.3. I didn't test the release candidate for 2.2 however.
TinyPortal © 2005-2018