racket / racket/drracket

prefix-in renaming fails when replacement token is empty [bug, feature request]

Open
#137 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Here is the result of renaming the prefix "abc:" to "", the empty string:

#lang racket
(require (prefix-in || "foo.rkt"))
(+ ||xyz (||xyz 10))

I expect to get this:

#lang racket
(require "foo.rkt")
(+ xyz (xyz 10))

When you run search-and-replace in drracket with "abc:" to "" it does that (minus the prefix-in removal).

So it's possible that this is not a bug report but a feature request for "remove prefix-in".

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 in DrRacket using the prefix-in example with an empty replacement token, then trace the renaming operation that produces the shown output. Done means renaming abc: to an empty string removes the prefix-in form and leaves the expected xyz references.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.