The `racket-trim-requires` and `racket-base-requires` commands use
`raco check-requires` behind the scenes (then format/sort as does
`racket-tidy-requires`).

Today I tried to use `racket-trim-requires` on a Typed Racket file
containing `define-type`; and got the error you mention. This turned
out to be an issue with `raco check-requires`; thanks to a hint from
Sam on Slack, I pushed a a PR that Ryan merged:

  https://github.com/racket/macro-debugger/pull/22

I just now saw this thread, which is weird timing!

I'd welcome hearing any other examples where racket-{tidy
base}-requires doesn't work -- and `raco check-requires` on that same
file works or not. (Of course I'd also understand if folks are too
busy to detour to report them.)


On Mon, Mar 13, 2017 at 1:50 PM, Dan Liebgold
<dan_liebg...@naughtydog.com> wrote:
> raco check-requires does the job.
>
> I use emacs racket-mode, but it's hobbled in ways I haven't investigated -- 
> e.g. when I try to use tidy or trim requires it gives me a "Can't do, source 
> file has error" when it doesn't, or at least not in a way I can see.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to