Commit Graph

3094 Commits

Author SHA1 Message Date
Josh Suereth 9969973d09 Merge pull request #1126 from jozic/no-def-package
explicitly disapprove plugins using default package
2014-02-19 09:13:39 -05:00
Eugene Platonov 3389906b01 explicitly disapprove plugins using default package 2014-02-18 23:11:59 -05:00
Jason Zaugg fc189675a6 Merge pull request #1125 from gkossakowski/compile-setup-nameHashing
Make change to CompileSetup backwards compatible.
2014-02-18 12:52:47 +01:00
Grzegorz Kossakowski 19ca7a1edc Make change to CompileSetup backwards compatible.
The c7f435026f introduced a new parameter
to the constructor of `CompileSetup` but it turns out that this class
is being used in zinc. Introduce an overloaded variant of that constructor
that preserves backwards compatibility.
2014-02-18 12:18:07 +01:00
Josh Suereth ef907b8c1d Merge pull request #1122 from gkossakowski/compile-setup-nameHashing
Include value of `nameHashing` flag in `CompileSetup`.
2014-02-17 18:01:49 -05:00
Grzegorz Kossakowski c7f435026f Include value of `nameHashing` flag in `CompileSetup`.
The CompileSetup class is being used to detect changes to arguments of
incremental compiler that affect result of compilation and trigger
recompilation. Examples of such arguments include, the target (output)
directory, Scala compiler options, Scala compiler version, etc.

By adding `nameHashing` to CompileSetup we have a chance to handle change
to that flag smoothly by throwing away old Analysis object and starting
with an empty one. That's implemented in AggressiveComile by extending
the logic that was responsible for detection of changes to CompileSetup
values. Thanks to this change we fix #1081.

Analysis formats has been updated to support persisting of newly added
value in CompileSetup. We used to not store the value of `nameHashing`
flag in persisted Analysis file and infer it from contents of relations
but that leads to issue #1071 when empty relations are involved. Given
the fact that CompileSetup stores `nameHashing` value now, we can just
use it when reading relations and fix #1071. This requires reading/writing
compile setup before reading relations. I decided to make that change even
if there's a comment saying that reading/writing relations first was done
intentionally.
2014-02-17 17:00:19 +01:00
Jason Zaugg 9428bb3344 Merge pull request #1114 from gkossakowski/scala-2.11.0-M8
Remove work-arounds for Scala 2.11 problematic dependencies
2014-02-12 15:27:23 +01:00
Josh Suereth c26a7a6a49 Merge pull request #1111 from D-Roch/patch-1
Update Community-Plugins.rst
2014-02-12 08:23:49 -05:00
Grzegorz Kossakowski 4a9981720a Remove work-arounds for Scala 2.11 problematic dependencies
The ff0fd6eec6 introduced some exclusions
that were necessary for getting sbt to resolve dependencies properly
against Scala 2.11.0-M7.

Scala 2.11.0-M8 fixed its dependency structure so we can get rid of those
exclusions now.
2014-02-12 14:12:20 +01:00
Grzegorz Kossakowski 53331d9328 Merge pull request #1113 from retronym/ticket/si-8263
Scala 2.11 compatibility
2014-02-12 14:05:47 +01:00
Jason Zaugg 4e073373da SI-8263 Avoid SOE in Symbol#logicallyEnclosingMember under Scala 2.11
Since the fix for SI-2066, Scala 2.11 calls logicallyEnclosingMember on the
`x` in the expansion of the task macro:

    InitializeInstance.app[[T0[x]](T0[java.io.File], T0[java.io.File]), Seq[java.io.File]]

This exposed the fact that SBT has created `T0` with `NoSymbol` as
the owner. This led to the a SOE.

I will also change the compiler to be more tolerant of this, but we
can observe good discipline in the macro and pick a sensible owner.
2014-02-12 13:30:46 +01:00
Jason Zaugg 9b4564f0cd SI-8262 Fix compilation with 2.11 due to shadowing of Range
We now have `global.Range`, so our wildcard import of `global._`
shadows `scala.Range`.

