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

[K-Bug] <pyk coverage runerror>

Đang mở
#4,664 0 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ó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
testing-qa, tooling

Hướng nghiên cứu

Start by reproducing the three commands in the issue, then inspect pyk/main.py around exec_coverage and pyk/kast/manip.py around remove_source_map and on_attributes. Compare the KDefinition.let call with the available definition API; done means the coverage command completes successfully for the reported inputs.

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

Mô tả

What component is the issue in?

None

Which command
  • kompile
  • kast
  • krun
  • kprove
  • kprovex
  • ksearch
What K Version?

v7.1.151

Operating System

Linux

K Definitions (If Possible)

No response

Steps to Reproduce

kompile main.k --coverage --emit-json
krun adder.generic.mlir --definition main-kompiled
pyk coverage ../main-kompiled/ 833780_coverage.txt

Traceback (most recent call last):
  File "/home/zjh/proj/cym-circt-semantics/.venv/bin/pyk", line 8, in <module>
    sys.exit(main())
  File "/home/zjh/proj/cym-circt-semantics/.venv/lib/python3.10/site-packages/pyk/__main__.py", line 98, in main
    execute(options)
  File "/home/zjh/proj/cym-circt-semantics/.venv/lib/python3.10/site-packages/pyk/__main__.py", line 394, in exec_coverage
    definition = remove_source_map(read_kast_definition(kompiled_dir / 'compiled.json'))
  File "/home/zjh/proj/cym-circt-semantics/.venv/lib/python3.10/site-packages/pyk/kast/manip.py", line 567, in remove_source_map
    return on_attributes(definition, lambda att: att.drop_source())
  File "/home/zjh/proj/cym-circt-semantics/.venv/lib/python3.10/site-packages/pyk/kast/manip.py", line 503, in on_attributes
    return kast.let(modules=modules)  # type: ignore
TypeError: KDefinition.let() got an unexpected keyword argument 'modules'
Expected Results

coverage success

Ngôn ngữ chính
Python
Star
600
Fork
164
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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

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 runtimeverification/k

Tất cả issue của runtimeverification/k

Issue tương tự

Thêm issue về Python

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.