Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project compilation fails in IDEA 14 #53

Closed
mukhanov opened this issue Jul 22, 2014 · 11 comments
Closed

Project compilation fails in IDEA 14 #53

mukhanov opened this issue Jul 22, 2014 · 11 comments
Assignees
Milestone

Comments

@mukhanov
Copy link

Whole compilation workflow fails when plugin is enabled:

com.intellij.compiler.CompilerWorkspaceConfiguration.useOutOfProcessBuild()Z
java.lang.NoSuchMethodError: com.intellij.compiler.CompilerWorkspaceConfiguration.useOutOfProcessBuild()Z
at protobuf.compiler.PbPrecompileTask.execute(PbPrecompileTask.java:26)
at com.intellij.compiler.impl.CompileDriver.a(CompileDriver.java:622)
at com.intellij.compiler.impl.CompileDriver.access$400(CompileDriver.java:89)
at com.intellij.compiler.impl.CompileDriver$3.run(CompileDriver.java:414)
at com.intellij.compiler.progress.CompilerTask.run(CompilerTask.java:181)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:476)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:183)
at com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:218)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:217)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:170)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$8.run(ProgressManagerImpl.java:385)
at com.intellij.openapi.application.impl.ApplicationImpl$9.run(ApplicationImpl.java:446)
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:695)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:149)

java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:125)
at com.intellij.openapi.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1053)
at com.intellij.debugger.ui.breakpoints.BreakpointWithHighlighter.reload(BreakpointWithHighlighter.java:269)
at com.intellij.debugger.ui.breakpoints.BreakpointWithHighlighter.(BreakpointWithHighlighter.java:180)
at com.intellij.debugger.ui.breakpoints.LineBreakpoint.(LineBreakpoint.java:79)
at com.intellij.javascript.debugger.nashorn.NashornJsBreakpointHandlerFactory$NashornLineBreakpoint.(NashornJsBreakpointHandlerFactory.java:35)
at com.intellij.javascript.debugger.nashorn.NashornJsBreakpointHandlerFactory$NashornLineBreakpoint.(NashornJsBreakpointHandlerFactory.java:33)
at com.intellij.javascript.debugger.nashorn.NashornJsBreakpointHandlerFactory$1.createJavaBreakpoint(NashornJsBreakpointHandlerFactory.java:27)
at com.intellij.debugger.engine.JavaBreakpointHandler.registerBreakpoint(JavaBreakpointHandler.java:46)
at com.intellij.xdebugger.impl.XDebugSessionImpl.a(XDebugSessionImpl.java:388)
at com.intellij.xdebugger.impl.XDebugSessionImpl.a(XDebugSessionImpl.java:378)
at com.intellij.xdebugger.impl.XDebugSessionImpl.a(XDebugSessionImpl.java:520)
at com.intellij.xdebugger.impl.XDebugSessionImpl.initBreakpoints(XDebugSessionImpl.java:298)
at com.intellij.debugger.engine.DebugProcessEvents.e(DebugProcessEvents.java:327)
at com.intellij.debugger.engine.DebugProcessEvents.commitVM(DebugProcessEvents.java:72)
at com.intellij.debugger.engine.DebugProcessImpl$9$2$1.action(DebugProcessImpl.java:1847)
at com.intellij.debugger.engine.events.DebuggerCommandImpl.run(DebuggerCommandImpl.java:45)
at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:151)
at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:39)
at com.intellij.debugger.impl.InvokeThread.a(InvokeThread.java:146)
at com.intellij.debugger.impl.InvokeThread.access$100(InvokeThread.java:28)
at com.intellij.debugger.impl.InvokeThread$WorkerThreadRequest.run(InvokeThread.java:55)
at com.intellij.openapi.application.impl.ApplicationImpl$9.run(ApplicationImpl.java:446)
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:695)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:149)

@tcripps
Copy link
Collaborator

tcripps commented Jul 22, 2014

Sigh. It would be nice if JetBrains was better about deprecating API before removing it.

I'm uploading a 0.5.8-EAP release archive that restores function when running under IDEA 14.

@tcripps tcripps added this to the 0.5.8 milestone Jul 22, 2014
@tcripps tcripps self-assigned this Jul 22, 2014
tcripps pushed a commit that referenced this issue Jul 22, 2014
@mcamou
Copy link

mcamou commented Sep 25, 2014

I installed the plugin to get syntax highlighting (we're using Scala and sbt-scalabuf to compile). Even when I disable protobuf compilation in the project settings I get this same error.

@tcripps
Copy link
Collaborator

tcripps commented Sep 26, 2014

mcamou,

Which version of the plugin did you install? Was it version 0.5.8-EAP (the only version of the plugin that supports IDEA 14)?

@mcamou
Copy link

mcamou commented Oct 2, 2014

I have the latest one that is available in the IntelliJ repositories (0.5.7). Where do I get 0.5.8-EAP?

@tcripps
Copy link
Collaborator

tcripps commented Oct 2, 2014

@mcamou
Copy link

mcamou commented Oct 3, 2014

Thanks! That fixed THAT exception. However, in my project I am using scalabuff (called from sbt) to compile the .proto files into Scala (I want to use the plugin just for syntax highlighting). I've gone into Project Structure -> Facets -> Protobuf Facet and disabled the "Enable compilation" checkbox. However, when trying to compile I get the following message:

19:09:59 Throwable: Cannot generate protobuf files as the path to protoc has not been set. Please set in Settins > Compiler
19:09:59 Compilation completed with 0 errors and 0 warnings in 0 sec

Setting the path to protoc in the IntelliJ settings allows me to compile the project, however, I think that should not be necessary since I have disabled compilation.

@driekken
Copy link

Please see #48 as well.

tcripps pushed a commit that referenced this issue Jan 15, 2015
Only warn of compiler path if there are proto files to process (Issue #53).
@GildedHonour
Copy link

Setting the path to protoc in the IntelliJ settings allows me to compile the project, however, I think that should not be necessary since I have disabled compilation. - what did you set it to?

@tcripps tcripps modified the milestones: 0.5.9, 0.5.8 Feb 3, 2015
@tcripps tcripps closed this as completed Feb 3, 2015
@mcamou
Copy link

mcamou commented Feb 13, 2015

@GildedHonour You have to install protobuf on your machine (outside of IntelliJ) and then put in the path to the protoc executable

@ghost
Copy link

ghost commented May 14, 2015

How to compile using http://github.com/nnmatveev/idea-plugin-protobuf ?
Is there User-Guide? Demo?

@tcripps
Copy link
Collaborator

tcripps commented May 14, 2015

Read https://github.com/nnmatveev/idea-plugin-protobuf/blob/master/Help.txt. It explains how to install and configure the plugin. Compilation happens "automagically" (once set up) when you build your Java module or project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants