socketsh.inc not found with trunk FPC lazarus / 11-Options ---------------------------------------------------------------------- hinst · 2014-10-28 12:21 When using Lazarus 1.2.7 with FreePascal trunk I keep getting this error: D:\FPC\FPC\packages\rtl-extra\src\win\sockets.pp(53,5) Error: include file not found "socketsh.inc" socketsh.inc file can be found in D:\FPC\FPC\packages\rtl-extra\src\inc I don't want to study this issue in depth; I just want a quick fix; I need to make Lazarus parser "see" this file. I tried adding the path to the file to Include files in Project settings. Surprisingly it does not work. Parser fails when I edit unit using Sockets unit. Btw, Sockets unit is supposed to work on Windows, right? ---------------------------------------------------------------------- marcov · 2014-10-28 12:46 sockets unit exists on Windows, for some reason your compiler decides to recompile it, while it shouldn't. Probably a lazarus misconfiguration (adding source to unit path directories) in combination with the -Ur safeguard missing in your trunk build. IOW the IDE should find the FPC source (for browsing and codetools) but the compiler NOT. ---------------------------------------------------------------------- hinst · 2014-10-28 12:56 Compiling succeeds; CodeTools parser fails; that is why I only need this file now to be detected by parser I have no errors with compiler; I only have error when pressing Ctrl+Space for code completion ---------------------------------------------------------------------- engkin · 2014-10-28 14:08 I guess your CodeTools needs to "Rescan FPC Source Directory" Under Tools ---------------------------------------------------------------------- hinst · 2014-10-28 14:23 It does not help, I did it several times already  ---- this has something to do with FPC trunk, maybe some files were moved at some point. I just need to add the path manually for now