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
New racket checker #799
Comments
Although I only read the discussion twice quickly: From this comment it sounds like @lunaryorn would be comfortable with replacing If so that's simply:
I think?? Would that be sandboxed? I don't know. But if it isn't:
Having said all that: If the discussion somehow leads to needing to deliver some Racket code, I'd be happy to roll that into racket-mode. p.s. If languages with "unsandboxed" macros are a problem, does that mean Rust needs to be removed, too? |
@greghendershott Indeed, I think we'll revert that commit and move to raco in core Flycheck. But it would be very nice for racket-mode to bundle the sanboxed version; what do you think? I think @lunaryorn's policy is reasonable, and I'll abide by it :) So rust & al. can stay :) |
I don't mind whether it's sandboxed or not. If the compiler runs it Flycheck can run it, too, imho I just don't want to run all code. That's too unsafe for me, because normal code is very likely to have side-effects, whereas code that is intended to run at compilation time (e.g. macros, etc.) usually has not. In other words, I'm fine with |
@lunaryorn Yes, p.s. You are one of my Emacs heroes; your blog is fantastic. |
@cpitclaudel wrote:
I think both the cost and benefit aren't yet clear to me. On the "cost" side, beyond adding something like this script as a file people get with racket-mode via MELPA ... I'm not sure what's involved. How does it get hooked up and used -- and by who, when? On the benefit side, it seems small/theoretical to me. But that's only my opinion and I'm only one user. Happy to discuss more, either here or in a PR/issue over on the racket-mode repo. |
@greghendershott Thanks, that's great. Also thanks for your kind words, I'm flattered @greghendershott @cpitclaudel A sandboxed syntax checker is out of scope for Flycheck, because it introduces a dependency on a Racket script. Whether you'd like to add it to Racket Mode itself is your choice, but please discuss that over at Racket Mode, because it doesn't really affect Flycheck. Please let's focus on a new Racket checker for Flycheck based on |
Has anyone tried to implement a syntax checker based on |
@lunaryorn Kinda hacky but I've been futzing around w/ it and this seems to work (flycheck-define-checker racket
"Racket syntax checker"
:command ("raco" "expand" source-original)
:error-patterns
((error line-start (file-name) ":" line ":" column ":" (message) line-end))
:modes racket-mode)
(add-to-list 'flycheck-checkers 'racket) Maybe someone who knows a little more than I do can suggest how to improve on this? |
Exciting. Do errors columns start at one or zero? I think you may need to add
Btw @lunaryorn, should we apply |
@cpitclaudel |
@lunaryorn Indeed, so maybe we should just always apply it? This would simplify a number of checker definition from
to
|
@cpitclaudel I would rather not take away the chance to inhibit it for individual checkers, or to change the order in which filters are applied. |
Got it. |
@cpitclaudel rows start at 1, columns at 0. https://gist.github.com/wcummings/b27b8ffa97d3724e84cc My nick is wcummings on freenode if people prefer to hash things out on IRC :) |
@wcummings I'm pretty busy these days, so IRC won't work very well. If columns start at 0, then the change is good. Do you think you could turn this into a pull request? You could draw inspiration from 173728f |
will do |
Re-routing the discussion from #786 for ease of tracking and inviting @soegaard and @takikawa.
To summarize:
raco expand
.Thanks for the help!
The text was updated successfully, but these errors were encountered: