[racket-users] Re: Using ctags and vim with Racket
On Thursday, September 13, 2018 at 10:19:37 PM UTC+8, Marc Kaufmann wrote: > > Hi all, > > for the first time I wanted to use ctags today, which generates a bunch of > tags so that one can jump to and from function definitions and the like in > vim. However, the program generates no tags whatsoever for Racket, which > wasn't too surprising. > > I am using the vim-racket plugin. Does anyone use vim with ctags -- or vim > with any plugin that does a good job of jumping between definitions and > works with Racket? > The likely problem is that ctags does not recognize the .rkt file extension as a scheme file. You will need to find what command line option to use to map the .rkt file extension to scheme. For example, in etags (the Emacs equivalent), I use: find . -name "*.rkt" -print | etags -l scheme - Alex. -- 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.
[racket-users] Using Racket behind proxy
Hello, I would love to experiment with and potentially use Racket at work, but I am currently unable to use the package manager (raco) behind a proxy. 1. Is there any advice for configuring the Racket ecosystem for being used behind a proxy? 2. Does Racket respect the "http_proxy", "https_proxy", and "no_proxy" environment variables? 3. What do the proxy settings in the Browser preferences tab do? I know that you can manually download and install packages, but I would prefer not having to do that. It seems at some point Racket's package manager explicitly did not support working behind proxies (https://lists.racket-lang.org/users/archive/2014-April/061965.html), but I am not for sure if that is still the case. Thank you for any help! -- 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.
[racket-users] Historical mailing list archives [fast.cs.utah.edu]
Hi, Just a quick question with regards to old mailing list archives: up to 2002, did we only have one mailing list? These are the archives I could find: https://www.cs.utah.edu/plt/mailarch/ Was there anything else back then? Also the link above says: After June 2002: http://list.cs.brown.edu/pipermail/plt-scheme/ But that link is broken. I assume it should point to: http://lists.racket-lang.org/users/archive/ Was it in June 2002 that it was split into dev and users? Thanks, -- Paulo Matos -- 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.
[racket-users] Using ctags and vim with Racket
Hi all, for the first time I wanted to use ctags today, which generates a bunch of tags so that one can jump to and from function definitions and the like in vim. However, the program generates no tags whatsoever for Racket, which wasn't too surprising. I am using the vim-racket plugin. Does anyone use vim with ctags -- or vim with any plugin that does a good job of jumping between definitions and works with Racket? 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. For more options, visit https://groups.google.com/d/optout.
Re: [racket-users] Distributing application with run-time configuration
On 12/09/2018 16:37, Matthew Flatt wrote: > As you > say, you could have a macro expand to the result of `(getenv "ARCH")` > to pin it down at compile time, but you'll need to import that macro > into two phases, since the right-hand side of > `define-runtime-module-path-index` is implicitly used at two phases. Thanks for your thorough explanation of the issues. That clarified it completely. I have got it to working and realised that actually a compile time configuration is more future-proof in case I end up developing a private backend for a customer which I should ship to another customer by mistake, therefore embedding a single backend per release is better. I setup a file which does this to choose the backend at compile-time: #lang racket/base ;; --- (require (for-syntax racket/base)) (provide get-configured-backend-path) ;; --- ;; This module is used to move the compile time variable s10arch, read from the environment ;; to a build-time variable using a macro. (begin-for-syntax ;; An environment variable must be defined selecting the arch to use. (define s10arch (getenv "S10ARCH")) (unless s10arch (raise-user-error 'driver "Please define S10ARCH environment variable"))) (define-syntax (get-configured-backend-path stx) (syntax-case stx () [(_) (datum->syntax stx s10arch)])) Then from another module I am doing: (require s10/arch-choice) (define-runtime-module-path-index backend-path (build-path (get-configured-backend-path) "name.rkt")) However the problem here is that get-configured-backend-path does not exist in level0 - only in level1. I tried to provide it then like so: (provide get-configured-backend-path (for-syntax get-configured-backend-path)) and then require it for syntax as well in the driver module, however this generates the strange: s10/arch-choice.rkt:7:21: provide: provided identifier is not defined or required How can get get-configured-backend-path to exist at both level which seems to be what define-runtime-module-path-index requires? -- Paulo Matos -- 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.
Re: [racket-users] Running from command line and staying in REPL?
I think I found the answer: Use (provide . . .). torsdag 13. september 2018 13.16.15 UTC+2 skrev Jon Kleiser følgende: > > Sorry, but I'm not quite happy yet. ;-) > When I get the ">" prompt, the definitions made in my hello.rkt seems to > be gone. I get "cannot reference an identifier before its definition". How > can I avoid that definitions and data get lost? > > torsdag 13. september 2018 13.03.42 UTC+2 skrev Jon Kleiser følgende: >> >> Works like a charm. Thanks! >> Maybe that "21.1.1 Interactive Mode" chapter should mention that "-it" >> solution? >> >> torsdag 13. september 2018 12.58.57 UTC+2 skrev Matthias Felleisen >> følgende: >>> >>> >>> $ racket -it foo.bar >>> >>> >>> >>> On Sep 13, 2018, at 4:19 AM, Jon Kleiser wrote: >>> >>> Hi, >>> >>> I would like to run some Racket programs in the macOS Terminal (racket >>> foo.rkt bar1 bar2), and keep staying in the Racket REPL when my code has >>> completed. Is that possible? >>> >>> /Jon >>> >>> -- >>> 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...@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.
Re: [racket-users] Running from command line and staying in REPL?
Sorry, but I'm not quite happy yet. ;-) When I get the ">" prompt, the definitions made in my hello.rkt seems to be gone. I get "cannot reference an identifier before its definition". How can I avoid that definitions and data get lost? torsdag 13. september 2018 13.03.42 UTC+2 skrev Jon Kleiser følgende: > > Works like a charm. Thanks! > Maybe that "21.1.1 Interactive Mode" chapter should mention that "-it" > solution? > > torsdag 13. september 2018 12.58.57 UTC+2 skrev Matthias Felleisen > følgende: >> >> >> $ racket -it foo.bar >> >> >> >> On Sep 13, 2018, at 4:19 AM, Jon Kleiser wrote: >> >> Hi, >> >> I would like to run some Racket programs in the macOS Terminal (racket >> foo.rkt bar1 bar2), and keep staying in the Racket REPL when my code has >> completed. Is that possible? >> >> /Jon >> >> -- >> 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...@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.
Re: [racket-users] Running from command line and staying in REPL?
Works like a charm. Thanks! Maybe that "21.1.1 Interactive Mode" chapter should mention that "-it" solution? torsdag 13. september 2018 12.58.57 UTC+2 skrev Matthias Felleisen følgende: > > > $ racket -it foo.bar > > > > On Sep 13, 2018, at 4:19 AM, Jon Kleiser > wrote: > > Hi, > > I would like to run some Racket programs in the macOS Terminal (racket > foo.rkt bar1 bar2), and keep staying in the Racket REPL when my code has > completed. Is that possible? > > /Jon > > -- > 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...@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.
[racket-users] Re: Running from command line and staying in REPL?
I have found some info here: https://docs.racket-lang.org/guide/racket.html#%28part._start-interactive-mode%29 However, I haven't reached my goal yet. If I do this racket -t hello.rkt -i then my hello.rkt is executed, and I end with a ">" prompt, but trying a command like (exit) at that point is not very successful, as you can see here: $ racket -t hello.rkt -i Welcome to Racket v7.0. 'hello-racket-world > (exit) ; readline-input:1:0: #%top-interaction: unbound identifier; ; also, no #%app syntax transformer is bound ; at: #%top-interaction ; in: (#%top-interaction exit) ; [,bt for context] and then > ,bt ; readline-input:1:0: #%top-interaction: unbound identifier; ; also, no #%app syntax transformer is bound ; at: #%top-interaction ; in: (#%top-interaction exit) ; location...: ;readline-input:1:0 ; context...: ;raise-syntax-error ;expand-capturing-lifts ;expand-single ;temp74_0 ;compile16 ;temp68_2 ;/Applications/Racket_v7.0/share/pkgs/xrepl-lib/xrepl/xrepl.rkt:1477:0 ;/Applications/Racket_v7.0/collects/racket/repl.rkt:11:26 Then I have to hit Ctrl-D to get back into the shell. torsdag 13. september 2018 10.19.22 UTC+2 skrev Jon Kleiser følgende: > > Hi, > > I would like to run some Racket programs in the macOS Terminal (racket > foo.rkt bar1 bar2), and keep staying in the Racket REPL when my code has > completed. Is that possible? > > /Jon > -- 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.
[racket-users] Running from command line and staying in REPL?
Hi, I would like to run some Racket programs in the macOS Terminal (racket foo.rkt bar1 bar2), and keep staying in the Racket REPL when my code has completed. Is that possible? /Jon -- 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.