-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intellij syntax error: "Application does not take parameters" #631
Comments
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 I personally nearly hate this "magnet pattern" thing we use as |
Just a note - this appears to not be an issue in 2016.2, but resurfaces in 2016.3 (along with other unrelated Scala bugs) Here is a link to download the latest good release, 2016.2.5: https://confluence.jetbrains.com/display/IntelliJIDEA/Previous+IntelliJ+IDEA+Releases |
@od0 interesting. I'm on 2016.3.1 (Scala plugin 2016.3.5) and the error has changed slightly: Basically that, but for every endpoint. Sorry for the delay, but thank you for the reply, @vkostyukov. I'll look into opening up an issue on the Scala plugin. |
Has anyone reported this bug on the scala plugin issue tracker? |
@bergmark This totally slipped my mind; I never opened up an issue. |
I've seen noticeably fewer of these errors after switching to the 2017 EAP release. And the errors are usually fixed by invalidating caches. Has anyone else tried the EAP? |
@rpless I'm on the latest EAP now and it's as bad as ever :/ |
I went ahead and filed an Intellij ticket (against Scala plugin): SCL-11386. |
It seems that everything works if updated to:
|
@marceloboeira: I have the same setup but run into these issues, it is compilable though: |
@ssenge they've disappeared after I updated the IDE/plugin. For me, it was compiling only over the terminal, but not from the IDE. |
@marceloboeira: Compilable from IDE but wrong error highlighting :( Everything updated and rebuild. |
This one should be solved now with #858 |
I think we're in a good place to close this. We can always re-open if things get broken again. Huge thanks to @sergeykolbasov for taking a stub on fixing this! |
I'm having issues with IntelliJ 2018.3.4 and finch 0.27.0. In the following snippet val forSale: Endpoint[F, Seq[Product]] =
get("products" :: "for-sale" :: param[DeliveriesDayOfWeek]("dow")).mapAsync {
dow => productService.forSale(dow)
} the IDE wrongfully thinks that |
@acidghost Thus is surprising to me. I was under the impression it was fixed quite some time ago. I'd recommend leaving a comment on a linked IJ ticket with your reproducer. |
Yep, I can reproduce it, though it's a different problem not related to |
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 anEndpoint
.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 toFnToProduct
). Not sure if this is a common issue for people using Finch in IntelliJ. Any help would be greatly appreciated!The text was updated successfully, but these errors were encountered: