Commit Graph

204 Commits

Author SHA1 Message Date
Tim Pope
385d8288db Fix null namespace issue 2014-01-18 23:15:53 -05:00
Tim Pope
81ca22bfe2 Fix cpp with piggieback 2014-01-17 22:16:18 -05:00
Tim Pope
0d7b97df7c Initial piggieback support 2014-01-17 20:28:10 -05:00
Tim Pope
0520e4fa32 Extract disconnection cleanup for general use 2014-01-17 17:52:02 -05:00
Tim Pope
a568535bcd Support buffer path without classpath.vim 2014-01-17 05:44:42 -05:00
Tim Pope
64f0ae7bbe Extract spawning eval logic 2014-01-17 05:03:09 -05:00
Tim Pope
ee141c0256 Do people test ClojureScript? 2014-01-17 04:35:30 -05:00
Tim Pope
6e7f22766a Disconnect when port file disappears 2014-01-17 04:30:46 -05:00
Tim Pope
91e3b35403 Kill debug 2014-01-17 00:27:45 -05:00
Neil Kirsopp
fef85624d3 Anchor to end of ns string 2014-01-15 23:40:36 -05:00
Neil Kirsopp
b92a9730f0 Very basic Midje alternate 2014-01-15 23:40:18 -05:00
Tim Pope
ef422f66e2 Remove require from client interface 2014-01-15 23:38:04 -05:00
Tim Pope
15f98b06f7 Leverage 'suffixesadd' 2014-01-15 21:37:03 -05:00
Tim Pope
76a99139d1 Remove s:client 2014-01-15 21:37:03 -05:00
Tim Pope
2a6d23f2fc Fix 2014-01-15 19:26:00 -05:00
Tim Pope
c4f677ee64 Fix fireplace#source 2014-01-14 16:28:21 -05:00
Tim Pope
4d93831925 Move includes_file out of repl client 2014-01-13 16:37:44 -05:00
Tim Pope
7c0c524259 Restore fireplace#eval for compatibility
Use fireplace#session_eval if you want to evaluate something from the
user, and fireplace#evalparse if you want to query for information.
2014-01-12 14:58:28 -05:00
Tim Pope
b56e40a2b6 Provide fireplace#path() to access class path 2014-01-12 14:00:13 -05:00
Tim Pope
98cd5e1515 Don't show stacktrace from failed java exec 2014-01-12 13:34:52 -05:00
Tim Pope
af245caf76 Propagate require error to eval 2014-01-12 01:06:11 -05:00
Tim Pope
09a0ed93cf Encapsulate disconnection detection 2014-01-12 01:06:01 -05:00
Tim Pope
9c48439da7 Leverage evalparse 2014-01-12 01:06:01 -05:00
Tim Pope
a0fde95d2e Remove unused function 2014-01-12 01:06:01 -05:00
Tim Pope
c2a90eb47f One weird trick to force namespace creation 2014-01-11 23:43:08 -05:00
Tim Pope
355580da7e Accidental commit 2014-01-11 21:55:55 -05:00
Tim Pope
c99bda551e Use python for zipfile contents when possible 2014-01-11 21:11:09 -05:00
Tim Pope
0299eac671 Adjust comment stripping heuristic for cq
Closes #89.
2014-01-11 19:10:45 -05:00
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
fc0ab71587 Generalize call and add message abstraction 2014-01-10 13:30:32 -05:00
Tim Pope
28a6c2c262 Fix cpp on closing bracket
Closes #122.
2014-01-09 14:32:16 -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
18d60a3fa5 Allow calling findresource with custom path 2014-01-08 20:05:46 -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
023c8573ab Default to sending session id 2014-01-07 20:01:33 -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
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
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
Jace Bennett
740ca20ff1 As of Leiningen 2.3.2 there is yet another portfile convention 2013-08-20 23:49:40 -04: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
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
Tim Pope
4f6b8e5237 Don't auto-open location list
Closes #48.
2013-04-19 16:47:53 -04:00
Tim Pope
7984a4c260 Fix cryptic error on :Connect 2013-04-19 16:47:37 -04:00
Tim Pope
55255578bb Cease deleting stale port files
The Leiningen 2 prereleases liked to leave stale port files behind, but
this is fixed in the final release.
2013-04-18 11:12:49 -04:00
Jacek Lach
5aa33b2cca Handle single keyword metadata on namespace name
I.e. (ns ^:integration my-namespace)
2013-04-10 22:37:31 -04:00
Tim Pope
21d5c81eab Clean up require errors on gf and ]d 2013-04-10 22:34:28 -04:00
Tim Pope
83ce4440ae Take away cpR
@cemerick says I should take away all the reloading and just support
load-file, but I'm starting with the most egregious offender.
2013-04-04 13:49:11 -04:00
Tim Pope
1b92e0a7dd Fix global setting of 'nomodifiable'
It doesn't make sense that we have to do this, as 'nomodifiable' is
documented as being buffer local.

Closes #58.
2013-04-01 13:09:19 -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
c1c3f9e917 Typo fix 2013-03-12 16:06:05 -04:00
Tim Pope
699dff447f Better representation of require errors
Should help with #56.
2013-03-06 17:15:57 -05:00
Tim Pope
5b57f37802 Allow non-interactive :Connect
Closes #46.
2013-02-14 00:12:45 -05:00
Tim Pope
8d253a9fdf Support speclj in :A
Closes #45.
2013-02-13 18:31:13 -05:00
Tim Pope
873623df59 Fix spacing in error 2013-02-13 12:58:50 -05:00
Dave Ray
7d47c7ec4c Qualify clojure.core symbols
I was having problems with the raw use of list in the :Doc command as
well as require in :Require. Fully qualifying them fixes the issue.
2013-02-12 19:53:22 -08:00
Tim Pope
8c0eae19ab Gather escaping functions 2013-02-10 13:30:26 -05:00
Tim Pope
9749177034 Don't assume src/ in Leiningen projects
Fun fact: it's impossible to reliably predict whether a given
project.clj is a Leiningen project file or not.

Closes #51.
2013-02-10 11:48:48 -05:00
Tim Pope
eff7bcec61 Rename functions again 2013-02-08 12:14:58 -05:00
Tim Pope
a1068949b1 Support booleans in foreplay#evalparse 2013-02-08 10:26:14 -05:00
Tim Pope
a6012b5032 Rename foreplay#eval to foreplay#eval_pr_str
Goal is to rename foreplay#evalparse to foreplay#eval.
2013-02-08 00:35:15 -05:00
Tim Pope
b94a694254 Rename foreplay#evalprint to foreplay#eval_prn 2013-02-08 00:34:13 -05:00
Tim Pope
105b01d7d0 Provide :Last
Closes #7.
2013-01-29 19:15:21 -05:00
Tim Pope
d2bc102487 Alternate between test and implementation
Closes #33.
2013-01-25 12:27:03 -05:00
Tim Pope
f653f18e64 Fix gf when file hasn't been required yet
Closes #44.
2013-01-25 11:22:10 -05:00
Jacek Lach
511a123421 Decode paths for aliased namespaces. 2013-01-25 15:09:04 +00:00
Tim Pope
53201c89de Fix recognition of REPL disconnection 2013-01-24 16:38:00 -05:00
Tim Pope
7ff2191a30 Automatically open location list on exception
Closes #39.
2013-01-23 22:23:42 -05:00
Tim Pope
c0bdf9b971 Fix decoding URLs 2013-01-19 23:06:57 -05:00
Tim Pope
a80ff87f94 Better handling of resource paths on Windows
References #40.
2013-01-19 23:01:53 -05:00
Tim Pope
274c4da054 Apply fnameescape() to source location
References #40.
2013-01-19 16:32:57 -05:00
Paul deGrandis
da70e71023 Fixed a typo bug; gd in new tab 2013-01-19 12:33:44 -08:00
Tim Pope
f4e9f1c10a Use namespaces in critical path 2013-01-16 01:01:09 -05:00
Tim Pope
aed21575b8 Fix stack trace parsing with "Unknown Source"
Closes #37.
2013-01-15 21:35:40 -05:00
Tim Pope
123bea5850 Fix stack trace parsing with one-off runner 2013-01-15 21:34:41 -05:00
Tim Pope
6f93e99ede Strip all carriage returns out of output
Closes #38.
2013-01-15 20:17:59 -05:00
Tim Pope
fbd8a0844a OCD 2013-01-15 20:04:46 -05:00
Tim Pope
1db6dbed3f Cache executable('zipinfo') for speed on Windows
Closes #36.
2013-01-15 19:17:55 -05:00
Tim Pope
879443c846 Fewer explosions when gf goes wrong 2013-01-13 10:28:25 -05:00
Tim Pope
058da0d71c Account for long ns doc strings 2013-01-09 00:07:24 -05:00
Tim Pope
fbfc6e09b4 Load stack traces into location list.
Closes #20.
2013-01-07 22:41:04 -05:00
Tim Pope
84168b7c5e Monkey patch to support zip files in quickfix 2013-01-07 22:32:57 -05:00
Tim Pope
be964782b8 Remove half baked crap 2013-01-07 01:55:08 -05:00
Tim Pope
0ff9cd710d Tighten error handling of lein autoconnect
Fixes #28.
2013-01-06 23:18:15 -05:00
Tim Pope
3ee902f648 Fix one-off runner
Closes #29.
2013-01-06 20:54:42 -05:00