Cocoa - when using context functions in Lazarus IDE: NSExtensionContext.inc: operator missing (+patch)
Original Reporter info from Mantis: Hansaplast
-
Reporter name: Hans Luijten
Original Reporter info from Mantis: Hansaplast
- Reporter name: Hans Luijten
Description:
After doing a clean build of FPC 3.3.1 from SVN and Lazarus IDE from SVN, I get the error: "NSExtensionContext.inc: operator missing" when using the context functions in the IDE (keyboard shortcut to jump to function or function declaration).
I've modified line 1 of NSExtensionContext.inc in the patch (see additional information), but I'm not 100% sure this would be the right fix, since I do not really use these particular compiler directives.
This did however fix the issue for me.
Also note that this is Cocoa specific, but since it comes with FPC under Packages, I figured I should post a bug under this category as well.
Steps to reproduce:
Download FPC from SVN, and do a clean build and install.
Additional information:
Seems that FPC is not linking line 1:
{$if defined(OBJC2)defined(interface)defined(NSExtensionContext)defined(NSObject)}
Changed it to:
{$if defined(OBJC2) and defined(interface) and defined(NSExtensionContext) and defined(NSObject)}
Mantis conversion info:
- Mantis ID: 36420
- OS: macOS
- OS Build: 10.15.1
- Build: 43670
- Platform: Cocoa
- Version: 3.3.1
- Fixed in version: 3.2.0
- Fixed in revision: 44232 (#e1d37acf)
- Monitored by: » Hansaplast (Hans Luijten)
- Target version: 3.2.0