racket / racket/drracket

Files specified on the command line are not found with relative path

Open
#549 1 comment 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

DrRacket 8.4 (CS)
OS: Linux

To reproduce:

  1. Create exist.rkt in the current directory.
#lang racket 
(displayln "OK")
  1. Verify that it runs fine racket exist.rkt prints OK.
  2. Run DrRacket from the command line: drracket exist.rkt.
  3. Dialog pops up "Cannot open exist.rkt because it does not exist." <-- PROBLEM BEHAVIOR
  4. Running with a full path finds the file. drracket $PWD/exist.rkt (or whatever your shell wants).

This seems like an obvious problem that should have been reported already, but I could not find it when searching the open issues.

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 issue on Linux with a local exist.rkt file by running drracket exist.rkt, then compare it with drracket using the full path. Trace how DrRacket handles command-line file arguments; done means a relative path from the current directory opens successfully without the dialog reporting that the file does not exist.

Written by the indexing model from the issue text.

Assessment

Domain
cli, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.