【发布时间】:2021-05-18 03:17:40
【问题描述】:
我需要一些 Java 代码才能在 Clojure 项目中使用。按照这个page 学习如何在 Leiningen 中混合 Clojure/Java。该项目运行顺利,结果与预期相同。但是,当我在 vscode 中打开项目时,Lexer.java 中的命名空间“myproject.records.time”;它无法在 vscode 中识别,但可以在命令行“lein do run, clean”中识别。我已经在vscode中执行了命令“java:clean language server workspace”,但是错误依然存在。请评论如何在 vscode 中修复此错误?
命令行“lein do run, clean”。工作顺利
=> #'myproject.main/-main
({:type :error, :value "4"}
{:type :error, :value "3"}
{:type :error, :value "2"}
{:type :error, :value "1"}
{:type :error, :value "0"})
=> nil
在 Lexer.java 中无法使用 vscode 识别命名空间“myproject.records.time”
【问题讨论】:
标签: java visual-studio-code clojure vscode-settings