Re: [racket-users] How to find source file loaded by/relevant for (require )?

2020-03-29 Thread Marc Kaufmann
Awesome, that looks like the right thing.

Thanks,
Marc

On Fri, Mar 27, 2020 at 10:08 AM Alexis King  wrote:

> I recommend Ryan Culpepper’s whereis package:
> https://docs.racket-lang.org/whereis/index.html It provides both a
> programmatic interface and a raco command.
>
> Alexis
>
> On Mar 27, 2020, at 03:56, Marc Kaufmann 
> wrote:
>
> Hi,
>
> I am trying to set up vim such that it jumps to the correct source file
> when I see a `(require some-module)`. With packages that I have installed
> myself, I have managed to do so (80% solution), since they get installed in
> $HOME/.racket//pkgs. However, I can't quite figure out where all
> the things are. Some are in
> /usr/share/racket/pkgs/-lib/, but
> others like racket/match seem to be in /usr/share/racket/collects/... . Are
> there any other places for the core modules?
>
> Rather than me trying to do something error-prone, is there a Racket
> function that I can call on  that returns the right path on my
> machine? That way I don't write stupid error-prone regexes.
>
> Cheers,
> Marc
>
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAD7_NO6QwV0N_jqsxHrnS5E0%2BXdcyBvFTy%3DPVLWxyz74T2EJXA%40mail.gmail.com.


Re: [racket-users] How to find source file loaded by/relevant for (require )?

2020-03-27 Thread Alexis King
I recommend Ryan Culpepper’s whereis package: 
https://docs.racket-lang.org/whereis/index.html 
 It provides both a 
programmatic interface and a raco command.

Alexis

> On Mar 27, 2020, at 03:56, Marc Kaufmann  wrote:
> 
> Hi,
> 
> I am trying to set up vim such that it jumps to the correct source file when 
> I see a `(require some-module)`. With packages that I have installed myself, 
> I have managed to do so (80% solution), since they get installed in 
> $HOME/.racket//pkgs. However, I can't quite figure out where all the 
> things are. Some are in 
> /usr/share/racket/pkgs/-lib/, but 
> others like racket/match seem to be in /usr/share/racket/collects/... . Are 
> there any other places for the core modules?
> 
> Rather than me trying to do something error-prone, is there a Racket function 
> that I can call on  that returns the right path on my machine? 
> That way I don't write stupid error-prone regexes.
> 
> Cheers,
> Marc

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/DB1F4C09-837E-4586-BB0D-272AB14FCD63%40gmail.com.


[racket-users] How to find source file loaded by/relevant for (require )?

2020-03-27 Thread Marc Kaufmann
Hi,

I am trying to set up vim such that it jumps to the correct source file 
when I see a `(require some-module)`. With packages that I have installed 
myself, I have managed to do so (80% solution), since they get installed in 
$HOME/.racket//pkgs. However, I can't quite figure out where all 
the things are. Some are in 
/usr/share/racket/pkgs/-lib/, but 
others like racket/match seem to be in /usr/share/racket/collects/... . Are 
there any other places for the core modules?

Rather than me trying to do something error-prone, is there a Racket 
function that I can call on  that returns the right path on my 
machine? That way I don't write stupid error-prone regexes.

Cheers,
Marc

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/2f82bba5-bf2b-4e1e-8d45-5e49b27a3713%40googlegroups.com.