MenthorTools / menthor-editor

Menthor Editor
30 stars 7 forks source link

Mensagem de erro gerada ao rodar o menthor no Mac #19

Open tgoprince opened 8 years ago

tgoprince commented 8 years ago

Alguma coisa que fazemos na hora de criar os menus está dando um erro. Não sei dizer se afeta ou não a aplicação.

MacBook-Pro-de-Tiago:Build tiagoprince$ java -jar menthor-1.1.0-test.jar Adding to classpath: rsrc:swt-mac-x64.jar Extracted: /Users/tiagoprince/Google Drive/Menthor/Desenvolvimento/Build/./alloy4.2.jar SWT loaded from org.eclipse.swt.widgets.Display in rsrc:swt-mac-x64.jar 2015-08-11 17:04:51.159 java[20291:5986798] _createMenuRef called with existing principal MenuRef already associated with menu 2015-08-11 17:04:51.160 java[20291:5986798] ( 0 CoreFoundation 0x00007fff93a8c03c exceptionPreprocess + 172 1 libobjc.A.dylib 0x00007fff8df9576e objc_exception_throw + 43 2 CoreFoundation 0x00007fff93a8beed +[NSException raise:format:] + 205 3 AppKit 0x00007fff94f61e6e -[NSCarbonMenuImpl _createMenuRef] + 62 4 AppKit 0x00007fff94f617c8 -[NSCarbonMenuImpl _instantiateCarbonMenu] + 139 5 AppKit 0x00007fff94f60052 -[NSApplication finishLaunching] + 947 6 libosxapp.dylib 0x000000011babb1a4 -[NSApplicationAWT finishLaunching] + 683 7 libswt-pi-cocoa-4332.jnilib 0x0000000126c2a9ee Java_org_eclipse_swt_internal_cocoa_OS_objc_1msgSendSuperLorg_eclipse_swt_internal_cocoa_objc_1super_2J + 89 8 ???

tgoprince commented 8 years ago

Achei um link (http://sourceforge.net/p/djproject/bugs/68/) com a seguinte dica:

On Mac OS X, AWT initializers must not have run before the SWT one so you have to call those 2 statements in this order: NativeInterface.open(); UIUtils.setPreferredLookAndFeel();

BernardoFBBraga commented 8 years ago

@tgoprince , acho que era um erro de classpath do projeto antipatterns. Agora com o novo sistema de classpath devemos evitar esse tipo de erro. Favor validar se o erro sumiu

Porém, um outro erro agora emerge, diferente. screen shot 2015-08-26 at 12 42 35 pm

BernardoFBBraga commented 8 years ago

https://bugs.eclipse.org/bugs/show_bug.cgi?id=469745 https://bugs.eclipse.org/bugs/show_bug.cgi?id=418245 essas duas threads discutem esse problema. parece que o swing mudou a forma de implementar no mac e o swt ficou pra trás. Realmente, a saída que @tgoprince botou parece ser a certa

johnguerson commented 8 years ago

resolvido @tgoprince @BernardoFBBraga ?

BernardoFBBraga commented 8 years ago

@johnguerson ainda não está resolvido..