Eugene Vigdorchik
b5a29987e6
Changes required to use sbt as-is from Scala-IDE.
2012-07-13 14:33:26 -04:00
Mark Harrah
0de4444665
sync resident compiler code
2012-06-18 08:18:39 -04:00
Mark Harrah
f53d20a7a3
disable resident-compiler related code paths when it isn't being used. fixes #486 .
...
The underlying issue with the resident compiler needs fixing, however.
2012-06-16 23:40:52 -04:00
Mark Harrah
919ac33c1a
compiler interface compatibility hardening
2012-06-10 23:06:35 -04:00
Mark Harrah
b7df87e2d8
compiler interface source compatibility with Scala 2.8.1/0
2012-06-02 19:03:57 -04:00
Mark Harrah
4bc993e0ba
Revert "remove unneeded unlinking in compiler interface"
...
Unlinking is actually needed.
This reverts commit 1581d1b7e1 .
2012-06-02 19:03:57 -04:00
Mark Harrah
1581d1b7e1
remove unneeded unlinking in compiler interface
2012-05-30 07:41:02 -04:00
Mark Harrah
2db0101eb8
resident compiler that passes all tests
...
core logic from odersky/scala/topic/inkling
2012-05-30 07:13:15 -04:00
Mark Harrah
63895a3d77
source compatibility with 2.8.1, where resident mode can't be supported
2012-05-19 18:20:20 -04:00
Mark Harrah
50ddd485af
add a missing 'lazy'
2012-05-13 22:38:00 -04:00
Mark Harrah
208b46fd10
resident mode: package objects
2012-05-13 21:31:40 -04:00
Mark Harrah
864580aae1
approximate type parameters and references by name
...
not as accurate, but simpler.
2012-05-12 23:12:29 -04:00
Mark Harrah
00d0918714
workaround separate compilation and raw types
2012-05-12 23:12:29 -04:00
Mark Harrah
99a04466f1
move to revised warning interface in the compiler
2012-05-06 14:15:03 -04:00
Mark Harrah
e537cbc474
second part of fix for excessive recompilations
2012-04-30 20:34:48 -04:00
Mark Harrah
5c8f212cf3
convert stray println to debug logging statement
2012-04-28 20:17:43 -04:00
Mark Harrah
408d11557d
handle Java sources not compiled in Mixed configuration
2012-04-28 18:58:52 -04:00
Mark Harrah
6769c94208
basis for a resident compiler
...
unstable, but can be tested with -Dsbt.resident.limit=n
n is the maximum Globals kept around
2012-04-28 18:58:52 -04:00
Mark Harrah
1cbb7ce93c
print-warnings task for Scala 2.10+ to avoid needing to rerun 'compile' to see deprecation/unchecked warnings
2012-03-17 19:31:55 -04:00
Jason Zaugg
a1cc62a598
Avoid copy-paste of Flags.MACRO with source-compatibility trickery.
2012-03-04 19:07:33 +01:00
Jason Zaugg
067917a0fb
Macro def aware recompilation.
...
- Read macro modifier from method definition.
- Always recompile downstream files after a file containing macro defs is recompiled.
- Source is extended with a hasMacro attribute. Mark suggests that this might be better
tracked in Relations, but I'm not sure how to make that change.
2012-03-04 17:35:51 +01:00
Mark Harrah
d61ae7899f
drop 2.7 compatibility in compiler reporter
2012-02-07 21:56:37 -05:00
Mark Harrah
c17bf071d7
simpler compatibility fix works ok
2012-02-04 21:10:30 -05:00
Mark Harrah
b5c4e5290e
fix compiler interface to work with 2.10.0-SNAPSHOT
2012-01-19 11:00:24 -05:00
soc
8ec1b9a841
Fix messages like “class class ...”.
2012-01-04 16:20:22 +01:00
Mark Harrah
cf450a963f
drop more 2.7 compatibility code
2011-11-27 17:48:01 -05:00
Mark Harrah
6405f2a6cb
cleanup 2.7 warn fatal setting compatibility
2011-11-04 18:39:25 -04:00
Mark Harrah
82ad44a701
preserve API information needed for detecting annotations on defs. fixes #232
2011-10-19 22:23:47 -04:00
Mark Harrah
1578341a10
add cleanupCommands setting to specify commands to run before interpreter exits. fixes #219
2011-10-16 17:27:36 -04:00
Mark Harrah
9d0cb47e0a
force REPL startup to be synchronous. fixes #175 .
2011-09-12 19:48:10 -04:00
Mark Harrah
ff95799af7
drop 2.7 support, fix fatal warnings support. fixes #153
2011-08-17 21:50:46 -04:00
Mark Harrah
0b3ec05a81
support incremental recompilation when using exportJars. fixes #108
2011-07-18 17:14:22 -04:00
Mark Harrah
bc5253e386
include retronym's compatibility patch, closes #5
2011-06-11 20:09:15 -04:00
Mark Harrah
c0a21c1524
implement shortcut for API equality checking, fixes #18
2011-06-01 02:19:46 -04:00
Mark Harrah
a94247d1b6
more release-worthy compile message and analysis toString
2011-05-29 19:17:31 -04:00
Mark Harrah
e840d66622
Turn some errors in API into warnings+emptyType
2011-05-25 08:09:24 -04:00
Mark Harrah
eef1fd8a10
fix #26
2011-05-25 07:57:14 -04:00
Mark Harrah
24dfb69400
an annotation can reference a non-simple type, fixes #24
2011-05-23 18:40:03 -04:00
Mark Harrah
9dec02ee51
fix analysis of Java sources being overwritten
2011-04-26 21:19:56 -04:00
Mark Harrah
801c0567fd
handle information only options that disable a full compilation
2011-04-01 21:04:08 -04:00
Mark Harrah
a79d06ab1f
temporary fix for #4426
2011-04-01 21:03:44 -04:00
Mark Harrah
d53d5fb7cf
api extraction fixes for self types and expanded names
2011-03-11 16:57:15 -05:00
Mark Harrah
4f4ae170d3
work on plugins, added console-project, re-integrated more tests
2011-02-24 23:30:06 -05:00
Mark Harrah
cc06667f3e
handle constant types
2011-02-14 18:59:54 -05:00
Mark Harrah
2a4f7ac564
compiler interface: 2.9 compatibility
...
nme.LOCALCHILD -> tpename.LOCAL_CHILD
handle NullaryMethodType
2011-02-08 20:30:15 -05:00
Mark Harrah
04e16ee86c
api extraction fixes
...
get members of nested modules by pulling from moduleClass
ignore classes ending with LOCALCHILD, which only appear with separate compilation
2010-11-09 20:49:23 -05:00
Mark Harrah
403fa42fa2
Type cache in API extraction for smaller cache size and faster I/O
...
manually implement Modifiers, use byte-size bit field
2010-10-30 17:46:56 -04:00
Mark Harrah
a76d75bca6
more flexible scalac logging
...
the custom scalac Reporter now delegates to an instance of
an sbt interface called xsbti.Reporter
handling compilation logging is now mainly done on the sbt-side of the
compiler interface
the xsbti.Reporter interface provides access to richer information
about errors and warnings, including source file, line, and offset
xsbti.Reporter can be implemented by users to get access to
detailed information without needing to parse the logging output
the CompileFailed exception that is thrown when compilation fails now
includes an array of the problems, providing detailed
error and warning information that can, for example, be consumed
by doing a mapFailure on 'compile' and using 'Compile.allProblems'
2010-10-23 16:34:22 -04:00
Mark Harrah
5ed8f3c042
improving incremental compilation
...
support lazy arguments in data type generator
SafeLazy implementation that explicitly clears the reference to the thunk
in API representation, drop synthetic modifier and merge deferred into abstract
handle cyclic structures in API generation, display, comparison, persistence
gzip compile cache file
bump to 2.8.1.RC3, project definition cleanup
fix main method detection to check for the right name
properly view inherited definitions
exclude constructors of ancestors
2010-10-22 21:55:16 -04:00
Mark Harrah
4164ad3529
fix detecting existence of default arguments
2010-09-27 18:48:12 -04:00