Questions tagged [raco]

The raco program supports various Racket tasks from a command line

raco: Racket Command-Line Tools

The raco program supports various tasks from a command line. The first argument to raco is always a specific command name. For example, raco make starts a command to compile a Racket source module to bytecode format.

The set of commands available through raco is extensible. Use raco help to get a complete list of available commands for your installation. This manual covers the commands that are available in a typical Racket installation.

23 questions
1
vote
1 answer

Undo a `raco pkg update --clone` or `raco pkg install --clone`

I frequently like to use raco pkg install --clone (or raco pkg --update clone if the library is already installed), when I want to work on a library and submit patches. However, I accidentally ran raco pkg update --clone in the wrong folder, and now…
Leif Andersen
  • 21,580
  • 20
  • 67
  • 100
1
vote
1 answer

how to run raco command from a script?

What's the preferred way to run a raco command from a script? I've been doing things like: #lang racket (system "raco frog -b") but there has got to be a better solution.
Ben Greenman
  • 1,945
  • 12
  • 22
1
vote
0 answers

raco executables linked to invalid runtime

I have Racket installed via homebrew. When I attempt to create an executable with raco, per: raco exe my_prog.rkt ...the resulting binary is linked to a Racket runtime with an invalid path. This can be seen with otool -L: my_prog: …
Xophmeister
  • 8,884
  • 4
  • 44
  • 87
1
vote
1 answer

Racket interaction in DrRacket and on terminal

This program works fine in DrRacket : (define (display-state input data) input) (define (update-state input data) data ) (define (main input data) (displayln (display-state input data)) (main (read-line (current-input-port) 'any)…
interstar
  • 26,048
  • 36
  • 112
  • 180
1
vote
1 answer

Package dependencies based on platform (or operating system) in Racket

I have a package that uses platform dependent system libraries, each of which are separated out into there own package. Is there a way I could install a different dependency based on what platform I am installing on? The most naive solution would be…
Leif Andersen
  • 21,580
  • 20
  • 67
  • 100
0
votes
1 answer

How to update a racket package installation and restore raco pkg subcommand?

I am trying to update an old racket package I had written ages ago to run on the new racket. I found the documentation extremely confusing and seemingly broke everything. Can you please suggest how things can be resolved? While trying to run raco…
wdkrnls
  • 4,548
  • 7
  • 36
  • 64
0
votes
1 answer

Is there a way to limit or whitelist which files the command "raco test" should execute, based on file names or file extensions?

I'm writing unit tests using rackunit and running them using raco through the command raco test ., which recursively finds all racket files and executes them, including files that do not contain unit tests at all. It just runs everything. According…
NPN328
  • 1,863
  • 3
  • 27
  • 47
0
votes
0 answers

raco exe error - dynamic-require error from (place) form in required module

I'm using Racket 6.8, and I'm getting a weird error when attempting to run an EXE created with raco exe when the project includes a (place) form in a module required from the main module. This can be reproduced with the following…
Chris Vig
  • 8,552
  • 2
  • 27
  • 35
1
2