adambard / adambard/learnxinyminutes-docs

[Racket / rkt] Running the script fails

Đang mở
#4,508 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Markdown
Star
12.3k
Fork
3.7k
Merge trung bình
13 giờ 10 phút
Pull request đã merge (30 ngày)
6

Mô tả

When running:

`racket learnracket.rkt`

with Racket v8.6 on Ubuntu (the current "latest" version), it stops with the following error:

```
learnracket.rkt:678:8: module: identifier already defined
at: out-port
in: (define-values (out-port) (open-output-file "/tmp/tmp.txt" #:exists (quote append)))
location...:
learnracket.rkt:678:8
```

Changing "out-port" to "out-port2" in lines 678 to 681 seems to fix the error but I am a total Racket beginner so I am not sure if that's indeed the correct fix.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Run `racket learnracket.rkt` with Racket v8.6 on Ubuntu and inspect `learnracket.rkt` lines 678-681, where the `out-port` definition reports a duplicate identifier. The work is done when the script runs without this error and the output-file behavior remains correct.

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

Đánh giá

Lĩnh vực
documentation
Loại issue
Lỗi
Độ khó
1/5
Thời gian dự kiến
Dưới một giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
45/100

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.