question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wildly incorrect parse error

See original GitHub issue

My build.sbt looks like:

import com.unhandledexpression.sbtclojure.ClojurePlugin.clojure
import Keys

scalaVersion := "2.11.6"

seq(clojure.settings :_*)

resolvers += "clojars" at "http://clojars.org/repo/"

libraryDependencies += "org.scalatest" % "scalatest_2.11" % "2.2.4" % "test"
libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.12.2" % "test"
libraryDependencies += "org.clojure" % "clojure" % "1.6.0"
libraryDependencies += "instaparse" % "instaparse" % "1.4.0"

// Remove the clojurec Task from the standard `compile` dependencies
clojure.clojurec in Compile := Seq.empty

clojure.clojurec <<= clojure.clojurec.dependsOn(Keys.compile)

(I’m using the sbt-clojure plugin for clojure interop.) Things get interesting when I run sbt:

$ sbt
[info] Loading project definition from /.../project
[error] ======
[error] import com.unhandledexpression.sbtclojure.ClojurePlugin.clojure
[error] import Keys
[error] 
[error] scalaVersion := "2.11.6"
[error] 
[error] seq(clojure.settings :_*)
[error] 
[error] resolvers += "clojars" at "http://clojars.org/repo/"
[error] 
[error] libraryDependencies += "org.scalatest" % "scalatest_2.11" % "2.2.4" % "test"
[error] libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.12.2" % "test"
[error] libraryDependencies += "org.clojure" % "clojure" % "1.6.0"
[error] libraryDependencies += "instaparse" % "instaparse" % "1.4.0"
[error] 
[error] // Remove the clojurec Task from the standard `compile` dependencies
[error] clojure.clojurec in Compile := Seq.empty
[error] 
[error] //
[error] clojure.clojurec <<= clojure.clojurec.dependsOn(Keys.compile)
[error] ======
[error] [/.../build.sbt]:4: '.' expected but ';' found.

Not only is this error message unhelpful, there is no semicolon anywhere in the file at all!

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
som-snyttcommented, Oct 13, 2017

There’s a PR against scala to offer a less cryptic message.

0reactions
eed3si9ncommented, Nov 16, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

9 Easy Fixes for a Formula Parse Error in Google Sheets
In this article, we go over all the common formula parse errors in Google Sheets — and how to fix them, with easy...
Read more >
Parse error at '[' : usage might be invalid MATLAB syntax
I am receiveing an error of invalid syntax: Parse error at '[' : usage might be ... Function call to jpattern_num.m where the...
Read more >
How to correct "Parse" error - MATLAB Answers - MathWorks
I'm writing a function and recieving a "Parse error at t; usuage might be invalid MATLAB syntax". My code is;. Theme. Copy to...
Read more >
Structure your Errors | jelv.is
The implementation details, however, vary wildly between language and Haskell has some unique ... Parse errors, if a config file has invalid syntax....
Read more >
Wildly conflicting timestamps for events - Splunk Community
I'm guessing you have incorrect time stamp parsing. You probably need to look at that particular source and check for data that looks...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found