project-condor / sbt-mavlink

MAVLink to Scala bindings generation plugin for SBT
GNU Lesser General Public License v3.0
2 stars 2 forks source link

not found: value mavlinkDialect #3

Open peteretep opened 6 years ago

peteretep commented 6 years ago

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 commented 6 years ago

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.