首页 文章

如何用figwheel为clojurescript开发设置原子编辑器?

提问于
浏览
3

看起来原子编辑器通过各种包装具有合理程度的clojure和clojurescript支持 . Does anyone have a recommended way to configure it to use figwheel? 显然这可以使用单独的终端,但我对是否可以使用更集成的编辑内REPL感兴趣 . REPL在浏览器应用程序中执行代码的地方 .

我正在寻找一些类似于https://github.com/bhauman/lein-figwheel/wiki/Running-figwheel-in-a-Cursive-Clojure-REPL为intellij / cursive ide提供的帮助 .

更新:阅读Using the Figwheel REPL within NRepl后,意识到原子包proto-repl提供的'Start REPL'命令可能已运行 lein repl ,我相应地更新了我的项目 - see gist .

启动REPL产生了一些有希望的输出see gist,并且应用程序在浏览器中正确启动 .

差不多了!这是有效的,但到目前为止,我还没有找到一种方法来再次释放3449端口 . 甚至没有关闭编辑器并重新启动它 .

这是问题所在

user=> nil
(stop-figwheel!)
user=> nil
(start-figwheel!)
Figwheel: Starting server at http://127.0.0.1:3450
Port 3450 is already being used. 
Are you running another Figwheel instance? 
If you want to run two Figwheel instances add a new :server-port (i.e.:server-port 3450)
to Figwheel's config options in your project.clj

1 回答

  • 0

    看起来这个问题正在proto-repl repo的第54期讨论,但目前尚无解决方案 .

相关问题