Recent

Author Topic: CodeTools Error  (Read 2874 times)

Jurassic Pork

  • Hero Member
  • *****
  • Posts: 1228
CodeTools Error
« on: September 07, 2021, 02:45:19 am »
hello,
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 :
Quote
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
« Last Edit: September 07, 2021, 02:47:08 am by Jurassic Pork »
Jurassic computer : Sinclair ZX81 - Zilog Z80A à 3,25 MHz - RAM 1 Ko - ROM 8 Ko

PascalDragon

  • Hero Member
  • *****
  • Posts: 5486
  • Compiler Developer
Re: CodeTools Error
« Reply #1 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