-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
racket-xp-mode
shows public class methods as not bound
#440
Comments
When I try that in Dr Racket and mouse hover on The difference in Racket Mode is that it "surfaces this in the UI" more prominently. As a result it's going to make more evident any bugs, edge cases, or omissions in the analysis done by Another case is racket/drracket#110 which I've attempted to fix with PR racket/drracket#362. Also, in some cases the "blame" isn't really even Probably we should open this as an issue, also, at https://github.com/racket/drracket/issues ? If you agree, and you'd like to go ahead and do that, and link back to this issue here, that would be great. Otherwise I will. |
I am not sure where the right place to fix this would be, as I'm not familiar with the inner workings of The workaround for me would be to change the face in Emacs, so they are not crossed out, as the most annoying part is when I open a Racket source file and have all the method names crossed out. It looks like this is the approach DrRacket takes (unbound names are not crossed out)
I am not sure that "unbound" and "unused" are synonyms: in my original example, |
For that work-around, you can customize You won't see other, truly unused identifiers. It would be nice if Racket Mode could distinguish this, but, that's kind of the essence of the problem here. 😄 I'll open an issue on the |
I'm trying out the new
racket-xp-mode
and I noticed that it marks all public class methods as unbound occurrences and crosses them out. Here is an example:The
say-hello
method is obviously used, but it is shown as unused:It seems that functions which are exported from the module are not marked as "not used" even if they are not called from within a module. Perhaps public methods could also be treated the same?
My code base uses classes public methods extensively and they all show crossed out.
To help me help you, please:
Open any racket-mode or racket-repl-mode buffer.
M-x
racket-bug-report
ENTER.Copy and paste that, here.
The text was updated successfully, but these errors were encountered: