'Open Defining File' / 'Jump to definition(in other file)' opens wrong file
Nobody has claimed this yet.
- Dominant language
- Racket
- Stars
- 516
- Forks
- 103
- PR merge metrics
- No merged PRs in 30d
Description
Steps to reproduce :
- create two sibling folders
testandtest3(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.rkttab, right click on(show-me2)and select 'Jump to Definition (in Other File)' - goes to(define (show-me2)intest3/test2.rktas 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)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the navigation behavior with test/test1.rkt, test/test2.rkt, test3/test1.rkt, and test3/test2.rkt in separate tabs. Start with the Jump to Definition (in Other File) action and verify that selecting show-me from each test1.rkt opens the matching sibling test2.rkt file.
Written by the indexing model from the issue text.
Assessment
- Domain
- desktop, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100