Is it possible to make flymake-mode be aware of syntax (or other) errors in racket files like it done for example for erlang or python? I’m using geiser-mode for racket, if it is matters.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s probably very easy, since Racket spits out warning messages in a standard line:column format.
You don’t even need to invoke the compiler — it’s enough to just run the code via
racket the-file. But as a semi-side-note, an even better command-line to use isracket -qf the-file. The thing about running the code as above is that it will actually … run it. More specifically, it loads the module definition and then invokes it. Using-fit will just load the definition but not invoke it and therefore the runtime is not executed. Note that this assumes that the file is one that has just a module, which is what you get for all files that start with a#lang.Update: I tried it, and indeed it was easy to set things up. I’ve posted this code on the mailing list: