Closed astubbs closed 9 years ago
Has it been compiled with a compatibility of java 8 or something?
Ah I see. So intellij on osx is only released for 1.6, and doesn't run in the environment set jre. I tried forcing it to 1.7 and no go, idea doesn't work. So it looks like the plugin is compiled for target 1.7? Perhaps it should be 1.4?
I'm guessing you're on windows or Linux? Apparently intellij is out for 1.7 on those platforms.
Since JDK 6 has been declared end-of-life quite some time ago, I didn't figure requiring JDK 7 would be a problem for anyone.
I found this thread on StackOverflow about running IDEA with JDK 7: http://stackoverflow.com/questions/13019199/how-do-i-run-idea-intellij-on-mac-os-x-with-jdk-7
However, there seem to be some issues with that.
I'll see how much work it would be to compile it for Java 6, with some luck, it's just a matter of changing a few lines to get it working. But since the plugin also uses code from the doclet, this would actually mean to "backport" everything to Java 6, and I don't know about the 3rd party libraries. I'll look into it.
Ha, yeah, apparently it still is for jetbrains.
Ah, you should be able to target 1.6 while keeping the source level 1.7?
On 24/08/2013, at 6:16 AM, Raffael Herzog notifications@github.com wrote:
Since JDK 6 has been declared end-of-life quite some time ago, I didn't figure requiring JDK 7 would be a problem for anyone.
I found this thread on StackOverflow about running IDEA with JDK 7: http://stackoverflow.com/questions/13019199/how-do-i-run-idea-intellij-on-mac-os-x-with-jdk-7
However, there seem to be some issues with that.
I'll see how much work it would be to compile it for Java 6, with some luck, it's just a matter of changing a few lines to get it working. But since the plugin also uses code from the doclet, this would actually mean to "backport" everything to Java 6, and I don't know about the 3rd party libraries. I'll look into it.
— Reply to this email directly or view it on GitHub.
Ah buggah - you can't backwards compile 1.7 :/ http://stackoverflow.com/questions/7661980/compiling-java-7-to-java-6
Ok, well I did the backport to 1.6, compiled, installed, but i get this exception trying to look at the options pane:
null
java.lang.NullPointerException
at ch.raffael.doclets.pegdown.integrations.idea.PegdownDocletOptionsForm.<init>(PegdownDocletOptionsForm.java:86)
at ch.raffael.doclets.pegdown.integrations.idea.PegdownConfigurable.createComponent(PegdownConfigurable.java:60)
at com.intellij.openapi.options.ex.ConfigurableWrapper.createComponent(ConfigurableWrapper.java:111)
at com.intellij.openapi.options.newEditor.OptionsEditor$Simple.<init>(OptionsEditor.java:1270)
at com.intellij.openapi.options.newEditor.OptionsEditor.initConfigurable(OptionsEditor.java:455)
at com.intellij.openapi.options.newEditor.OptionsEditor.access$2500(OptionsEditor.java:68)
at com.intellij.openapi.options.newEditor.OptionsEditor$9$1$1.run(OptionsEditor.java:424)
at com.intellij.openapi.application.impl.ApplicationImpl.runEdtSafeAction(ApplicationImpl.java:1130)
at com.intellij.openapi.options.newEditor.OptionsEditor$9$1.run(OptionsEditor.java:418)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:940)
at com.intellij.openapi.options.newEditor.OptionsEditor$9.run(OptionsEditor.java:416)
at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:454)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:680)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:152)
Hi @Abnaxos, any further inputs on this? My team has been using my patched version since i posted here, all going well.
Would love to use this plugin with my team too, and we have the same problem. I also made the source changes to compile (and make the tests pass) on Java 6, with the intention of submitting a pull request, when I discovered @astubbs' pull request already here and waiting for review for 10 months. @Abnaxos, are you still maintaining this project?
@Abnaxos unfortunately Idea still does not run on 1.7 on OSX. So I'd like to get these patches in to change to 1.6.
@Abnaxos , please stop being stubborn about this. It's really not a big deal to make the code backwards compatible. Here is more information from Intellij on why they can't use anything higher than 1.6 on OSX:
Current JDK 1.7 and 1.8 versions have several critical issues. We can't default to the new JDK version until these issues are resolved. Please check the list of the known issues below:
Always enabled discrete GPU which drains battery for laptop users Broken subpixel antialiasing Mac OS X keyboard shortcuts with alt don't work under Oracle Java 7 Crash when navigate to class with java 7 IDE hangs during startup Frequent crashes Crash after a few hours of work Crash with EXC_BAD_ACCESS (SIGABRT) Crash on system sleep Crash on JDK 1.8.0_25 Native crash after several days of work Cannot retrieve host name issue
Cross-posting from PR #19:
Looks like we're finally getting close to IntelliJ on Mac OS X with non-Apple Java. As of 2015-10-01, here is the support page detailing the list of open issues, most of which are fixed now. Also, the IDEA 15 preview is available today, and it uses Java 8. The JetBrains team apparently gave up on waiting for Oracle to fix the various problems and is shipping with a patched JDK.
As commented on the plugin page: http://plugins.jetbrains.com/plugin/7253?pr=