|
|
|
Peter, please try to remove the /tmp/.jnilib files (if any) and ~/Library/Caches/IntelliJIDEA80/HtmlPreview and reinstall html preview.
@alexey:
I did as you said but still the same error... didn't help! Still broken in #8637
Without HTML preview my web application development doesn't work , therefore I won't upgrade to 8 build #8637
mac os x 10.5 leopard, jdk 1.5.0_13 hotspot client vm, macbook pro core 2 duo 2.33 ghz, 2gb createPeer Peter, the Jira formatter removed the star char from the filename, so did you tried to remove any files from /tmp which has a 'jnilib' extension? File should be named like 'libCocoa2JavaEmbeddingUtil.jnilib'. Please, verify one more time and reinstall preview.
There wasn't any *.jnilib file ... So I could not remove any... Also I removed the complete ~/Library/Caches/IntelliJIDEA80 directory (which includes HTMLPreview) ...
I did this:
All that didn't change anything and the error is still there! Build #8650 is still broken!
Without this core feature I doubt any web developer on mac will ever switch to version 8... wiped these directories
~/Library/Caches/IntelliJIDEA80 ~/Library/Preferences/IntelliJIDEA80 installed Diana #8660 fresh out-of-the-box downloaded HTML Preview: Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(551,265),button=1,modifiers=Button1,clickCount=1] on frame2: createPeer so still broken! I am having the same issue with the new IntelliJ IDEA 8.0M1 Build #8664
When coding an XHTML file the preview is not working. OK, Peter, try to remove .JxBrowser directory from your home, it may help.
Removing .JxBrowser + cache directory didn't help. I know of at least one other guy using OS X who has the same problem. did you ever test it on mac for yourself? I can't imagine this plugin works on any OS X 10.5...
obviously the error tells us that the plugin tries to use some native os x function called 'createPeer' which doesn't exist. which library is that? what version does the plugin require? what is the version delivered with current idea / os x? I really try to help if I can... Peter, it may sounds funny, but the person (me) who maintains the Mozilla Browser plugin is running OS X 10.5 at his box. And everything is just OK.
It seems like I have to explain you something about that plugin. We're not developing it, we just provide an integration of a third-party component with IDEA and you have to be sure we're doing our best to make it work right, but the OS X is not the major platform for that third-party company, and (they're officially report that) OS X version of the component still contains some issues which may cause instability and crashing of the plugin. We will continue to research your problem and I will report here about the progress. Thanks for your patience. Peter, lets try to repeat all of the steps:
1. shutdown idea 7. if something goes wrong again, check if there is a libCocoa2JavaEmbeddingUtil_JxB10.jnilib file in /tmp [it should be there!] Please, tell me that happens after all of these steps. Thank you! And Peter, just to be sure: I hope you're running Idea in 32bit mode? There is no Mozilla Browser support for 64bit yet (and, unfortunately, it seems like there will be no 64bit support for Mozilla in upcoming Idea 8.0). If you're running java in 64bit mode, please try to start it in 32bit mode with java -d32 key.
Ok...
[x] shutdown IDEA So yes, Alexey, it still happens after all this steps. P.S.: My OS X 10.5.5 is running on a MacBook Pro 15" Intel 2.33GHz Core 2 Duo 4GB Same problem here on OS 10.5.5 on Macbook (Intel 2.2 GHz Core 2 Duo 4GB) with Diana #8890. I can verify that it works in Idea 7.0.4, however I'm trying idea for this project in order to use the integrated javascript debugger – which also fails. Please let me know if I can get you more information to help resolve this.
HTMLPreview Traceback createPeer The error when HTMLPreview gets started from javascript debugger. Assertion failed: java.lang.IllegalStateException: Cannot change platform settings after initialization |
||||||||||||||||||||||||||||||||||||||
java.lang.UnsatisfiedLinkError: com.teamdev.macosx.cocoa.embedded.EmbeddedView.createPeer()I
at com.teamdev.macosx.cocoa.embedded.EmbeddedView.createPeer(Native Method)
at com.teamdev.macosx.cocoa.embedded.EmbeddedView.createNSView(SourceFile:13)
at com.apple.eawt.CocoaComponent.createNSViewLong(CocoaComponent.java:92)
at apple.awt.CToolkit.createCanvas(CToolkit.java:353)
at java.awt.Canvas.addNotify(Canvas.java:74)
at com.teamdev.macosx.cocoa.embedded.AbstractEmbeddedView.addNotify(SourceFile:84)
at java.awt.Container.addNotify(Container.java:2636)
at javax.swing.JComponent.addNotify(JComponent.java:4683)
at java.awt.Container.addNotify(Container.java:2636)
at javax.swing.JComponent.addNotify(JComponent.java:4683)
at java.awt.Container.addNotify(Container.java:2636)
at javax.swing.JComponent.addNotify(JComponent.java:4683)
at javax.swing.JRootPane.addNotify(JRootPane.java:735)
at java.awt.Container.addNotify(Container.java:2636)
at java.awt.Window.addNotify(Window.java:638)
at java.awt.Frame.addNotify(Frame.java:469)
at java.awt.Window.show(Window.java:823)
at java.awt.Component.show(Component.java:1422)
at java.awt.Component.setVisible(Component.java:1375)
at java.awt.Window.setVisible(Window.java:806)
at com.teamdev.xpcom.impl.awt.AwtMacPlatform$b.<init>(SourceFile:50)
at com.teamdev.xpcom.impl.awt.AwtMacPlatform$b.a(SourceFile:59)
at com.teamdev.xpcom.impl.awt.AwtMacPlatform.getMessageLoop(SourceFile:113)
at com.teamdev.xpcom.Xpcom.initialize(SourceFile:92)
at com.teamdev.xpcom.Xpcom.initialize(SourceFile:62)
at org.jetbrains.idea.browser.impl.HtmlPreviewApplicationComponent.initMozilla(HtmlPreviewApplicationComponent.java:138)
at org.jetbrains.idea.browser.impl.HtmlPreviewApplicationComponent.createBrowserComponent(HtmlPreviewApplicationComponent.java:281)
at org.jetbrains.idea.browser.ui.HtmlBrowserComponentBase.createMainPanel(HtmlBrowserComponentBase.java:146)
at org.jetbrains.idea.browser.ui.HtmlBrowserComponentBase.getComponent(HtmlBrowserComponentBase.java:104)
at org.jetbrains.idea.browser.ui.BrowserEditor.selectNotify(BrowserEditor.java:99)
at com.intellij.openapi.fileEditor.impl.EditorComposite$3.selectionChanged(EditorComposite.java:5)
at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:101)
at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:181)
at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:186)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:173)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:170)
at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:165)
at com.intellij.util.messages.impl.MessageBusImpl.access$000(MessageBusImpl.java:39)
at com.intellij.util.messages.impl.MessageBusImpl$2.invoke(MessageBusImpl.java:105)
at $Proxy68.selectionChanged(Unknown Source)
at com.intellij.openapi.fileEditor.impl.EditorComposite.a(EditorComposite.java:93)
at com.intellij.openapi.fileEditor.impl.EditorComposite.access$300(EditorComposite.java:57)
at com.intellij.openapi.fileEditor.impl.EditorComposite$MyChangeListener.stateChanged(EditorComposite.java:7)
at com.intellij.ui.TabbedPaneWrapper$TabbedPane.fireStateChanged(TabbedPaneWrapper.java:28)
at javax.swing.JTabbedPane$ModelListener.stateChanged(JTabbedPane.java:253)
at javax.swing.DefaultSingleSelectionModel.fireStateChanged(DefaultSingleSelectionModel.java:116)
at javax.swing.DefaultSingleSelectionModel.setSelectedIndex(DefaultSingleSelectionModel.java:50)
at javax.swing.JTabbedPane.setSelectedIndexImpl(JTabbedPane.java:599)
at javax.swing.JTabbedPane.setSelectedIndex(JTabbedPane.java:574)
at com.intellij.ui.TabbedPaneWrapper$TabbedPane.setSelectedIndex(TabbedPaneWrapper.java:72)
at javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.mousePressed(BasicTabbedPaneUI.java:3607)
at javax.swing.plaf.basic.BasicTabbedPaneUI$MouseHandler.mousePressed(BasicTabbedPaneUI.java:3761)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
at java.awt.Component.processMouseEvent(Component.java:6123)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5891)
at java.awt.Container.processEvent(Container.java:2102)
at java.awt.Component.dispatchEventImpl(Component.java:4497)
at java.awt.Container.dispatchEventImpl(Container.java:2160)
at java.awt.Component.dispatchEvent(Component.java:4327)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4366)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4027)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3960)
at java.awt.Container.dispatchEventImpl(Container.java:2146)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4327)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:16)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:110)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:112)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:300)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:210)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:195)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:187)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)