Mark Harrah
19315265c1
taking care of deprecations removed in Scala master
2012-11-14 11:48:06 -05:00
Mark Harrah
1f88fe9d7c
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-10-15 12:42:27 -04:00
Jason Zaugg
efa362c583
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-09-23 15:58:15 -04:00
Mark Harrah
e5ffceaef8
clean up token completions and make providing a general completion function easier
2012-07-13 14:33:27 -04:00
Mark Harrah
fa97cc0d22
basic code for cleaning up Manifest.toString
2012-07-13 14:33:27 -04:00
Mark Harrah
73166e2e57
clean up Completions and allow arbitrary 'display' for Token
2012-07-13 14:33:27 -04:00
Mark Harrah
af85595da0
JLine completion integration now considers a suggestion with a newline to be preformatted
2012-07-13 14:33:27 -04:00
Mark Harrah
9fea4d1703
methods for working with Scala identifiers
2012-07-13 14:33:27 -04:00
Mark Harrah
a509c47207
print completions containing a newline first and on separate lines
2012-07-13 14:33:27 -04:00
Mark Harrah
e9ed0feb87
repeatDep parser combinator
2012-07-06 10:28:51 -04:00
Mark Harrah
935eed087f
another fix related to #460
2012-05-23 20:13:52 -04:00
Mark Harrah
fbee96939d
print message and stack trace when exception occurs in completion
2012-05-21 22:23:44 -04:00
Mark Harrah
eec347e2dd
ensure enableEcho called after jline.Terminal.getTerminal. fixes #460
2012-05-19 18:20:19 -04:00
Mark Harrah
740094c4d2
enhance 'projects' to allow temporarily adding/removing builds to the session
2012-04-06 20:28:31 -04:00
Mark Harrah
ec8f9884e0
fix sample method interpretation of completions argument
2012-03-25 20:36:05 -04:00
Mark Harrah
0e130d29e9
fix argument parsing, which unintentionally required two characters. ref #396
2012-03-13 08:01:58 -04:00
e.e d3si9n
9239e2fd46
fixes NotQuoted
2012-03-11 15:02:50 -04:00
e.e d3si9n
feb315b878
StringVerbatim is now stateless
2012-03-11 13:19:13 -04:00
e.e d3si9n
e6e778a1a3
removed Octal
2012-03-11 13:12:23 -04:00
e.e d3si9n
8a7a3228e8
implemented parser for escaped string and verbatim string
2012-03-11 07:31:39 -04:00
Mark Harrah
48170f649a
convenience functions for testing parsers
2012-03-10 14:16:40 -05:00
Mark Harrah
d6bc087271
handle absence of CONT signal
2012-03-09 13:38:45 -05:00
Mark Harrah
1848d14815
handle CONT signal to reset JLine after resuming from stop. fixes #394
2012-03-09 07:08:38 -05:00
Mark Harrah
26be0c0be4
move error processing to complete/
2012-03-09 07:08:38 -05:00
Mark Harrah
f11a053cc9
Merge branch 'parsing_changes' into 0.12
2012-01-15 13:09:41 -05:00
Mark Harrah
c3c7c92053
work around unclosed jline history-related streams
2012-01-14 21:09:11 -05:00
Mark Harrah
392ec5150a
moved task axis before the key
2012-01-09 08:00:29 -05:00
Mark Harrah
a9ccd74eb8
fix 'not' parser combinator, add EOF
2011-12-13 17:29:08 -05:00
Mark Harrah
0ff6b65376
treat case differences differently
2011-12-13 17:15:05 -05:00
softprops
591f90ce71
add support for a masked readline
2011-10-13 20:42:39 -04:00
Mark Harrah
f8e3084e8f
fix parser test
2011-10-01 14:40:14 -04:00
Mark Harrah
3d4ad0b076
fix laziness of parser failure messages
2011-09-26 08:20:07 -04:00
Mark Harrah
9756e99e16
provide consecutive tab press count for completion combinators
2011-09-20 20:51:47 -04:00
Mark Harrah
4a5a64a8f0
fix ++ command to not require a space after it
2011-08-14 10:53:37 -04:00
Mark Harrah
b35d9bfcfb
preserve key+configuration ambiguity through task+extra parsing. fixes #135
2011-08-05 21:59:49 -04:00
Mark Harrah
f2328e164e
add ability to hide a token until it is explicitly started
2011-07-24 22:35:27 -04:00
Mark Harrah
b272920ef3
clean up whitespace handling in commands. fixes #97
2011-07-12 07:47:31 -04:00
Mark Harrah
eec68ee8da
minor changes to parsers
2011-06-17 18:03:59 -04:00
Mark Harrah
f0608da0a8
more release-worthy compile message and analysis toString
2011-05-29 19:17:31 -04:00
Mark Harrah
7c2880915d
Use standard {build}/id syntax for 'project' command
2011-05-07 22:02:06 -04:00
Mark Harrah
767beb7993
test fixes
2011-05-07 22:02:05 -04:00
Mark Harrah
58d2e3415c
trying out different costs for edit distance
2011-04-26 22:29:30 -04:00
Mark Harrah
f4998e1d4a
fix tab completion for filtered parsers
2011-04-26 20:49:43 -04:00
Mark Harrah
21b95c1b72
work on parser error handling
2011-04-25 20:20:05 -04:00
Mark Harrah
df1e038481
fix matched signature
2011-04-19 22:20:16 -04:00
Mark Harrah
23fed6d061
use left, some, right to avoid extra anonymous classes
2011-04-19 17:58:05 -04:00
Mark Harrah
e016e644ae
newline before JLine's above threshold prompt
2011-03-25 18:22:30 -04:00
Mark Harrah
339c59bad4
tab completion: print message when input is invalid
2011-03-24 21:28:02 -04:00
Mark Harrah
7feebe2f85
tab completion: example-checking off by default, 'matches' convenience method
2011-03-24 21:28:02 -04:00
Mark Harrah
309bc5caeb
reintegrate history commands, add proper parsing for recursive commands
2011-03-11 16:52:44 -05:00