'figwheel' 不是任务
'figwheel' is not a task
我整天都在愉快地使用 figwheel。我通过输入 :cljs/quit
.
终止了进程
当我尝试重新启动 figwheel lein figwheel
时,收到来自 leiningen 的消息:
'figwheel' is not a task. See 'lein help'
运行 lein help
列出了很多我可以执行的任务,但花花公轮不在其中。
这是我的 project.clj
的样子(省略了多余的内容):
(defproject myproject
...
:dependencies [...]
:plugins [[lein-environ "1.0.2"]
[lein-cljsbuild "1.1.1"]
[lein-asset-minifier "0.2.4"]]
...
:profiles {:dev {:dependencies [...
[lein-figwheel "0.5.0-6"]
...]
:plugins [[lein-figwheel "0.5.0-6"]
...]
:figwheel {...}}}
...)
这是我到目前为止尝试过的方法:
- 确认我在正确的目录中
- 检查了自上次成功启动 figwheel 以来所做的所有代码更改
- 已将
[lein-figwheel "0.5.0-6"]
添加到基础 :plugins
向量(这种方法有效,但无法识别我的任何特定于配置文件的设置)
- 重新启动我的电脑
您可以键入 lein help profiles
来阅读所有关于配置文件的信息。本例中的问题是由于:
Remember that if a profile with the same name is specified in multiple
locations, only the profile with the highest "priority" is picked – no
merging is done. The "priority" is – from highest to lowest –
profiles.clj, project.clj, user-wide profiles, and finally system-wide
profiles.
它使用的是 profiles.clj 中的 :dev
,它没有图轮。这也是为什么将 lein-figwheel
添加到基础 :plugins
有点帮助,但不会使用您的所有设置。
文档建议了一个简单的解决方案:
If you need to enable personal overrides of parts of a profile, you can use a composite profile with common and personal parts - something like :dev [:dev-common :dev-overrides]
; you would then have just :dev-overrides {}
in project.clj and override it in profiles.clj.
我整天都在愉快地使用 figwheel。我通过输入 :cljs/quit
.
当我尝试重新启动 figwheel lein figwheel
时,收到来自 leiningen 的消息:
'figwheel' is not a task. See 'lein help'
运行 lein help
列出了很多我可以执行的任务,但花花公轮不在其中。
这是我的 project.clj
的样子(省略了多余的内容):
(defproject myproject
...
:dependencies [...]
:plugins [[lein-environ "1.0.2"]
[lein-cljsbuild "1.1.1"]
[lein-asset-minifier "0.2.4"]]
...
:profiles {:dev {:dependencies [...
[lein-figwheel "0.5.0-6"]
...]
:plugins [[lein-figwheel "0.5.0-6"]
...]
:figwheel {...}}}
...)
这是我到目前为止尝试过的方法:
- 确认我在正确的目录中
- 检查了自上次成功启动 figwheel 以来所做的所有代码更改
- 已将
[lein-figwheel "0.5.0-6"]
添加到基础:plugins
向量(这种方法有效,但无法识别我的任何特定于配置文件的设置) - 重新启动我的电脑
您可以键入 lein help profiles
来阅读所有关于配置文件的信息。本例中的问题是由于:
Remember that if a profile with the same name is specified in multiple locations, only the profile with the highest "priority" is picked – no merging is done. The "priority" is – from highest to lowest – profiles.clj, project.clj, user-wide profiles, and finally system-wide profiles.
它使用的是 profiles.clj 中的 :dev
,它没有图轮。这也是为什么将 lein-figwheel
添加到基础 :plugins
有点帮助,但不会使用您的所有设置。
文档建议了一个简单的解决方案:
If you need to enable personal overrides of parts of a profile, you can use a composite profile with common and personal parts - something like
:dev [:dev-common :dev-overrides]
; you would then have just:dev-overrides {}
in project.clj and override it in profiles.clj.