简体   繁体   English

Intellij 无法识别 scala 主 object 中的代码更改

[英]Intellij does not recognize code changes in scala main object

Whenever I make changes to the code in my main object in Intellij, they dont get picked up.每当我在 Intellij 中更改我的主要 object 中的代码时,它们都不会被接收。 But when i run sbt clean assembly, the Run button picks up my code changes.但是当我运行 sbt 清洁程序集时,运行按钮会获取我的代码更改。 not sure what's going wrong here.不知道这里出了什么问题。 Any help will be appreciated.任何帮助将不胜感激。

In my case, if any unknown intellij error occurs, I do below action.就我而言,如果发生任何未知的 intellij 错误,我会执行以下操作。

File > invalidate Caches / Restart > INVALID AND RESTART

Hope it helps.希望能帮助到你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM