Intellij syntax error: "Application does not take parameters"
See original GitHub issueHello, I’m wondering if there’s a way to get IntelliJ (I’m using v15.0.6 with Scala plugin 2.2.0) to be able to recognize the implicit conversion to a Mapper
when applying an Endpoint
.
Screenshot:
The reported error is “Application does not take parameters”. Of course, this error is spurious (the code compiles). IntelliJ just seems to have some trouble with the conversion of my functions to Mapper
s (and probably also to FnToProduct
). Not sure if this is a common issue for people using Finch in IntelliJ. Any help would be greatly appreciated!
Issue Analytics
- State:
- Created 7 years ago
- Comments:19
Top Results From Across the Web
Good code red, Application does not take parameters, Cannot ...
I am using Intellij IDEA CE 2017.2.5. Sbt compile/run via the built-in shell works fine, but several kinds of good code fail inspection....
Read more >User Parameters are not prompted in sub-sub query (Postgre)
Please, I have very strange problem with parameters. I use Postgre language and some parameters (mostly in sub-sub query) are not prompted.
Read more >False syntax error alarm in red highlight in code editor
Hello,. Please tell if the issue is reproduced for you with IntelliJ IDEA 2019.3 (https://www.jetbrains.com/idea/download)?. Please also share ...
Read more >Working with code problems in IntelliJ IDEA - The JetBrains Blog
We are going to add the Project Errors tab to the Problems tool window. This tab will display the errors detected by the...
Read more >IntelliJ highlights errors that don't exist
try to recreate project jdk, then invalidate caches. Also make sure you didn't configure classpath with different version of the same class.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I went ahead and filed an Intellij ticket (against Scala plugin): SCL-11386.
Thanks @chrisbenincasa!
I’m (and I think everyone else is) aware of this problem. One workaround I use is to disable type-checker in IntelliJ (hit that green
[T]
in the right bottom corner). Although, this basically disables the everything in the IDE besides autocompletion. I think the best we can do here is to file a ticket against the Scala plugin (and vote it!) and mention this problem as false-alarm. They usually respond quite promptly.I personally nearly hate this “magnet pattern” thing we use as
Mapper
to allow this DSL-like syntax. I have some ideas how to make it more explicit (extract the syntax layer into its own namespace) and perhaps simplify. Although, this doesn’t mean IntelliJ shouldn’t support this pattern. Lots of Scala libraries use it and I think, the Scala plugin is making a quite a decent progress in better supporting it.