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

not found: value mavlinkDialect #3

Open
peteretep opened this issue Jan 26, 2018 · 1 comment
Open

not found: value mavlinkDialect #3

peteretep opened this issue Jan 26, 2018 · 1 comment

Comments

@peteretep
Copy link

I'm trying to connect ardupilot / px4 to a custom simulator developed in Scala, and was hoping to use sbt-mavlink
I've started a demo project to try to get it up and running but I'm getting the following error.
I'm probably doing something stupid as I don't have much Scala / sbt experience yet.
Any help would be great.

Error while importing sbt project:

OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=384M; support was removed in 8.0
[info] Loading global plugins from /home/peter/.sbt/0.13/plugins
[info] Loading project definition from /home/peter/IdeaProjects/mavlink-demo-oldsbt/project
/home/peter/IdeaProjects/mavlink-demo-oldsbt/build.sbt:9: error: not found: value mavlinkDialect
mavlinkDialect := "/home/peter/IdeaProjects/mavlink-demo-oldsbt/mavlink/common.xml"
^
[error] Type error in expression

My build.sbt file looks like this:

name := "mavlink-demo-oldsbt"
version := "0.1"
scalaVersion := "2.10.6"
enablePlugins(SbtMavlink)
mavlinkDialect := baseDirectory.value / "mavlink" / "common.xml"

plugins.sbt looks like this:

addSbtPlugin("com.github.jodersky" % "sbt-mavlink" % "0.5.1")

Thanks, Peter

@peteretep
Copy link
Author

Apologies, I needed to add the line:
import com.github.jodersky.mavlink.sbt.MavlinkKeys._
Still haven't managed to generate the source though, I've added the line:
sourceGenerators in Compile += mavlinkGenerate.taskValue to my build.sbt file but can't see where the source is being generated.

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

1 participant