error with brace and x

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

Maintainer thường phản hồi trong vòng 4 ngày

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
30/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
perl
Lĩnh vực
backend

Hướng nghiên cứu

Start with contextInequalitySetBuilder.pl, which the reproduction loads through loadMacros, and see how it parses the set-builder formula {x : x > 1}. The error syntax error ... near "$x :" suggests the variable is being pasted into generated Perl code during answer evaluation, so trace the path from Formula(...) to the answer checker. Done means the answer {x:x>1} submitted to a MathQuill blank evaluates without a syntax error. Reproduce it with the snippet in the issue.

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

Mô tả

MathObject issue

In develop, with the following problem:

DOCUMENT();
loadMacros(qw(PGstandard.pl PGML.pl contextInequalitySetBuilder.pl));

Context("InequalitySetBuilder");
$sb = Formula("{x : x > 1}");

BEGIN_PGML
In set-builder notation: [_]{$sb}
END_PGML
ENDDOCUMENT();

If I type into a MQ answer blank {x:x>1} and submit the answer, syntax error at (eval 1515) line 6, near "$x :".

Ngôn ngữ chính
Perl
Star
48
Fork
78
Merge trung bình
5 ngày 13 giờ
Pull request đã merge (30 ngày)
9

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 openwebwork/pg

Tất cả issue của openwebwork/pg

Issue tương tự

Thêm issue về Perl

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.