aboutsummaryrefslogtreecommitdiff
path: root/sbt-bridge
Commit message (Collapse)AuthorAgeFilesLines
* Make CompilerClassLoader#fixBridgeLoader synchronizedGuillaume Martres2017-04-151-1/+2
| | | | | This method could be called from multiple threads since sbt could run multiple `compile` task in parallel.
* Make warm compilation speed with sbt 2x fasterGuillaume Martres2017-04-141-1/+14
| | | | | | | | | | | | | | | | | | | Previously, every call to `compile` in sbt with dotty took about the same time because we created a new ClassLoader everytime and thus thrased the JIT code cache, by reusing ClassLoaders we can make `compile` about 2x faster. You can reproduce this by running: > dotty-compiler-bootstrapped/compile This takes ~50 seconds on my machine. Then clean using: > ;dotty-compiler-bootstrapped/clean;dotty-compiler-update And run `dotty-compiler-bootstrapped/compile` again, this takes ~25 seconds for me. I get very similar timings from scalac (replacing `dotty-compiler-bootstrapped` by `dotty-compiler`).
* Fix #2186: Synchronize classpath handling with Scala 2.12Guillaume Martres2017-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This commit is a very crude port of the classpath handling as it exists in the 2.12.x branch of scalac (hash: 232d95a198c94da0c6c8393624e83e9b9ac84e81), this replaces the existing Classpath code that was adapted from scalac years ago. This code was written by Grzegorz Kossakowski, Michał Pociecha, Lukas Rytz, Jason Zaugg and other scalac contributors, many thanks to them! For more information on this implementation, see the description of the PR that originally added it to scalac: https://github.com/scala/scala/pull/4060 Changes made to the copied code to get it to compile with dotty: - Rename scala.tools.nsc.util.ClassPath to dotty.tools.io.ClassPath - Rename scala.tools.nsc.classpath.* to dotty.tools.dotc.classpath.* - Replace "private[nsc]" by "private[dotty]" - Changed `isClass` methods in FileUtils to skip Scala 2.11 implementation classes (needed until we stop being retro-compatible with Scala 2.11) I also copied PlainFile.scala from scalac to get access to `PlainNioFile`.
* sbt-bridge: Remove unused imports from scala-compilerGuillaume Martres2017-03-281-4/+0
|
* sbt-bridge: Synchronize unit tests with sbt 0.13.14Guillaume Martres2017-03-244-20/+148
| | | | | Also fix a bug where the compiler output for the tests ended up in the wrong directory, causing some new tests from 0.13.14 to fail.
* sbt-bridge: Fix #2092: Disable position information in the reporterGuillaume Martres2017-03-151-1/+1
| | | | | | This is temporary until someone figures out how to get sbt to not print duplicated information when this is turned on. This might require changes to sbt itself.
* sbt-bridge: Fix lineContent, pointer, pointerSpaceGuillaume Martres2017-03-141-3/+5
| | | | | | | | | These changes were done to imitate how these fields are set in https://github.com/sbt/sbt/blob/0.13/compile/interface/src/main/scala/xsbt/DelegatingReporter.scala The main issue this fixes is sbt displaying the ^ pointer way too far, because the number of spaces was set from the beginning of the file instead of the beginning of the line.
* sbt-bridge: Reduce verbosity by using intermediate variableGuillaume Martres2017-03-141-6/+7
|
* sbt-bridge: simpler way to get file pathGuillaume Martres2017-03-141-4/+5
|
* sbt-bridge: Don't crash when a Message does not have a PositionGuillaume Martres2017-03-141-9/+23
|
* Merge pull request #1884 from MasseGuillaume/restore-delegating-reporterFelix Mulder2017-03-112-8/+14
|\ | | | | restore position offset in DelegatingReporter
| * restore position offset in DelegatingReporterGuillaume Massé2017-01-062-8/+14
| |
* | Remove unused flagsFelix Mulder2017-02-201-0/+1
| |
* | Remove faulty dottydoc APIFelix Mulder2017-01-311-19/+8
| |
* | Fix dotty docs gen, scrollFelix Mulder2017-01-311-3/+4
| |
* | Bump version from 0.1-SNAPSHOT to 0.1.1-SNAPSHOTGuillaume Martres2017-01-0883-166/+166
|/ | | | | | | | | | | | | | This is useful for two reasons: - All published Scala versions are of the form a.b.c and some tooling expect that, like sbt CrossVersion API. - Using 0.1.1 instead of 0.1.0 means that we match the version number of dotty-sbt-bridge, this is simpler and means that in the future sbt could automatically choose the correct version of dotty-sbt-bridge so that the user does not need to specify scalaCompilerBridgeSource in his build.sbt Note: it's awful that we have hardcoded paths to jars and that I had to change them, but I won't fix that now.
* Fix #1741: sbt.ExtractAPI: extract annotationsGuillaume Martres2016-12-026-0/+40
| | | | | | | | | This is necessary for correct incremental recompilation but is also used by sbt to find tests to run (for junit they should be annotated @org.junit.Test). I added an sbt scripted test to verify that JUnit now works, to run it: $ sbt > scripted discovery/test-discovery
* dotty-bridge is now called dotty-sbt-bridgeGuillaume Martres2016-11-2282-82/+82
|
* Make every project use the new directory structureGuillaume Martres2016-11-22507-0/+0
|
* Move bridge to correct location, fix unmanaged sources in buildFelix Mulder2016-11-22507-0/+0
|
* Move sbt-bridgeFelix Mulder2016-11-22507-0/+4570