Skip to content

Commit

Permalink
improvement: Small fixes to allow using Metals with scaladoc with sbt
Browse files Browse the repository at this point in the history
This would require just setting `bspEnabled := true`, but not for sjsJUnitTests which seem to cause inifinite loop of compilations.

I also need to work a bit on Bloop to also make it work.

This still needs scalameta/metals#4938
  • Loading branch information
tgodzik committed Feb 8, 2023
1 parent 04f5a0b commit 7f6a2f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ object Build {

// Settings used when compiling dotty with a non-bootstrapped dotty
lazy val commonBootstrappedSettings = commonDottySettings ++ NoBloopExport.settings ++ Seq(
// To enable support of scaladoc and language-server projects you need to change this to true and use sbt as your build server
bspEnabled := false,
(Compile / unmanagedSourceDirectories) += baseDirectory.value / "src-bootstrapped",

Expand Down Expand Up @@ -1130,6 +1131,7 @@ object Build {
enablePlugins(DottyJSPlugin).
dependsOn(`scala3-library-bootstrappedJS`).
settings(
bspEnabled := false,
scalacOptions --= Seq("-Xfatal-warnings", "-deprecation"),

// Required to run Scala.js tests.
Expand Down
3 changes: 0 additions & 3 deletions project/build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// Used by VersionUtil to get gitHash and commitDate
libraryDependencies += "org.eclipse.jgit" % "org.eclipse.jgit" % "4.11.0.201803080745-r"


Compile / unmanagedSourceDirectories +=
baseDirectory.value / "../language-server/src/dotty/tools/languageserver/config"
libraryDependencies += Dependencies.`jackson-databind`

0 comments on commit 7f6a2f7

Please sign in to comment.