racket / racket/drracket

Create executable via DrRacket menu doesn't work with main module

Open
#13 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Racket
Stars
516
Forks
103
PR merge metrics
No merged PRs in 30d

Description

Consider the following program:

#lang racket

(module* main #f
  (display "hello, world"))

When I create a standalone exe via "raco exe foo.rkt" the program behaves as expected. However, if I use DrRacket to create the executable via "Racket | Create Executable ..." and choose Type=Standalone and Base=Racket, I get no output when running the executable.

I'm on Mac OSX 10.10.4.

The problem seems to be with handling the main module. If I simply have (display "hello, world") by itself, it works fine.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the example program using both raco exe foo.rkt and DrRacket's Racket | Create Executable ... with Type=Standalone and Base=Racket. Compare the resulting executables' handling of the module* main form; done means the DrRacket-created executable prints "hello, world" like the command-line version.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.