Skip to content
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

Cursive does not understand dot (.) and double-dot (..) forms #321

Open
favila opened this issue Mar 21, 2014 · 6 comments
Open

Cursive does not understand dot (.) and double-dot (..) forms #321

favila opened this issue Mar 21, 2014 · 6 comments

Comments

@favila
Copy link

favila commented Mar 21, 2014

Cursive does not understand how to resolve symbols inside dot (. o method arg) and double-dot (.. o (method arg) (method arg)) special-forms. Contrived example:

 ; "put" is not highlighted as a method
 ; and is marked as an unresolved symbol
(. (HashMap.) put "key" "value")

; "put" will be marked as unresolved symbol
(.. (HashMap.) (put "key" "value")

; But this is ok:
(.put (HashMap.) "key" "value")

; So is this:
(-> (HashMap.) (.put "key" "value")
@cursive-ide
Copy link
Owner

Right - this is a little unfortunate. This relies on knowing the types of variables, which is not done yet but should be soon. Your third and fourth forms are marked as resolved but it's still pretty primitive - they just resolve to any method called put in any imported class.

@pkozikow
Copy link

pkozikow commented Aug 7, 2014

+1 This applies to all macros, not just . and ..

@danielcompton
Copy link
Collaborator

danielcompton commented May 23, 2016

Even though Cursive now understands the types of the variables (I think?) .. forms are still not resolved properly AFAICT.

@sattvik
Copy link

sattvik commented Nov 20, 2018

Hello! I've started using Cursive more of late and this one thing that I keep on running into.

@imrekoszo
Copy link

.. still gives errors:

image

@JoshuaFox
Copy link

+1

This occurs even when type hints seem to give all necessary type info.

See my question in StackOverflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants