sirthias / parboiled2

A macro-based PEG parser generator for Scala 2.10+
Other
717 stars 86 forks source link

Referring to non-existent class error with ScalaJS #180

Closed Vadi closed 7 years ago

Vadi commented 7 years ago

Using

Getting the error while running fullOptJs or fastOptJs -

Referring to non-existent class org.parboiled2.support.Unpack$

Looks like this issue was address in the past - #174 As a side note - The class I am JSExporting is taken from here - #161

Any help is greatly appreciated.

sirthias commented 7 years ago

Hi Vadi, since I haven't used parboiled (or any other library) with ScalaJS myself yet I'm not really qualified to help with this issue. If anyone else could chip in, that'd be much appreciated!

JuPfu commented 7 years ago

Hi Vadi, the cheló̱na project is based on Parboiled 2 and uses ScalaJS to convert RDF-data. Maybe, a glance at the build file gives you a hint. A next step might be downloading a copy of the project and generating a ScalaJS chelona_sjs0.6_2.12-1.3.0.jar by typing sbt chelonaJS/fullOptJS . Opening the turtle.html file located in the js-tree with a browser should show a running example. I hope these lines have been of some help. screenshot 2017-03-13 um 18 04 06

Vadi commented 7 years ago

Thanks for the help @JuPfu and @sirthias. The problem was my build.sbt. I missed to refer parboiled using%%%. –

    libraryDependencies ++= Seq(
      "org.parboiled"                   %%%    "parboiled"                 %           "2.1.4",
      "com.chuusai"                    %%%    "shapeless"                 %           "2.3.2",
      "org.scalatest"                   %%%    "scalatest"                 %             "3.0.0"    %   "test"
    )