Введите код..{:user {:plugins [[cider/cider-nrepl "0.12.0-SNAPSHOT"]] :dependencies [[org.clojure/tools.nrepl "0.2.12"]]}}.
{:user {:plugins [[cider/cider-nrepl "0.12.0-SNAPSHOT"]] :dependencies [[org.clojure/tools.nrepl "0.2.12"]]}}
- Explicit docs/instructions on how to start and connect to the repl would be good. I was able to get it connected but it was unclear if the repl should be started from within VS code, or from a terminal then only connect to it from VS code.
- The commands in the command pallet could be prefixed with a "clj: " or perhaps "clojure: " or something like that. Other plugins I've used(e.g. elm) do this so it's easy to know which commands are associated with the extension and which are part of the editor.
- Docstrings don't seem to work for thread first (-> xxx)? I also noticed that it took some time after initial repl connect for the docstrings to become available, probably some indexing delay because my laptop is old+slow, initially they showed "Docstring not found". Also the docstring not found message pops up for all characters on hover of mouse over things such as parenthesis.
(ns foo)
(println "Hello World")
- I found a command to eval the entire file which worked good. Is there a way to send selected expressions to a repl yet?
- If I had one feature request it would be for inline results a-la LightTable. Any plans for something like that?
Overall this is a great start, thank you very much for getting the ball rolling and building this extension!
I guess the installation part is then something specific to the ubuntu flavor(I am using ubuntu-mate) I am using/ what ever it could be.(I also did try to open the file from the menu, but same story as dragging and dropping).Also my vs-code installation is a bit suspicious, so I will look up other trouble shooting resources.Thanks anyways!
Regarding the dependency part, I meant that in cider(on emacs)I do not have to specify any of those dependencies by my self because it is handled when I start a repl from cider.https://github.com/clojure-emacs/cider/pull/1552 and thought it would be a great improvement.
On Saturday, September 17, 2016 at 4:32:39 AM UTC+6, Michael Ball wrote:- Explicit docs/instructions on how to start and connect to the repl would be good. I was able to get it connected but it was unclear if the repl should be started from within VS code, or from a terminal then only connect to it from VS code.The instructions can be found in the "How to Use?" section of readme file. Not sure I understand your point about where the repl should be started. Do you mean you mean you expected repl will be run by VSCode on connect like it happens in Emacs?
- Docstrings don't seem to work for thread first (-> xxx)? I also noticed that it took some time after initial repl connect for the docstrings to become available, probably some indexing delay because my laptop is old+slow, initially they showed "Docstring not found". Also the docstring not found message pops up for all characters on hover of mouse over things such as parenthesis.You're right about the thread first docstring. It looks like I need to adjust the regex for finding Clojure words. Will fix it soon.About docstrings. There shouldn't be snoticable time between pointing a thing and getting its documentation. However, the is a subtly aspect you should be aware of. If you have a namespace definition in the beginning of a file you should eval the file first. Say, you have a file with the following content:
(ns foo)
(println "Hello World")When you point println you won't see the docstring. The reason is the extension sends the following message to the repl: "Give me a docstring for the function println from foo namespace." But at the moment repl know nothing about foo namespace! So you neen to eval the file. This will result adding foo namespace to the repl and importing everything from clojure.core namespace to it (this is a sideeffect of ns macro). I believe, this is the common behaviour for all solutions based on cider-nrepl (I've checked it is true for Emacs Cider and Vim Fireplace). Though I admit it's not the most intuitive one. So I'm open to suggestions.
- If I had one feature request it would be for inline results a-la LightTable. Any plans for something like that?It's definetly a useful feature and I can add it easily. The only thing I'm not sure about is where to show an evaluation result :) Do you have any ideas. Maybe you've seen the similar feature in other VSCode plugins and know how to do it right?
2. I will investigate if it is possible to run repl from within VSCode. On the other hand, this behavior can be unexpected for some users. I believe, many users are willing to connect to a remote repl and need an explicit way to say which repl they want to use. Also note that if you open a Leiningen project and repl is running in console the extension will automatically connect to it.
3. I added an output channel for evaluation results in the latest extension version. You can try it out. I will investigate other options though.
Just started using your plugin. Thanks. So far so good.Two questions.1. Every time I eval something, or have an error, a bar appears on top, like this: "[Info] Successfully Compiled [Close]". They don't fade away automatically, and stack, meaning that they block the top part of the editor. I couldn't find a setting how to make that bar fade away after 2-3 seconds or something like that.
2. If I have the Problems (cmd-M) window open at the bottom of the screen, and I eval something with output, that error window is replaced for an output window (which is fine behavior to me). The other way around doesn't work - if I eval something and it gives an error, the bottom window remains to be the output window, rather than switch to the problem window. Is there any way I make that behavior consistent.
Thanks for the plugin!