CodeTools Error lazarus / 9-Editor ---------------------------------------------------------------------- Jurassic Pork · 2021-09-07 00:45 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 : QuoteCodetools - 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][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i  private class threadvar f_savethreadstate: PPyThreadState; if i put : Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i private class var f_savethreadstate: PPyThreadState;it is OK. CodeTools seems to not know the reserved word threadvar. Friendly, J.P ---------------------------------------------------------------------- PascalDragon · 2021-09-07 07:13 This is already fixed in Lazarus 2.3. I didn't test the release candidate for 2.2 however.