Mark Harrah
aadeb83591
work around URI problems with encoding and resolving. Fixes #725
2013-04-29 15:12:48 -04:00
Mark Harrah
96df93a104
Logger.Null that discards logged messages
2013-03-13 12:14:34 -04:00
Mark Harrah
e823befe52
minor cleanup of previous commit: var->val in sbt.JLine
2013-03-06 09:33:32 -05:00
Anthony
62aa5d4be2
Multi-line prompt text offset issue (ticket #625 )
2013-03-06 09:33:32 -05:00
Mark Harrah
7c58191e86
Convert references to harrah/xsbt to sbt/sbt
2013-01-05 10:18:14 -05:00
Mark Harrah
2296e874c1
make backported changes compatible with 2.9.x
2013-01-03 13:49:41 -05:00
Mark Harrah
a2a74ed57b
require a failure message for parser
2013-01-03 13:09:54 -05:00
Mark Harrah
2c1443892f
When preserving last modified, convert negative values to 0
...
File.lastModified can return a negative number, but File.setLastModified doesn't accept
negative numbers. See Java bug #6791812 .
2012-12-12 15:59:24 -05:00
Eugene Vigdorchik
7d8002c5e8
Filter out null parent files when deleting empty directories. Closes #589 .
2012-12-12 15:58:26 -05:00
Mark Harrah
5590c6252c
fix broken commit
2012-12-12 15:56:07 -05:00
Mark Harrah
be0279babb
Work around File constructor not accepting URIs for UNC paths. Fixes #564 .
2012-12-12 15:55:57 -05:00
Mark Harrah
16c9972686
Parser.failOnException method, don't let rhs of alias fail the parse. Fixes #572 .
...
alias only parses the right hand side for tab completion help.
The assignment should happen whether or not the parse is successful because the
context may change by the time the alias is actually evaluated.
In particular, the 'set' command uses the loaded project for tab completion in 0.12.1.
When a .sbtrc file is processed, the project has not been loaded yet, so aliases
involving set fail. Wrapping the rhs in failOnException addresses this.
2012-12-12 15:51:17 -05:00
Jason Zaugg
304f3d4ca6
Fix #552 Compensate for JLine's absent EOF detection.
...
In the unsupported terminal mode, JLine treats a broken
stdin as an endless stream of empty lines. This is problematic
for idea-sbt-plugin: if the IntelliJ process is forcibly killed
and leaves the child SBT process running, it consumes considerable
CPU processing these.
Patching JLine itself would be the cleanest solution (the change
has already been applied to JLine 2), but I've shied away from that
and instead wrapped the InputStream that is read by JLine to
intercept the result of -1 from read(). When this happens, the
flat `inputEof` is set to true.
2012-12-12 15:46:40 -05:00
Mark Harrah
0a6bb50ecc
better error message for null setting values
2012-12-12 15:44:03 -05:00
Eugene Vigdorchik
ed9ea1cf77
Fix compilation error for 2.10.0-M5 for all but main project.
2012-09-04 13:37:23 -04:00
Mark Harrah
c6223388d9
back all ConsoleLoggers by a common ConsoleOut
...
The common ConsoleOut merges (overwrites) consecutive Resolving xxxx ... lines
when ansi codes are enabled.
2012-09-04 13:30:34 -04:00
Mark Harrah
62a3eb48f7
defer opening logging output files until an actual write
2012-09-04 13:26:33 -04:00
Mark Harrah
8213b24bd9
clean up token completions and make providing a general completion function easier
2012-09-04 13:00:57 -04:00
Mark Harrah
357d61236f
basic code for cleaning up Manifest.toString
2012-09-04 13:00:57 -04:00
Mark Harrah
efc1bcd93a
clean up Completions and allow arbitrary 'display' for Token
2012-09-04 13:00:57 -04:00
Mark Harrah
6ce8c0ab75
JLine completion integration now considers a suggestion with a newline to be preformatted
2012-09-04 13:00:57 -04:00
Mark Harrah
37d9f5509b
methods for working with Scala identifiers
2012-09-04 13:00:57 -04:00
Mark Harrah
4659b2b0c4
print completions containing a newline first and on separate lines
2012-09-04 13:00:57 -04:00
Mark Harrah
b6b78618f5
in IO.copyFile, limit maximum size transferred via NIO. fixes #491
2012-07-06 10:28:51 -04:00
Mark Harrah
8d20a7ea19
repeatDep parser combinator
2012-07-06 10:28:51 -04:00
Mark Harrah
d8f5c39465
remove most occurrences of ScalaObject
2012-07-01 15:16:41 -04:00
Mark Harrah
e2b5ce374c
fix task tests
2012-07-01 15:16:41 -04:00
Mark Harrah
b46eb41d6c
better handling of multi-loggers with mixed escape sequence support
...
* multi-logger supports ansi escapes if at least one logger support them
* escape sequences removed from strings for loggers without escape support
2012-07-01 15:16:41 -04:00
Mark Harrah
ba8aa932fb
scala-reflect.jar for the ScalaInstance derived from scalaHome
2012-06-16 23:40:52 -04:00
Eugene Vigdorchik
e6f858f292
Test RichURI.
2012-06-15 07:54:14 -04:00
Eugene Vigdorchik
945fdd5baa
Use raw methods on URI where a single string representation is constructed. URI(String) assumes no special characters.
2012-06-15 07:54:14 -04:00
Eugene Vigdorchik
47c9645892
Use raw method not to unescape special characters. Fixes #478
2012-06-12 07:15:17 -04:00
Mark Harrah
cf2402cea4
another fix related to #460
2012-05-23 20:13:52 -04:00
Mark Harrah
e34b8e4bf2
print message and stack trace when exception occurs in completion
2012-05-21 22:23:44 -04:00
Mark Harrah
5ff33fad3e
Second try at printing message when stack trace suppressed.
...
Problems:
1. Without a message, users don't find 'last'
2. Showing a message for every error clutters output.
This tries to address these issues by:
1. Only showing the message when other feedback has not been provided and
'last' would not usually be helpful. This will require ongoing tweaking.
For now, all commands except 'compile' display the message. 'update' could
omit the message as well, but perhaps knowing about 'last' might be
useful there.
2. Including the exact command to show the output:
last test:compile
and not just
last <task>
3. Highlighting the command in blue for visibility as an experiment.
Review by @ijuma and @retronym, please.
2012-05-19 18:20:19 -04:00
Mark Harrah
1f612aaecb
ensure enableEcho called after jline.Terminal.getTerminal. fixes #460
2012-05-19 18:20:19 -04:00
Eugene Vigdorchik
dabb0fd377
Refactor according to the comments.
2012-05-17 07:24:24 -04:00
Eugene Vigdorchik
2b1f21a21c
Additional method in ProcessIO to process inheriting input.
2012-05-17 07:24:24 -04:00
Eugene Vigdorchik
8d123081a2
Use java 7 Redirect.INHERIT to inherit subprocess' input stream.
2012-05-17 07:24:24 -04:00
Mark Harrah
4e6cbd7304
delete symlink and not its contents when recursively deleting a directory
2012-05-11 21:24:05 -04:00
Mark Harrah
9414f98f2c
classfile analyzer should pass full name to AnalysisCallback
2012-05-08 20:25:25 -04:00
Mark Harrah
99a04466f1
move to revised warning interface in the compiler
2012-05-06 14:15:03 -04:00
Mark Harrah
9f80180859
buffer url input stream returned by Using. fixes #437
2012-04-30 20:50:28 -04:00
Mark Harrah
2e868e6d67
Merge pull request #433 from vigdorchik/optimize_java_compile
...
Do not load classes for dependencies since having URLs is enough.
2012-04-19 09:30:05 -07:00
Mark Harrah
d837f869bd
using some of the embedding interfaces
2012-04-18 11:02:52 -04:00
Mark Harrah
d0899419e7
Revert "Revert "Work around scalac issue causing boxing." (ClassNotFoundException)" (Reverted wrong commit.)
...
This reverts commit 7dac90fffe .
2012-04-18 03:14:59 -04:00
Mark Harrah
7dac90fffe
Revert "Work around scalac issue causing boxing." (ClassNotFoundException)
...
This reverts commit 6c090313da .
2012-04-17 05:13:27 -04:00
Paul Phillips
6c090313da
Work around scalac issue causing boxing.
...
Tableswitch slightly cheaper than a couple million trips
through the Byte box.
2012-04-16 19:42:58 +01:00
Eugene Vigdorchik
cbb1e3daf2
Do not load classes for dependencies since having URLs is enough.
2012-04-16 18:48:31 +04:00
Mark Harrah
a36212886d
Merge pull request #427 from pvlugter/root-loader
...
Use system classloader when finding root classloader
2012-04-13 02:59:48 -07:00