Intellij Play Intellisense issues

2019-08-08 19:30发布

showing the issue

I am having issues with intellij intellisense sometimes where the code compiles fine and works, but intellij is showing that the code is invalid.

In this particular case the error is saying the following:

Cannot resolve method 'javascriptRouter(java.lang.String,
 play.core.Router.JavascriptReverseRoute,
 play.core.Router.javascriptReverseRoute)    

Is this a bug in intellij, or do I need to adjust some of my settings?

2条回答
SAY GOODBYE
2楼-- · 2019-08-08 19:39

All things being equal, it's not a bug in IntelliJ.

IntelliSense is going to give you possible methods, but if you plug in mismatched parameters it's not going to compile.

If you want to know for sure, double-click on the method name and type {Ctrl-B} and it'll go to the definition of the method and you should be able to see what the method parameters are (and there could be multiple methods with slightly different signatures).

查看更多
smile是对你的礼貌
3楼-- · 2019-08-08 19:42

It looks like jetbrains is aware of the issue and are looking into fixing it. Here is the link to the issue:

https://youtrack.jetbrains.com/oauth?state=%2Fissue%2FSCL-9930

查看更多
登录 后发表回答