racket / racket/drracket

Renaming required identifier changes require path

Open
#491 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Renaming a required identifier changes the module path in that file's require.

Example: two files, a.rkt and b.rkt

;; a.rkt
#lang racket
(provide a)
(define a 5)

;; b.rkt
#lang racket
(require "a.rkt")
(+ a 2)

Opening b.rkt, right clicking on a on line 3, and renaming it to foo changes the line 2 of b.rkt to (require foo).

What I expected: it would leave the require path alone.

Racket version: 8.1.0.7 [cs]

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 two-file a.rkt and b.rkt example, then inspect the rename operation triggered on a in b.rkt. Done means renaming the identifier changes its uses without changing the string path in the require form.

Written by the indexing model from the issue text.

Assessment

Domain
devtools
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.