Commit Graph

329 Commits

Author SHA1 Message Date
Tim Pope
f605cd7824 Do all classpath searching locally
In addition to being cleaner, this means we no longer need to worry
about evaling on a "local" server.
2014-01-11 17:48:04 -05:00
Tim Pope
cf094f970f Retrieve ns for arbitrary buffer 2014-01-11 17:48:04 -05:00
Tim Pope
56d667b7d5 Allow retrieving client for arbitrary buffer
Currently, only the one-off client is fully decoupled.
2014-01-11 17:48:04 -05:00
Tim Pope
bbab5786df Add missing import 2014-01-11 17:48:04 -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
28a6c2c262 Fix cpp on closing bracket
Closes #122.
2014-01-09 14:32:16 -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
382869c6c7 Convenience function for nrepl call
This is mainly for my own debugging, but might evolve in to a real API.
I'm not sure if it's the right place to do a require.
2014-01-09 00:52:25 -05:00
Tim Pope
02f28c5dbb Clean up our sessions 2014-01-08 20:59:08 -05:00
Tim Pope
18d60a3fa5 Allow calling findresource with custom path 2014-01-08 20:05:46 -05:00
Tim Pope
0fdde20654 Better errors on unexpected bencode data
Also fix indent.
2014-01-08 19:59:36 -05:00
Tim Pope
1f3f36505e Unify :Eval and cpp
Now both operations select the exact outermost form use load-file for
proper file/line metadata.
2014-01-08 01:36:39 -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
77df83250f Restore accidentally deleted polling 2014-01-07 19:26:23 -05:00
Tim Pope
2073263c07 Generalize interface between Vim and Python 2014-01-07 16:58:47 -05:00
Tim Pope
1b2e58db97 Allow debugging connection failures 2014-01-07 14:07:08 -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
fa4e0ed143 Fix debugging statement 2014-01-06 22:35:42 -05:00
Tim Pope
bb84d556bc Fix :Connect with argument
References #120.
2014-01-06 12:49:12 -05:00
Tim Pope
7277fc4e6d Fix :Connect with no arguments
Closes #120.
2014-01-06 11:38:50 -05:00
Tim Pope
9aa2071b17 Allow overriding buffer namespace 2014-01-01 17:15:35 -05:00
Tim Pope
973014a626 Encapsulate user ns 2014-01-01 13:35:33 -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
d3f7f2cf26 Change cpp from innermost to outermost
Closes #116.
2013-12-26 11:21:20 -05:00
Tim Pope
f1b8096b3f Merge pull request #108 from actionshrimp/last-err
Include compilation errors in s:history for :Last
2013-10-23 21:25:53 -07:00
Dave Aitken
b57c21c29b Include compilation errors in s:history for :Last
If the repl doesn't return a value due to an error during compilation
(EOF due to missing bracket, unrecognised symbol), the response has no
value and as a result is not added to the history. However it's useful
to add it so it can be inspected with :Last to aid with fixing the issue.
2013-10-17 20:06:54 +01:00
Tim Pope
92644485d6 Merge pull request #101 from bnwasteland/lein232-portfile
As of Leiningen 2.3.2 there is yet another portfile convention
2013-09-14 14:48:39 -07:00
Jace Bennett
740ca20ff1 As of Leiningen 2.3.2 there is yet another portfile convention 2013-08-20 23:49:40 -04:00
Tim Pope
52d906b3a4 Merge pull request #98 from jgdavey/master
Search for repl-port file in common places
2013-08-16 10:47:14 -07:00
Joshua Davey
4db39ee484 Search for repl-port file in common places
As of Leiningen 2.3, different profiles activate different target
sub-directories. In the case of the repl, that means the repl-port file
is now located at target/repl/repl-port.
2013-08-14 14:19:16 -05:00
Aaron Miller
0127e5fc54 Fully macroexpand using macroexpand-all 2013-08-06 01:43:19 -04:00
Joshua Davey
235a4ec3e8 Make alternates function public 2013-08-06 01:43:19 -04:00
Tim Pope
8f925c9342 Merge pull request #71 from rasmusto/fugitive-integration
handle "fugitive:.*" file in s:repl.includes_file
2013-08-01 21:50:34 -07:00
Chris Ford
4490d2a882 Macroexpand motions
Bind cm{motion} to full macro expansion of the form described by
the motion (using clojure.core/macroexpand), and bind c1m{motion}
to partial macro expansion of the form described by the motion
(using clojure.core/macroexpand-1).

cmm and c1mm will apply the expansion to the form under the cursor.
2013-07-23 18:18:31 -04:00
Tim Pope
b96ccf7441 Merge pull request #85 from benmoss/master
Fix typo in docs
2013-06-30 19:26:14 -07:00
Ben Moss
204a8de243 Fix typo 2013-06-30 18:59:59 -04:00
Torben Rasmussen
34e0d0c964 handle "fugitive:.*" files in s:repl.includes_file
When sending code to the repl from a fugitive :Gd
or :Ge, remove the "fugitive://" prefix, and
"/.git/<rev number>/" path from the buffer name.

This allows for evaluation of code from previous
revisions of a file when inside of a fugitive :Gdiff
or :Gedit window.
2013-04-27 12:23:41 -07:00