question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Intellij syntax error: "Application does not take parameters"

See original GitHub issue

Hello, 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: screen shot 2016-08-25 at 11 43 32 am

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 Mappers (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:closed
  • Created 7 years ago
  • Comments:19

github_iconTop GitHub Comments

8reactions
vkostyukovcommented, Feb 20, 2017

I went ahead and filed an Intellij ticket (against Scala plugin): SCL-11386.

6reactions
vkostyukovcommented, Aug 25, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found