Hi guys!
Thanks for all your responses! I’m not sure why the MOE_HOME error message is there, I’ve never used MOE before 1.3, so there shouldn’t be any old versions installed. I also tried to install the beta2 plugin from the JetBrains repository, same error
When I had my nbc file in another directory (that’s not ios), generating bindings gives me this output in the console:
2017-03-07 21:19:14:201 -0500 [main] DEBUG org.moe.natjgen.Main - NatJGen started
2017-03-07 21:19:14:700 -0500 [main] DEBUG org.moe.natjgen.Indexer - Clang options: [-arch, arm64, -x, objective-c, -fmessage-length=133, -std=c99, -fobjc-arc, -fpascal-strings, -DNS_BLOCK_ASSERTIONS=1, -DOBJC_OLD_DISPATCH_PROTOTYPES=0, -isysroot, /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk, -miphoneos-version-min=9.0, -I/Users/angelystor/Documents/work/workspace/TestMOE/xxx, -I/var/folders/g5/996fl3qn1014hhscpxd5rpjh0000gn/T/NatJGen4279452866164214530, -iquote/Users/angelystor/Documents/work/workspace/TestMOE/xxx]
2017-03-07 21:19:15:311 -0500 [main] DEBUG org.moe.natjgen.Indexer - Indexing translation unit
2017-03-07 21:19:19:518 -0500 [main] DEBUG org.moe.natjgen.Indexer - Clang options: [-arch, armv7, -x, objective-c, -fmessage-length=133, -std=c99, -fobjc-arc, -fpascal-strings, -DNS_BLOCK_ASSERTIONS=1, -DOBJC_OLD_DISPATCH_PROTOTYPES=0, -isysroot, /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk, -miphoneos-version-min=9.0, -I/Users/angelystor/Documents/work/workspace/TestMOE/xxx, -I/var/folders/g5/996fl3qn1014hhscpxd5rpjh0000gn/T/NatJGen4279452866164214530, -iquote/Users/angelystor/Documents/work/workspace/TestMOE/xxx]
2017-03-07 21:19:19:998 -0500 [main] DEBUG org.moe.natjgen.Indexer - Indexing translation unit
2017-03-07 21:19:22:324 -0500 [main] DEBUG org.moe.natjgen.CStructManager - c:@S@_CALayerIvars: Failed to merge secondary field types
2017-03-07 21:19:22:324 -0500 [main] DEBUG org.moe.natjgen.CStructManager - c:@S@__darwin_arm_neon_state64: Failed to merge secondary field types
2017-03-07 21:19:22:325 -0500 [main] DEBUG org.moe.natjgen.CStructManager - c:@S@arm_legacy_debug_state: Failed to merge secondary field types
2017-03-07 21:19:22:325 -0500 [main] DEBUG org.moe.natjgen.CStructManager - c:@S@__darwin_arm_neon_state: Failed to merge secondary field types
2017-03-07 21:19:22:330 -0500 [main] DEBUG org.moe.natjgen.Indexer - Generating classes
2017-03-07 21:19:22:778 -0500 [main] DEBUG org.moe.natjgen.Main - NatJGen ended in 8.57713922s
But no files are output, which I guess it’s expected since the file is not in the ios directory.
However, once I put the nbc file in the ios directory, I get the no MOE_HOME var error, and a further error indicating that it failed to invoke java in directory ‘null/tools’
This is making me scratch my head a lot because MOE is working, I can compile and run an iOS project and my Java methods are being invoked. And trying to generate bindings while outside ios folder didn’t throw me any error… yet when the file is in its proper place, it doesn’t work
I installed the sdk into ~/.m2/repository//moe-sdk
And I also have it present in ~/.moe/moe-sdk* (downloaded by the plugin I guess).
I’m not sure what option I’m trying to follow, since I’m really new to this plugin (was using RoboVM before). I basically just want to test how to generate bindings…