For those not tracking the DrRacket github repo, this feature is now
available in the Racket snapshot builds.

https://plt.eecs.northwestern.edu/snapshots/

Thanks,
Dan

On Wed, Mar 22, 2017 at 5:17 PM, Daniel Feltey <dfel...@ccs.neu.edu> wrote:

> I think I've finally got something working within DrRacket so I've just
> pushed a change to check-syntax[1] which adds a `Remove Unused Requires`
> right-click menu item to DrRacket which will remove all requires which
> check-syntax marks as unused.
>
> If you're using DrRacket from github, I'd appreciate any feedback you
> might on the tool or how it could be improved.
>
> [1]: https://github.com/racket/drracket/commit/
> 10ac8e7d91c4d7ae7ba2dc6d929a7ec7ed9fe186
>
> Thanks
> Dan
>
> On Mon, Mar 13, 2017 at 9:43 PM, Daniel Feltey <dfel...@ccs.neu.edu>
> wrote:
>
>> I've started working on adding this refactoring to DrRacket[1], it's not
>> quite as full-featured(and is definitely still a bit buggy) as what
>> racket-mode in emacs seems to allow, but it's a first step and I'd
>> appreciate suggestions or requests on how DrRacket can better support
>> developers editing and refactoring code.
>>
>> [1] https://github.com/racket/drracket/pull/97
>>
>> Dan
>>
>> On Mon, Mar 13, 2017 at 7:30 PM, Greg Hendershott <
>> greghendersh...@gmail.com> wrote:
>>
>>> 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.
>>>
>>
>>
>

-- 
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