This commit fully qualifies that type so as to be compatible with
Scala 2.10 and 2.11.
2014-02-12 13:11:28 +01:00
Roch Delsalle 05d96912d1 Update Community-Plugins.rst
sbt-scct fork / published on central with 0.13 compatibility
2014-02-12 11:02:53 +01:00
Josh Suereth e4375b3e58 Merge pull request #1108 from dansanduleac/dynamic-app-launch
Launcher to retrieve dynamic app versions correctly
2014-02-11 08:07:00 -05:00
Dan Sanduleac 6abac450ef Retrieve dynamic app versions correctly 2014-02-10 09:18:41 +00:00
Suzanne Hamilton 4ab8074753 Fix formatting of inline code samples which are pluralized 2014-02-06 08:49:44 -05:00
Josh Suereth 85753e4035 Merge pull request #1100 from dansanduleac/sessionSettings2
Fixed SessionSettings replacing existing setting
2014-02-02 04:24:49 -08:00
Dan Sanduleac 083eb38bd2 [scripted] Session update without reload 2014-02-02 08:50:47 +00:00
Josh Suereth b7c50d4269 Merge pull request #1089 from dansanduleac/overwritePublish
Expose overwrite flag in IvyActions.publish
2014-02-01 07:56:41 -08:00
Josh Suereth f8536ad9a5 Merge pull request #1097 from kalmanb/0.13
Add sbt-ctags community plugin information
2014-01-30 00:36:11 -08:00
Josh Suereth b313d2db19 Merge pull request #1099 from ngocdaothanh/0.13
Add link to plugin xitrum-package (collects dependency .jar files for standalone Scala programs)
2014-01-28 06:26:05 -08:00
Josh Suereth bfa507affd Merge pull request #1098 from xerial/sbt-sonatype
Add a link to sbt-sonatype plugin in Using-Sonatype page
2014-01-28 04:34:16 -08:00
Josh Suereth 555087bdf4 Merge pull request #1101 from retronym/ticket/1031
Avoid compiler crash for naked `key.value` calls.
2014-01-28 04:31:23 -08:00
Josh Suereth 7241428137 Merge pull request #1102 from gkossakowski/inc-error-handling
Improve error handling in incremental compiler
2014-01-28 02:16:43 -08:00
Jason Zaugg 264e49a912 Avoid compiler crash for naked `key.value` calls.
Untyped trees underneath typed trees makes Jack and sad boy.
And they make superaccessors a sad phase.

The recent refactoring to retain original types in the trees
representing the argument to the task macro meant that the `value`
macro also was changed to try to avoid this untyped-under-typed
problem. However, it didn't go deep enough, and left the child
trees of the placeholder tree `InputWrapper.wrap[T](key)` untyped.

This commit uses `c.typeCheck` to locally typeheck that tree fully
instead.

Fixes #1031
2014-01-28 10:45:15 +01:00
Grzegorz Kossakowski bb8dd21620 Record the name of an Analysis file in case of a read failure.
Catch ReadException and wrap it in IOException that carries the name
of the file we failed to read in its message.

We have to catch exception and wrap them because in TextAnalysisFormat
we don't have an access to the file name (it operates using an abstract
reader).
2014-01-27 19:48:13 +01:00
Grzegorz Kossakowski 668ae8d8b1 Fix typo in assertion message in TextAnalysisFormat
Add missing string interpolation indicator in assertion message.
2014-01-27 19:41:04 +01:00
Dan Sanduleac 8bfab5313e Fixed SessionSettings replacing existing setting 2014-01-27 14:55:08 +00:00
Ngoc Dao 02a7fd8c83 Add link to xitrum-package (collects dependency .jar files for standalone Scala programs) 2014-01-27 19:16:23 +09:00
Taro L. Saito 91650c7f71 Add a link to sbt-sonatype plugin in Using-Sonatype page 2014-01-26 00:12:16 +09:00
kalmanb 9af1585e8d Add sbt-ctags community plugin information 2014-01-25 22:21:49 +13:00
Dan Sanduleac ba4d57b120 Fix binary compatibility with 0.13 2014-01-23 12:07:37 +00:00
Josh Suereth 1d627797d7 Merge pull request #1093 from xerial/add-sbt-sonatype
Add link to sbt-sonatype plugin
2014-01-21 05:31:37 -08:00
Taro L. Saito 45cc2fd111 Add link to sbt-sonatype plugin 2014-01-21 22:15:11 +09:00
Josh Suereth 09d3487167 Merge pull request #1092 from gkossakowski/scala-2.11-compat
Build for Scala 2.11
2014-01-20 08:19:56 -08:00
Grzegorz Kossakowski ff0fd6eec6 Update dependencies to Scala 2.11.0-M7.
I had to sprinkle some excludes due to dependency of scala-compiler M7 on
M6 modules. Those excludes won't be needed by the time M8 is out.
2014-01-18 01:09:24 +01:00
Adriaan Moors 034eb26af9 Scala 2.11 modules now under org.scala-lang.modules
Using 1.0-RC2 for scala-xml, 1.0-RC1 for scala-parser-combinators.
2014-01-18 00:04:32 +01:00
Dan Sanduleac 0199a93ffb Expose overwrite flag in IvyActions.publish, and by default only overwrite if it's a snapshot 2014-01-17 10:45:57 +00:00
Josh Suereth c699e66342 Merge pull request #1082 from jsuereth/wip/sbt-server-api-fixes
Fixes to the internal API hooks for the sbt server.
2014-01-14 09:47:38 -08:00
Josh Suereth 2abe7574df Fixes to the internal API hooks for the sbt server.
* Alter the TaskProgress listener key to be `State => TaskProgress` so it
  can be instantiated from the current server/sbt state.
* Expose the xsbti.Reporter interface for compilation through to sbt builds.
2014-01-14 12:42:40 -05:00
Grzegorz Kossakowski cef1d28f22 Merge pull request #1076 from gkossakowski/bring-brack-incDebugProp
Bring back and deprecate `Incremental.incDebugProp`.
2014-01-13 07:40:05 -08:00
Grzegorz Kossakowski 9e7e93c632 Bring back and deprecate `Incremental.incDebugProp`.
The ae15eccd9c accidentally removed
`Incremental.incDebugProp` which broke Scala IDE build that relies on it.

We bring back that val but at the same time we deprecate it because we
have better mechanism for configuring incremental compiler now.

I also added a little comment with the history of `incDebugProp` which
explains proper migration path.
2014-01-13 16:29:16 +01:00
Jens Halm 0099b4ab55 add Laika documentation plugin to the list of community plugins 2014-01-09 08:16:32 -05:00
sam e308cc31c7 Added sbt-scoverage to list of plugins. 2014-01-08 18:01:19 -05:00
Grzegorz Kossakowski dcb327e6f4 Do not compute name hashes when name hashing is disabled
We should compute name hashes only when name hashing is enabled.
Otherwise, we just store an empty value for name hashes.
2014-01-08 17:37:43 -05:00
Josh Suereth b9489c6035 Fix compilation failure due to missing type annotation. 2014-01-07 21:42:24 -05:00
Grzegorz Kossakowski b581b60aa4 Merge pull request #1069 from benjyw/0.13-format-v4-A
Make analysis file portable.
2014-01-07 15:50:23 -08:00
Benjy 2e1809e17e Make analysis file portable.
Serializes CompileSetup as text instead of base64-encoded
binary-serialized object.

This is necessary so that file paths in the CompileSetup can be
rebased when porting analysis files between systems.
2014-01-07 22:39:47 +00:00
Grzegorz Kossakowski af39679549 Merge pull request #1042 from gkossakowski/name-hashing
Implement name hashing algorithm in incremental compiler
2014-01-06 15:40:18 -08:00
Grzegorz Kossakowski f4940df48d Make all APIChange subclasses final.
They should have been final from the beginning. We are fixing that
omission now.
2014-01-07 00:20:17 +01:00