Hi,
I have a problem with compiling orbeon 4 sources . When I run the default compilation "orbeon-war" everyting works, but when I try to run "orbeon-dist-war" I get an error: [scalac] orbeon-forms-tag-release-4.0.0-ce\build\src\Version.scala:18: error: XPathDependencies is not a member of org.orbeon.oxf.xforms.analysis [scalac] import org.orbeon.oxf.xforms.analysis.XPathDependencies [scalac] ^ [scalac] orbeon-forms-tag-release-4.0.0-ce\build\src\Version.scala:27: error: not found: type XPathDependencies [scalac] def createUIDependencies(containingDocument: XFormsContainingDocument): XPathDependencies [scalac] ^ [scalac] orbeon-forms-tag-release-4.0.0-ce\src\java\org\orbeon\oxf\xforms\XFormsContainingDocument.java:44: error: XBLContainer is not a member of _root_.org.orbeon.oxf.xforms.xbl [scalac] import org.orbeon.oxf.xforms.xbl.XBLContainer; [scalac] ^ [scalac] orbeon-forms-tag-release-4.0.0-ce\src\java\org\orbeon\oxf\xforms\XFormsContainingDocument.java:64: error: not found: type XBLContainer [scalac] public class XFormsContainingDocument extends XBLContainer implements XFormsDocumentLifecycle, Cacheable, XFormsObject { [scalac] ^ [scalac] orbeon-forms-tag-release-4.0.0-ce\src\java\org\orbeon\oxf\xforms\XFormsContainingDocument.java:64: error: not found: type XFormsObject [scalac] public class XFormsContainingDocument extends XBLContainer implements XFormsDocumentLifecycle, Cacheable, XFormsObject { [scalac] ^ [scalac] orbeon-forms-tag-release-4.0.0-ce\src\scala\org\orbeon\oxf\xforms\action\actions\RRRActions.scala:18: error: DynamicActionContext is not a member of org.orbeon.oxf.xforms.action [scalac] import org.orbeon.oxf.xforms.action.{DynamicActionContext, XFormsAction} [scalac] ^ [scalac] orbeon-forms-tag-release-4.0.0-ce\src\scala\org\orbeon\oxf\xforms\action\actions\RRRActions.scala:19: error: XFormsEvent is not a member of org.orbeon.oxf.xforms.event [scalac] import org.orbeon.oxf.xforms.event.{XFormsEvent, Dispatch} [scalac] ^ ... etc. Does anyone know what could be wrong? Kamil. |
I forgot to add last error: "...\orbeon-forms-tag-release-4.0.0-ce\build.xml:359: Compilation failed because of an internal compiler error; see the error output for details."
|
Administrator
|
Hi Kamil,
I have a feel you hit a bug in the Scala compiler with incremental compilation. Unfortunately, incremental compilation doesn't always work, and at times produces error, while there are no real errors in the code. Incremental compilation happens in this case as you did a "ant orbeon-war", which compiles the code, and then ran "ant orbeon-dist-war", which again tries to recompile the code, and thus tries to do it without restarting from scratch. When you hit problems like this, a solution is just to do "ant clean orbeon-dist-war", i.e. do a "clean" first, so compiling has to restart from scratch. You'll let us know if this solves the problem. Alex
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Administrator
|
Speaking of which, we do plan to improve how we compile Orbeon Forms.
I entered an issue to track this: https://github.com/orbeon/orbeon-forms/issues/988 -Erik On Sun, May 12, 2013 at 2:20 PM, Alessandro Vernet <[hidden email]> wrote: > Hi Kamil, > > I have a feel you hit a bug in the Scala compiler with incremental > compilation. Unfortunately, incremental compilation doesn't always work, and > at times produces error, while there are no real errors in the code. > Incremental compilation happens in this case as you did a "ant orbeon-war", > which compiles the code, and then ran "ant orbeon-dist-war", which again > tries to recompile the code, and thus tries to do it without restarting from > scratch. > > When you hit problems like this, a solution is just to do "ant clean > orbeon-dist-war", i.e. do a "clean" first, so compiling has to restart from > scratch. > > You'll let us know if this solves the problem. > > Alex > > ----- > -- > Follow Orbeon on Twitter: @orbeon > Follow me on Twitter: @avernet > -- > View this message in context: http://discuss.orbeon.com/Orbeon-4-compiling-sources-orbeon-dist-war-tp4656752p4656755.html > Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com. > > -- > You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. > To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. > To post to this group, send email to [hidden email]. > > -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. |
In reply to this post by Alessandro Vernet
It works, thanks.
|
Administrator
|
Hi Kamil,
I'm glad it worked, and as mentioned by Erik, I hope this is something we'll get a chance to improve soon, as we're also finding the need to occasionally do full recompilations quite annoying here :). Alex
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |