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

Run demo on a larger corpus #22

Closed
olafurpg opened this issue Jun 28, 2017 · 5 comments
Closed

Run demo on a larger corpus #22

olafurpg opened this issue Jun 28, 2017 · 5 comments
Milestone

Comments

@olafurpg
Copy link
Member

The corpus in the current demo is quite uninteresting code. It would be cool if the demo was a larger corpus such as for example the Scala community build, including semantic support for .sbt files, sbt sources and the Scala standard library.

@olafurpg
Copy link
Member Author

olafurpg commented Jul 2, 2017

In #33, the corpus has been updated to the main and test sources of https://github.com/typelevel/paiges It would be interesting to add multiple corpora that reference each other, for example stdlib, cats and circe.

@olafurpg
Copy link
Member Author

FWIW, here is a corpus of 10k source files compiled with semanticdb https://drive.google.com/open?id=0B5BBsTPBxGcMTmdic3NIV01VcE0 (~100mb). The sources are from the community build.

@jonas
Copy link
Collaborator

jonas commented Jul 16, 2017

@olafurpg The spire/core/js and spire/core/jvm projects cause the following exception:

Exception in thread "main" java.lang.RuntimeException: Sourcepath is required to load slim semanticdb.
	at scala.sys.package$.error(package.scala:27)
	at scala.meta.internal.semantic.package$XtensionSchemaDatabase.$anonfun$toMeta$3(package.scala:41)
	at scala.Option.getOrElse(Option.scala:121)
	at scala.meta.internal.semantic.package$XtensionSchemaDatabase.$anonfun$toMeta$1(package.scala:41)
	at scala.collection.Iterator$$anon$10.next(Iterator.scala:448)
	at scala.collection.Iterator.foreach(Iterator.scala:929)
	at scala.collection.Iterator.foreach$(Iterator.scala:929)
	at scala.collection.AbstractIterator.foreach(Iterator.scala:1417)
	at scala.collection.generic.Growable.$plus$plus$eq(Growable.scala:59)
	at scala.collection.generic.Growable.$plus$plus$eq$(Growable.scala:50)
	at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:186)
	at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:44)
	at scala.collection.TraversableOnce.to(TraversableOnce.scala:310)
	at scala.collection.TraversableOnce.to$(TraversableOnce.scala:308)
	at scala.collection.AbstractIterator.to(Iterator.scala:1417)
	at scala.collection.TraversableOnce.toList(TraversableOnce.scala:294)
	at scala.collection.TraversableOnce.toList$(TraversableOnce.scala:294)
	at scala.collection.AbstractIterator.toList(Iterator.scala:1417)
	at scala.meta.internal.semantic.package$XtensionSchemaDatabase.toMeta(package.scala:107)
	at scala.meta.semantic.Database$.load(Database.scala:45)
	at metadoc.cli.MetadocCli$.run(MetadocCli.scala:134)
	at metadoc.cli.MetadocCli$.run(MetadocCli.scala:36)
	at caseapp.CaseApp.main(CaseApp.scala:40)
	at metadoc.cli.MetadocCli.main(MetadocCli.scala)

@olafurpg
Copy link
Member Author

Fixed in #100, the live demo is now a combined site for scala-library + scalameta + scalafix https://scalameta.org/metadoc/#/scala/Predef.scala#L134C8-L134C14 weighing a total of 7.7mb

@jonas
Copy link
Collaborator

jonas commented Sep 28, 2018

Very nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants