racket / drracket

DrRacket, IDE for Racket
http://www.racket-lang.org/
Other
452 stars 94 forks source link

Renaming required identifier changes require path #491

Open LLazarek opened 3 years ago

LLazarek commented 3 years ago

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]

sorawee commented 3 years ago

Relevant discussion: #417

rfindler commented 2 years ago

This no longer offers a renaming option. Probably it is okay to close this, given #417.