Code completion does not work when using jwaWindows (Solution included) lazarus / 34-Windows ---------------------------------------------------------------------- tboege · 2022-10-14 15:35 It seems, that FPC 2.2.0 have a bug. Alle the files in 'C:\lazarus\fpc\3.2.2\source\packages\winunits- jedi\src' are named in lowercase, but the unit name in the files are in mixed case  (eg jwawinnetwk.pas vs "Unit JwaWinNetWk;" inside the file. Whenever I press ctrl-space to get a completion, it fails with a "CodeTool" error. I dit not manae to fix the source code, but renamed the files with powershell. Code: Text  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i $src='C:\lazarus\fpc\3.2.2\source\packages\winunits-jedi\src'$files= Get-ChildItem -Path $srcforeach ($file in $files){$FileContent=((Get- Content $file.FullName -First 50 ) -match "Unit .*;") -replace "Unit (.*);",'$1' if ($FileContent) {    $correctFileName= "$FileContent$($File.Extension)"   if ($File.Name -cne  $correctFileName) {     $File.Name +' '+  "$FileContent$($File.Extension)"     Rename-Item -path $File.FullName -NewName $correctFileName    } } } Please file a bug, if you know how to do it... ---------------------------------------------------------------------- PascalDragon · 2022-10-16 14:25 Quote from: tboege on October 14, 2022, 05:35:56 pmIt seems, that FPC 2.2.0 have a bug. Alle the files in 'C:\lazarus\fpc\3.2.2\source\packages\winunits- jedi\src' are named in lowercase, but the unit name in the files are in mixed case  (eg jwawinnetwk.pas vs "Unit JwaWinNetWk;" inside the file. This is not a bug, that is by choice (the names are not case sensitive). If something doesn't work for you then there's a different problem. ---------------------------------------------------------------------- Martin_fr · 2022-10-16 18:11 Quote from: tboege on October 14, 2022, 05:35:56 pmAlle the files in 'C:\lazarus\fpc\3.2.2\source\packages\winunits-jedi\src' are named in lowercase, but the unit name in the files are in mixed case  (eg jwawinnetwk.pas vs "Unit JwaWinNetWk;" inside the file. Whenever I press ctrl-space to get a completion, it fails with a "CodeTool" error. I dit not manae to fix the source code, but renamed the files with powershell. Codetools doesn't care about the case. (If renaming the files had an effect on your issue, then it was by coincidence => i.e., it triggered something else in addition). Codetool will show an error in the "messages window" => you did not include what error you were getting. Maybe codetool had outdated info cached (if you changed fpc version). Try the "Tools" menu: "Rescan fpc source directory". (changing the case in the file name, or maybe touching their datestamp may have triggered this) ---------------------------------------------------------------------- tboege · 2022-10-17 00:28 Strange, I have tried to revert to the original src-directory and tried  "Rescan fpc source directory" - but then i cannot get definitions, when I CTRL-mouseclick on a procedure from jwaWindows. When I change back to the source directory with the cases changed, It works immidialty - without rerunning "Rescan fpc source directory". For me, it is not a problem, since I can get it working in my env. Thank you for your suggestions. ---------------------------------------------------------------------- Martin_fr · 2022-10-17 10:03 That would maybe indicate a bug in code tools. I have plenty of units with lowercase filenames, but mixed case unit names. One think that does afaik not work would be, if you have a case- sensitive filesystem (e.g. linux / Windows normally is case- insensitive) AND you have mixed case filenames that differ from the unitname "unit FooBar" saved as /usr/home/m/fooBAR.pas