drracket
drracket copied to clipboard
'Open Defining File' / 'Jump to definition(in other file)' opens wrong file
Steps to reproduce :
- create two sibling folders
test
andtest3
(I did this inDownloads
) - create file
test/test1.rkt
- create file
test/test2.rkt
- create file
test3/test1.rkt
- create file
test3/test2.rkt
- open each file in doctor in a new tab
- run
test/test1.rkt
- works as expected - run
test3/test1.rkt
- works as expected - in
test3/test1.rkt
tab, right click on(show-me2)
and select 'Jump to Definition (in Other File)' - goes to(define (show-me2)
intest3/test2.rkt
as expected - go to tab for test/test1.rkt and right click on
(show-me2)
and select 'Jump to Definition (in Other File)' --- incorrectly goes to(define (show-me)
in test3/test2.rkt (I expected it to open the requiredtest/test2.rkt
).
Files
test/test1.rkt
#lang at-exp Racket
(require "test2.rkt")
(displayln "this is test/test1")
(show-me)
test/test2.rkt
#lang at-exp Racket
(provide show-me)
(define (show-me)
(displayln "this is test/test2"))
test3/test1.rkt
#lang at-exp Racket
(require "test2.rkt")
(displayln "this is test3/test1")
(show-me)
test3/test2.rkt
#lang at-exp Racket
(provide show-me)
(define (show-me)
(displayln "this is test3/test2"))
Reproduced on Welcome to DrRacket, version 8.12 [cs]. Language: at-exp racket, with debugging and profiling [custom]; memory limit: 128 MB. 8.12 (macOS 14.4.1 / M1)
Demonstration on 8.11 (win10)