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

Recognize Symbols Defined by areduce #435

Open
alexanderkiel opened this issue Jul 18, 2014 · 2 comments
Open

Recognize Symbols Defined by areduce #435

alexanderkiel opened this issue Jul 18, 2014 · 2 comments
Milestone

Comments

@alexanderkiel
Copy link

The macro areduce defines two symbols specified by the arguments ret and init. Symbols placed there are currently not recognized by Cursive.

My use case is the following function:

(defn decode-len
  "Returns the length represented by the encoded bytes."
  [^bytes b]
  {:pre [(= 4 (count b))]}
  (areduce b i ret 0
           (+ ret (bit-shift-left (bit-and 0xff (int (aget b i))) (* i 8)))))

here i and ret are marked as cannot be resolved by v0.1.29.

@cursive-ide cursive-ide added this to the 0.1.31 milestone Jul 25, 2014
@cursive-ide cursive-ide modified the milestones: 0.1.31, 0.1.32, 0.1.33, Shortlist Aug 16, 2014
@a613
Copy link

a613 commented Aug 28, 2015

I think this ticket can be generalized to any macro that defines things for access in its body.

@cursive-ide
Copy link
Owner

Yes, see #147, which is the catch-all for this problem. That said, that's more oriented to third-party macros, core ones like areduce I normally add to Cursive directly.

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

4 participants