Commit Graph

2768 Commits

Author SHA1 Message Date
Mark Harrah 88200480ee Docs: typo in faq 2013-08-16 14:21:44 -04:00
Mark Harrah 6c3570a133 Docs: fix |release| subsitution 2013-08-16 14:21:44 -04:00
Mark Harrah d847d4ea2f API docs for CrossVersion 2013-08-16 14:21:44 -04:00
Mark Harrah 46782d95bb latest site plugin 2013-08-16 14:21:44 -04:00
Mark Harrah 8fd8c5fe94 Docs: version reorganization again in conf.py 2013-08-08 21:24:18 -04:00
Mark Harrah 41933b4e31 use specific hashes for source-plugins test for reliability 2013-08-08 21:24:18 -04:00
Mark Harrah 5f2b5d4ad4 Docs: fix node constructed by code_literal role 2013-08-08 21:24:17 -04:00
Mark Harrah a09075c98c Docs: Fix tasklevel section in the logging howto. Ref #843 2013-08-08 21:24:17 -04:00
Mark Harrah 70a54b9848 initial refresh of getting started guide for 0.13: multiple projects and plugins
still todo: Custom-Settings, Full-Def
2013-08-07 18:24:19 -04:00
Mark Harrah 6d981e4c5b Docs: add sublit role that processes inline formatting, make default codeliteral role do no additional processing.
This was necessary because too many `` uses had * or | in them.
2013-08-07 18:24:19 -04:00
Mark Harrah 89d15ed1f9 Use repo.scala-sbt.org everywhere to be more independent of hosting details. 2013-08-07 18:24:19 -04:00
Mark Harrah f8e66fe89c Docs: remove remnants of static site 2013-08-07 18:24:19 -04:00
Mark Harrah 53e6db4831 fix ForkScala.fork overload, which forwarded to itself, looping 2013-08-06 13:59:19 -04:00
Mark Harrah ebd35983b1 API docs: Fork.scala 2013-08-06 13:59:19 -04:00
Mark Harrah 6488721378 Docs: note that JLine now looks at .inputrc 2013-08-06 13:59:19 -04:00
Jacek Laskowski 3b289c1569 Update CONTRIBUTING.md 2013-08-01 16:05:46 -04:00
Johannes Rudolph 701206b54d prevent another StringIndexOutOfBoundsException in Graph.toAscii 2013-07-31 15:31:04 +02:00
Mark Harrah f5a6aa42b1 Docs: expand new issue section of CONTRIBUTING 2013-07-31 08:02:10 -04:00
James Roper 1eaf548bcd Added shutdown hook for restoring the terminal 2013-07-30 19:02:10 +10:00
Mark Harrah 5139a2f148 fix actions/aggregate, which used deprecated ScopedSetting alias 2013-07-29 20:11:05 -04:00
Eugene Yokota fd03ad67f2 refix #795
`math.min` should have been `math.max` here.
It's currently chopping off the output of inspect tree.
2013-07-29 16:33:53 -04:00
Mark Harrah 4ab037c5cd remove Process from base imports in .sbt files and eval
The implicits are already in the sbt package object.
2013-07-29 14:14:04 -04:00
Mark Harrah 098ac0e1c2 remove deprecated top-level aliases 2013-07-29 14:13:52 -04:00
Mark Harrah c14179c358 Docs: custom role 'codeliteral' to allow substitutions in inline code
The built-in 'literal' role implements ``.  It tokenizes the
literal string to attempt some particular wrapping behavior.
This puts parts of the string in different spans, each with
class='pre' and the previous docs.css had a padding for that
class.  This led to excessive space within the literal string.

The custom role does no do this tokenization, but nested
inline parsing can result in multiple nodes, repeating the
problem.  So, the padding for class='pre' is dropped.  Ideally,
the sequence of nodes would simply be wrapped in an inline element
with class='pre' or some other proper solution that avoids having
multiple nodes.

To avoid wrapping in the middle of a literal, the 'pre' class
now has the style `white-space: pre;`.

The default role is now 'codeliteral' and the previous
uses of the built-in `` are converted to `.  Some incorrectly
converted code blocks were fixed in the process.

Finally, the Global-Settings page is updated with the new location
for the global sbt directory.  Due to the above changes, this could
be done without hardcoding the version.
2013-07-29 07:27:17 -04:00
Mark Harrah f29b37e9d3 Docs: deterministic ordering of howto index 2013-07-29 07:27:17 -04:00
Mark Harrah 656506a7a7 Use actual release version in the site search base. Fixes #829. 2013-07-26 19:41:41 -04:00
Mark Harrah a0e301e3d8 Pick the first test fingerprint for a given suite/class name. Fixes #827.
This drops older code that picked a single fingerprint within a framework.
This commit ensures only one name is executed across all frameworks.
The precedence is the order that frameworks are declared in Defaults.scala.
JUnit should be last because it is common for specs tests to be annotated
  with @RunWith for Eclipse support.  If a distinct fingerprint is not
  picked, the test will be run by both specs and JUnit.
In addition to this main reason, result processing code assumes one result
  per test class name and would have to be fixed if multiple fingerprints
  were allowed.
2013-07-25 17:36:11 -04:00
Grzegorz Kossakowski beea6a9b4a Move API extraction logic to a separate class.
This way we have a little bit more clear separation
between compiler phase logic and the core logic responsible for
processing each compilation unit and extracting an api for it.

As added benefit, we have a little bit less of mutable state
(e.g. sourceFile doesn't need to be a var anymore).

The API extraction logic contains some internal caches that are
required for correctness. It wasn't very clear if they have to
be maintained during entire phase run or just during single compilation
unit processing. It looks like they have to be maintained during
single compilation unit processing and refactored code both
documents that contracts and implements it in the API phase.
2013-07-24 15:18:44 -07:00
Grzegorz Kossakowski 7d4cf7b8ab Factor out class file lookup out of Analyzer class.
Move logic related to class file lookup to separate class that
can be reused outside of Analyzer class.
2013-07-23 17:11:42 -07:00
Grzegorz Kossakowski aec466cb4d Factor out compiler interface compatibility layer.
Move collection (a class `Compat`) of compatibility hacks into separate
file. This aids understanding of the code as both Analyzer and API make
use of that class and keeping it `Analyzer.scala` file suggested that
it's used only by Analyzer.
2013-07-23 15:19:24 -07:00
Mark Harrah 7dadbf1fc6 Drop unneeded import that triggers SI-7690. 2013-07-23 15:20:45 -04:00
Mark Harrah 4123769214 inline implementation of Symbol.isTopLevelModule, which no longer exists in 2.11 2013-07-23 11:35:34 -04:00
Lloyd Meta 7ef27f7c57 Modify wording to be a bit more clear 2013-07-21 23:15:08 +09:00
Lloyd Meta 44d8a7de71 Update PGP signing plugin details in the summary
Since the recommended plugin is sbt-pgp, it was a little confusing to reach
the bottom of the [Deploying to Sonatype](http://www.scala-sbt.org/release/docs/Community/Using-Sonatype.html#summary) guide and
see references to the `xsbt-gpg-plugin` whereas the [top of the page](http://www.scala-sbt.org/release/docs/Community/Using-Sonatype.html#first-pgp-signatures) talks about using sbt-pgp.
2013-07-21 23:07:35 +09:00
Mark Harrah 61509408c9 Deprecate seq. The implicits Seq[Setting[_]] <-> SettingsDefinition handle the typical plugin/build.sbt case. 2013-07-19 20:50:10 -04:00
Mark Harrah 2e0257f440 Alias from Project->Def for SettingsDefinition 2013-07-19 20:50:10 -04:00
Mark Harrah 033829d4a0 init/restore instead of setEchoEnabled in order to handle full jline customizations. Fixes #822. 2013-07-19 20:03:06 -04:00
Mark Harrah ab5e81fc23 Merge remote-tracking branch 'cancel-bug' into 0.13 2013-07-19 18:56:01 -04:00
Grzegorz Kossakowski d77930394f Handle compilation cancellation properly.
Incremental compiler didn't have any explicit logic to handle
cancelled compilation so it would go into inconsistent state.

Specifically, what would happen is that it would treat cancelled
compilation as a compilation that finished normally and try to
produce a new Analysis object out of partial information collected
in AnalysisCallback. The most obvious outcome would be that the
new Analysis would contain latest hashes for source files. The
next time incremental compiler was asked to recompile the same files
that it didn't recompile due to cancelled compilation it would think
they were already successfully compiled and would do nothing.

We fix that problem by following the same logic that handles compilation
errors, cleans up partial results (produced class files) and makes sure
that no Analysis is created out of broken state.

We do that by introducing a new exception `CompileCancelled`
and throwing it at the same spot as an exception signalizing compilation
errors is being thrown. We also modify `IncrementalCompile` to
catch that exception and gracefully return as there was no compilation
invoked.

NOTE: In case there were compilation errors reported _before_
compilation cancellations was requested we'll still report them
using an old mechanism so partial errors are not lost in case
of cancelled compilation.
2013-07-19 14:39:26 -07:00
Mark Harrah 0a77a47f41 Revert "Don't import the Global.Range in 2.11, which shadows the collection Range"
This reverts commit 5d7d9c4cef.  Can't do it this way
since Global.Range doesn't exist in 2.10.
2013-07-19 07:20:12 -04:00
Mark Harrah 50feb1c383 additional helpers to build against 2.11 nightlies 2013-07-18 22:45:04 -04:00
Mark Harrah 5d7d9c4cef Don't import the Global.Range in 2.11, which shadows the collection Range 2013-07-18 22:41:52 -04:00
Mark Harrah 5fe35be7a3 specify explicit type to work around 2.11 volatile override error 2013-07-18 22:38:16 -04:00
Mark Harrah 2195de1451 remove redundant crossPaths settings 2013-07-18 22:36:40 -04:00
Mark Harrah b92d82ba79 bump to sbinary 0.4.2, which is the same as 0.4.1 but the 2.11 version has the right scala-xml metadata 2013-07-18 18:13:57 -04:00
Mark Harrah c127461ea1 set jline.esc.timeout=0 to prevent it from creating a Thread 2013-07-18 15:41:45 -04:00
Mark Harrah fda6b33c8b Docs: use 0.13.0 on Launcher page 2013-07-17 16:47:41 -04:00
Mark Harrah 3caed0bba8 Docs: consoleProject and .eval 2013-07-17 14:58:53 -04:00
Mark Harrah a4d0a0cb5a Provide implicits in consoleProject to add .eval to task and setting keys. Fixes #815. 2013-07-17 14:58:53 -04:00
Mark Harrah 4b8f0f3f94 Use IMain.bindValue to bind repl values. This does a better job of getting the type to use for a bound value. 2013-07-17 14:58:53 -04:00