Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

'Open Defining File' / 'Jump to definition(in other file)' opens wrong file

Aperta
#668 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Ambito
desktop, tooling

Direzione di ricerca

Riproducete il comportamento di navigazione con test/test1.rkt, test/test2.rkt, test3/test1.rkt e test3/test2.rkt in schede separate. Iniziate con l’azione Jump to Definition (in Other File) e verificate che selezionando show-me da ciascun test1.rkt venga aperto il file test2.rkt corrispondente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Steps to reproduce :

  1. create two sibling folders test and test3 (I did this in Downloads)
  2. create file test/test1.rkt
  3. create file test/test2.rkt
  4. create file test3/test1.rkt
  5. create file test3/test2.rkt
  6. open each file in doctor in a new tab
  7. run test/test1.rkt - works as expected
  8. run test3/test1.rkt - works as expected
  9. in test3/test1.rkt tab, right click on (show-me2) and select 'Jump to Definition (in Other File)' - goes to (define (show-me2) in test3/test2.rkt as expected
  10. 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 required test/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)
open-defining-file

Lingua principale
Racket
Stelle
517
Fork
102
Merge medio
8h 52m
PR unite (30g)
1

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di racket/drracket

Tutte le issue di racket/drracket

Issue simili

Altre issue su Desktop Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.