Commit Graph

57 Commits

Author SHA1 Message Date
Tim Pope 25f17ac25d Fix logic for preserving ns 2014-01-16 01:22:21 -05:00
Tim Pope e6c1f9eac1 Allow ignoring responses at transport layer
Future versions may make this async.
2014-01-16 01:02:10 -05:00
Tim Pope 0cfa1eed58 nREPL session cloning 2014-01-12 01:06:02 -05:00
Tim Pope 6a239c93af Indent 2014-01-12 00:52:40 -05:00
Tim Pope 62486afca7 Fix erroneous use of session when none requested 2014-01-12 00:52:40 -05:00
Tim Pope a9c3318817 Provide interface for ignoring a response 2014-01-11 19:29:07 -05:00
Tim Pope 1c55f88e7f Handle interrupt of eval
Closes #72.
2014-01-11 17:51:44 -05:00
Tim Pope e90aef2ac7 Separate nREPL transport and session concerns
The transport is still doing too much, but it's a good start.
2014-01-10 19:25:35 -05:00
Tim Pope fc0ab71587 Generalize call and add message abstraction 2014-01-10 13:30:32 -05:00
Tim Pope 40bad28354 Allow non-string arguments to python dispatch 2014-01-09 22:21:20 -05:00
Tim Pope 52758fd4ea Callback nREPL API
Pass a callback to call to have it invoked for each response message.
This might one day become asynchronous in certain circumstances, but
don't count it.
2014-01-09 01:00:45 -05:00
Tim Pope 02f28c5dbb Clean up our sessions 2014-01-08 20:59:08 -05:00
Tim Pope bf4ca57db1 Extract python command generation 2014-01-08 00:50:46 -05:00
Tim Pope 760f50f46e Argument switcharoo 2014-01-07 23:53:20 -05:00
Tim Pope 01e16d236b Extract payload preparation 2014-01-07 23:28:39 -05:00
Tim Pope 02ba3de54e Enable easier testing of Python exec 2014-01-07 23:26:26 -05:00
Tim Pope 15be24fc82 Abort python processes on Vim exit
You'd think a scripting language could handle portably checking if a pid
is still running but no.
2014-01-07 23:07:31 -05:00
Tim Pope 280b8d09b5 Fix warning misfire about broken sessions 2014-01-07 22:15:49 -05:00
Tim Pope c7258fce7c Send and filter by id 2014-01-07 20:03:06 -05:00
Tim Pope 023c8573ab Default to sending session id 2014-01-07 20:01:33 -05:00
Tim Pope 2073263c07 Generalize interface between Vim and Python 2014-01-07 16:58:47 -05:00
Tim Pope 9664516d5f So many missing aborts 2014-01-06 22:58:43 -05:00
Tim Pope 4ce1f8fbfa Python all the way 2014-01-06 22:41:03 -05:00
Tim Pope 90692edc35 Different gross hack for extracting backtrace
Now instead of wrapping the code up in a try/catch, we just use a series
of evals to grab *e and then restore *1/*2/*3.
2013-12-31 20:04:33 -05:00
Tim Pope fb5c946822 Slightly more elaborate hack to detect final nREPL response 2013-12-31 19:35:01 -05:00
Tim Pope 95652fc8c0 Accidental mutation 2013-12-31 19:34:52 -05:00
Tim Pope cd3bf333bf Use nrepl load-file for :[range]Eval
Closes #83.
2013-12-30 14:20:07 -05:00
Tim Pope 2efe294efb Fix for newer Pythons 2013-04-19 11:41:51 -04:00
Tim Pope 77444275fd Support Python 2.4 2013-04-17 13:35:47 -04:00
Tim Pope db27257f7f Rename foreplay.vim to fireplace.vim 2013-03-13 19:56:13 -04:00
Tim Pope fa6e35bc19 Remove old vendored classpath.vim 2013-03-13 19:49:03 -04:00
Tim Pope cd54b73e88 Fix Ruby nREPL connection on Windows
I do not understand why tripling quotes escapes them.

Closes #41.
2013-01-19 23:11:04 -05:00
Tim Pope f4e9f1c10a Use namespaces in critical path 2013-01-16 01:01:09 -05:00
Tim Pope fd8d623b7b Catch one line stack traces
References #38.
2013-01-15 20:45:44 -05:00
Tim Pope 286a1f6c47 Allow interrupting nREPL connection
Closes #30.
2013-01-10 23:09:54 -05:00
Tim Pope 7a36f4e8b8 Remove if_ruby adapter
The list of things worse than if_ruby is pretty short, and does not
include if_pyth.
2013-01-09 00:41:46 -05:00
Raymond W. Ko c7f2a2ab6b Fix eval with trailing comment in nREPL adapter 2013-01-09 00:13:21 -05:00
Tim Pope 6c2e33f715 Fix gilardi scenario 2013-01-07 18:58:01 -05:00
Tim Pope 528cb5b01a Capture nREPL stack trace 2013-01-07 01:51:48 -05:00
Tim Pope 0ff9cd710d Tighten error handling of lein autoconnect
Fixes #28.
2013-01-06 23:18:15 -05:00
Raymond W. Ko 9d64e45d8d Add option of using if_python if if_ruby is not available 2013-01-06 18:58:19 -05:00
Tim Pope fe8277b42f Extract classpath.vim to a separate plugin
Keeping it in the repository, for now.  Disable it with

	let g:no_foreplay_classpath = 1

This eliminates the startup delay at the cost of requiring a REPL to
evaluate code.

References #3.
2013-01-06 18:00:06 -05:00
Tim Pope 113bc5487f Clarify header of nrepl autoload file 2013-01-06 18:00:06 -05:00
Tim Pope e62540fef9 Separate user from system evals
This keeps the user's session clean by not using it for things the user
did not directly dispatch (such as omnicomplete).  On the fence but
currently included in the user session is commands like :Doc.
2013-01-05 00:08:32 -05:00
Tim Pope b21e531998 Don't hang on connecting to lein 1.7's REPL 2012-12-31 20:41:04 -05:00
Tim Pope 36bc4baa61 Really fix classpath detection on Windows 2012-12-31 20:35:23 -05:00
Tim Pope 8fc624b04e Fix classpath detection on Windows 2012-12-31 20:22:18 -05:00
Tim Pope 53c8e0408b Make the previous two commits actually work 2012-12-15 15:36:50 -05:00
Tim Pope 1aa3a32fbe Centralize output/throw from eval
Supports #7.
2012-12-15 01:32:08 -05:00
Tim Pope 5b42ed5c65 Reimplement nrepl/combine-responses 2012-12-15 01:31:22 -05:00