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

Using the sbt-assembly plugin results in Scala compilation errors #1

Open
jg8481 opened this issue Feb 1, 2019 · 0 comments
Open
Labels
non-critical Anything minor that does not disrupt functionality. wontfix This will not be worked on

Comments

@jg8481
Copy link
Owner

jg8481 commented Feb 1, 2019

Using the provided build.sbt, build.properties, and plugins.sbt files will result in the following Scala compilation errors. Luckily, the Maven pom.xml works perfectly fine.

NY-JGorospe:robotframework-scala-remote-library joshuagorospe$ sbt assembly

[info] Loading settings for project robotframework-scala-remote-library-build from plugins.sbt ...

[info] Loading project definition from /Users/joshuagorospe/robotframework-scala-remote-library/project

[info] Loading settings for project robotframework-scala-remote-library from build.sbt ...

[info] Set current project to robotframework-scala-remote-library (in build file:/Users/joshuagorospe/robotframework-scala-remote-library/)

[info] Updating ...

[info] Done updating.

[info] Compiling 2 Scala sources to /Users/joshuagorospe/robotframework-scala-remote-library/target/scala-2.12/classes ...

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/ScalaRemoteLibraryServer.scala:3:12: object robotframework is not a member of package org

[error] import org.robotframework.javalib.library.AnnotationLibrary

[error]            ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/ScalaRemoteLibraryServer.scala:5:12: object robotframework is not a member of package org

[error] import org.robotframework.remoteserver.RemoteServer

[error]            ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/ScalaRemoteLibraryServer.scala:22:13: not found: type AnnotationLibrary

[error]     extends AnnotationLibrary("com/qamercenaryforhire/robotframework/scalaremotelibrary/keywords/*.class") {

[error]             ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/ScalaRemoteLibraryServer.scala:13:5: not found: value RemoteServer

[error]     RemoteServer.configureLogging()

[error]     ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/ScalaRemoteLibraryServer.scala:14:17: not found: type RemoteServer

[error]     val server: RemoteServer = new RemoteServer()

[error]                 ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/ScalaRemoteLibraryServer.scala:14:36: not found: type RemoteServer

[error]     val server: RemoteServer = new RemoteServer()

[error]                                    ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/ScalaRemoteLibraryServer.scala:22:31: no arguments allowed for nullary constructor Object: ()Object

[error]     extends AnnotationLibrary("com/qamercenaryforhire/robotframework/scalaremotelibrary/keywords/*.class") {

[error]                               ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/ScalaRemoteLibraryServer.scala:28:11: value getKeywordDocumentation is not a member of AnyRef

[error]     super.getKeywordDocumentation(keywordName)

[error]           ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/keywords/ScalaKeywords.scala:3:12: object robotframework is not a member of package org

[error] import org.robotframework.javalib.annotation.ArgumentNames

[error]            ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/keywords/ScalaKeywords.scala:5:12: object robotframework is not a member of package org

[error] import org.robotframework.javalib.annotation.RobotKeyword

[error]            ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/keywords/ScalaKeywords.scala:7:12: object robotframework is not a member of package org

[error] import org.robotframework.javalib.annotation.RobotKeywords

[error]            ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/keywords/ScalaKeywords.scala:10:2: not found: type RobotKeywords

[error] @RobotKeywords

[error]  ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/keywords/ScalaKeywords.scala:13:4: not found: type RobotKeyword

[error]   @RobotKeyword("Say Something")

[error]    ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/keywords/ScalaKeywords.scala:14:4: not found: type ArgumentNames

[error]   @ArgumentNames(Array("things"))

[error]    ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/keywords/ScalaKeywords.scala:19:4: not found: type RobotKeyword

[error]   @RobotKeyword("Check String")

[error]    ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/keywords/ScalaKeywords.scala:20:4: not found: type ArgumentNames

[error]   @ArgumentNames(Array("parameters"))

[error]    ^

[error] /Users/joshuagorospe/robotframework-scala-remote-library/src/main/scala/com/qamercenaryforhire/robotframework/scalaremotelibrary/keywords/ScalaKeywords.scala:23:4: not found: type RobotKeyword

[error]   @RobotKeyword("Just Text")

[error]    ^

[error] 17 errors found

[error] (Compile / compileIncremental) Compilation failed

[error] Total time: 1 s, completed Feb 1, 2019 5:27:53 PM
@jg8481 jg8481 added bug Something isn't working wontfix This will not be worked on labels Feb 1, 2019
@jg8481 jg8481 added non-critical Anything minor that does not disrupt functionality. and removed bug Something isn't working labels Feb 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
non-critical Anything minor that does not disrupt functionality. wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant