3

有没有在VS代码中使用lein的REPL的方法?我的意思是,使用tasks.js或其他东西。在VS代码中运行(lein)REPL

我想要一个集成的环境来运行,测试和构建我的clojures应用程序。我想也许我可以使用vs代码来实现这样的效果,因为它支持第三方编译器。我可以使用lein run,但它不适用于lein repl

我已阅读任务的文档,但没有任何与REPL相关的内容。

这里是tasks.js码我用:

{ 
    // See http://go.microsoft.com/fwlink/?LinkId=733558 
    // for the documentation about the tasks.json format 
    "version": "0.1.0", 
    "command": "lein", 
    "tasks": 
    [ 
     { 
      "taskName": "run", 
      "showOutput": "always", 
      "args": ["run"], 
      "isBuildCommand": true, 
      "isWatching": false 
     }, 

     { 
      "taskName": "repl", 
      "showOutput": "always", 
      "args": ["repl"], 
      "isWatching": true 
     } 
    ], 

    "isShellCommand": true 
} 
+0

的REPL不是“看”。 –

回答

4

现在有扩展可用,你可以使用。在相同的方式,VS是使用这个词的含义

Github

VS Code Market Place

+0

我认为这个扩展将不会为您提供交互式REPL atm。 –

1

我不相信一个真正的REPL可能在VSCode的时刻。 这就是说,这是目前正在对这里工作:https://github.com/Microsoft/vscode/issues/547

+0

你认为有可能做一些改变或已经存在吗? –

+0

一些插件已经通过允许选择一些文本来模拟REPL,运行命令来执行它,然后将输出写入输出通道。 (即:[ionide](http://ionide.io/)) - 但现在就是这样。 – Jeremy