Josh Suereth
067479f59e
Debug issues with implicit usage for CompileSetup.
...
* Force CompileSetup Equiv typeclass to use Equiv relations defined locally.
* Add toString methods on many of the incremental compiler datatypes.
* Remove remaining binary compatibility issues in Defaults.scala.
2014-12-01 13:35:51 -05:00
Josh Suereth
045ac1d984
Tweak remaining binary compatibility issues with design.
2014-12-01 13:35:51 -05:00
Josh Suereth
40bf599f4a
Deprecating old APIs and attempting to document behavior correctly.
...
* Removed as many binary incompatibilities as I could find.
* Deprecating old APIs
* Attempt to construct new nomenclature that fits the design of Incremental API.
* Add as much documentation as I was comfortable writing (from my understanding of things).
2014-12-01 13:35:51 -05:00
James Roper
0f784ab101
Allow bytecode enhancement to update analysis
...
This breaks the loading/saving of the incremental compiler analysis out
into separate task, thereby providing the necessary hooks for byte code
enhancement tasks to enhance bytecode and update the analysis before the
analysis gets stored to disk.
2014-12-01 13:35:50 -05:00
Josh Suereth
e2942f167b
Merge pull request #1740 from j-keck/0.13
...
fix typo
2014-12-01 10:09:01 -05:00
j-keck
2e8c98f1a4
filter out hidden files
2014-11-24 06:34:56 +01:00
j-keck
f6c8faa992
fix typo
2014-11-23 13:59:42 +01:00
Peter Vlugter
5704e31256
Fix sbinary cache limit when caching doc inputs
...
Cache the classpath as Seq[File] rather than String in RawCompileLike.
2014-11-19 14:41:17 -05:00
eugene yokota
b9964d5153
Merge pull request #1702 from jsuereth/wip/incremental-compiler-javac-cleanup
...
Create a new API for calling Java toolchains.
2014-10-31 15:31:14 -04:00
Josh Suereth
75402b26f2
More fixes from review.
...
* Fix regex for end of line.
* Rename NewJavaTool and friends to remove the New.
2014-10-30 19:37:22 -04:00
eugene yokota
473fc8476d
Merge pull request #1703 from sbt/wip/merge-0.13.7
...
Wip/merge 0.13.7
2014-10-29 21:36:36 -04:00
Josh Suereth
70cdce0830
Create a new API for calling Java toolchains.
...
* Create a new sbt.compiler.javac package
* Create new interfaces to control running `javac` and `javadoc` whether forked or local.
* Ensure new interfaces make use of `xsbti.Reporter`.
* Create new method on `xsbti.compiler.JavaCompiler` which takes a `xsbti.Reporter`
* Create a new mechanism to parse (more accurately) Warnings + Errors, to distinguish the two.
* Ensure older xsbti.Compiler implementations still succeed via catcing NoSuchMethodError.
* Feed new toolchain through sbt.actions.Compiler API via dirty hackery until we can break things in sbt 1.0
* Added a set of unit tests for parsing errors from Javac/Javadoc
* Added a new integration test for hidden compilerReporter key, including testing threading of javac reports.
Fixes #875 , Fixes #1542 , Related #1178 could be looked into/cleaned up.
2014-10-29 20:06:08 -04:00
Tomasz Bartczak
96f57f9fcd
Fix for sbt#1180 - discovered classes are now sorted
2014-10-27 21:31:03 +01:00
Josh Suereth
2d3f57ad51
Fix the run logic so the mainClass setting is actually used when set.
2014-10-25 14:25:30 -04:00
Josh Suereth
b834be8bfa
Merge pull request #1669 from kretes/1648-warn-about-main-classes
...
Fix for https://github.com/sbt/sbt/issues/1648 - warn about multiple or no main classes
2014-10-23 07:37:07 -04:00
Eugene Yokota
7827682f41
Remove DefDef and check rhs
...
- lhs pattern matching occurs only for vals.
- def also breaks due to proc notation.
- instead of pretty printing, we can just check rhs.
2014-10-22 19:14:47 -04:00
Tomasz Bartczak
7a1a21d8c8
Fix for sbt#1648 - warn when no or multiple main classes
2014-10-22 22:42:01 +02:00
Eugene Yokota
97584457fa
merged #1662
2014-10-21 12:18:54 -04:00
andrzej.jozwik@gmail.com
6f9dfcce52
Revert brackets for backward compatibility (binary compatibility), addExplicitXmlContent use pattern matching, splitFile - does not return whitespace statements
2014-10-19 23:54:18 +02:00
andrzej.jozwik@gmail.com
8c0e400c11
Add ; instead of brackets to xml group
2014-10-17 22:23:20 +02:00
andrzej.jozwik@gmail.com
ef74db7319
Revert to previous version.
2014-10-14 11:24:12 +02:00
andrzej.jozwik@gmail.com
ddc80357dc
Add scala-stm file for unit test.
2014-10-14 08:30:20 +02:00
andrzej.jozwik@gmail.com
50ed84b748
Use original function
2014-10-13 22:53:45 +02:00
andrzej.jozwik@gmail.com
f1ab893f98
Fixed #1666 - check from last end of line.
2014-10-13 22:49:26 +02:00
Josh Suereth
d7c76aabf1
Merge pull request #1663 from sbt/wip/avoid-deprecated
...
enable -deprecation for Scala 2.10
2014-10-12 12:31:08 -04:00
Josh Suereth
5599b53692
Merge pull request #1653 from sbt/wip/fix-1649
...
Fixes #1649 . Exclusion rules and other cached resolution fixes
2014-10-12 12:01:22 -04:00
Eugene Yokota
3f958a5bce
enable -deprecation for Scala 2.10
...
Enable -deprecation flag to catch old code being use when we migrate
things.
In this commit I moved error to sys.error.
2014-10-10 15:42:26 -04:00
Josh Suereth
ddf8a173b0
Disable pattern matching in val syntax in sbt 0.13.7.
...
Fixes #1661 or at least works around it for now.
2014-10-10 13:47:02 -04:00
Eugene Yokota
8ddff28a9e
Fixes #1660
...
Provide overloads for transitiveScratch and updateClassifiers that work
with IvyActions.updateEither.
2014-10-10 00:34:05 -04:00
Eugene Yokota
09bca754b5
Fixes #1639 . Fixes cached resolution interacting with force()
...
When conflicts are found for a given module, a forced one
is selected before conflict manager kicks in.
The problem is that DependencyDescriptor seems to mark transitive
forced dependency as forced as well,
so the actual forced dependency are sometimes not prioritized.
To work around this, I’ve introduced a mixin called
SbtDefaultDependencyDescriptor, which carries around ModuleID to detect
direct dependencies.
2014-10-09 13:11:13 -04:00
Josh Suereth
89a3e4982f
Add escape hatch to old parser in case we run into problems.
...
Just make sure users have the means to still build in case there's any
issues we missed. This code should be removed in sbt 1.0.
2014-10-08 15:00:48 -04:00
eugene yokota
0f2c6f89a1
Merge pull request #1645 from sbt/wip/no-blankies-rebased
...
Natural whitespace handling for SBT configuration parser AKA 'no more blankies'
2014-10-06 14:27:50 -04:00
Eugene Yokota
5afb9e1af7
Fixed json serialization turning license into {}.
2014-10-05 04:24:22 -04:00
Josh Suereth
009426d896
Documentation and renaming of "blankies" into somethign a bit easier to find.
...
* Rename SPlitExpression* to `SbtParser` denoting that is parses .sbt files
* Adds a few todos
* Document APIs for internal usage.
2014-10-03 14:22:52 -04:00
andrzej.jozwik@gmail.com
e230a17d3b
@deprecated("Removed from the public API", "2.11.0") def isDefined: Boolean
2014-10-03 14:22:52 -04:00
andrzej.jozwik@gmail.com
a67c5fd187
Comments #1630
2014-10-03 14:22:52 -04:00
andrzej.jozwik@gmail.com
97a96d5bf8
Split to small methods
2014-10-03 14:22:52 -04:00
andrzej.jozwik@gmail.com
dac3edb546
Split to small methods
2014-10-03 14:22:52 -04:00
andrzej.jozwik@gmail.com
963e75d182
Fixed #1630 . Remove last line if last statement is being removed
2014-10-03 14:22:52 -04:00
andrzej.jozwik@gmail.com
2a603da0a8
Moved tests to internal package
2014-10-03 14:22:52 -04:00
andrzej.jozwik@gmail.com
9294351e24
#1628
2014-10-03 14:22:52 -04:00
Josh Suereth
48be806dd4
Adding scaladoc commnets for SessionSettings, and fixing type in check file.
2014-10-03 14:22:51 -04:00
Josh Suereth
a8370880e0
Remove binary compatibility breakages and migrate new parser features into an internal package.
2014-10-03 14:22:51 -04:00
andrzej.jozwik@gmail.com
2019c6da62
findMissingText now searchs recursive
2014-10-03 14:22:51 -04:00
andrzej.jozwik@gmail.com
742188393b
Cut valid text corrected
2014-10-03 14:22:51 -04:00
andrzej.jozwik@gmail.com
232c28ecd1
Handle xml content in session save
2014-10-03 14:22:51 -04:00
andrzej.jozwik@gmail.com
c720a973a6
Corrections for "session save"
2014-10-03 14:22:51 -04:00
andrzej.jozwik@gmail.com
4a33fd2225
Extract method - for new implementation. Not completed yet.
2014-10-03 14:22:51 -04:00
andrzej.jozwik@gmail.com
eab7049479
Comments fixed #1574
2014-10-03 14:22:51 -04:00
andrzej.jozwik@gmail.com
8da8fefc68
Natural whitespace handling for SBT configuration parser AKA 'no more blankies'
2014-10-03 14:22:51 -04:00