Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

DrRacket internal error for default save file location taken

Đang mở
#798 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Lĩnh vực
desktop

Hướng nghiên cứu

Bắt đầu từ framework/private/autosave.rkt:57, phương thức notify của autosave-timer% được nêu trong stack trace, và kiểm tra cách đích PLT-autosave-toc-save.rktd hiện có được xử lý. Tái hiện autosave khi đích đó đã tồn tại. Hoàn tất khi lỗi nội bộ được báo cáo không còn xảy ra và việc xử lý dự kiến đối với danh sách autosave hiện có đã được bao phủ.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

On Racket v9.0 [cs], on a MacOS 14.3 (23D56) machine, if it matters, I encountered the following when autosave attempted:

copy-file: destination exists
  source path: /Users/jhemann/Library/Preferences/PLT-autosave-toc.rktd
  destination path: /Users/jhemann/Library/Preferences/PLT-autosave-toc-save.rktd
  context...:
   /Applications/Racket v9.0/share/pkgs/gui-lib/framework/private/autosave.rkt:57:6: notify method in autosave-timer%
   /Applications/Racket v9.0/share/pkgs/gui-lib/mred/private/wx/common/timer.rkt:34:38
   /Applications/Racket v9.0/share/pkgs/gui-lib/mred/private/wx/common/queue.rkt:436:6
   /Applications/Racket v9.0/share/pkgs/gui-lib/mred/private/wx/common/queue.rkt:487:32
   /Applications/Racket v9.0/share/pkgs/gui-lib/mred/private/wx/common/queue.rkt:639:3

The proximate cause is, as it says, that copy-file throws an error when the PLT-autosave-toc-save.rktd file already exists. But I don't believe I've done anything that an ordinary user wouldn't've done. It seems like we were prevented from clobbering an autosave list, but it surprises me that the autosave feature is limited to one list, or that the lists aren't addable, or that we aren't forced to dispense with the existing autosave list before trying to autosave the next one. IIUC.

I tried to look around, but I couldn't find where the prefixed k:copy-file is coming from in racket/private/pre-base.rkt.

Ngôn ngữ chính
Racket
Star
517
Fork
102
Merge trung bình
8 giờ 52 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của racket/drracket

Tất cả issue của racket/drracket

Issue tương tự

Thêm issue về Desktop Dev

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.