getappmap / getappmap/appmap-python

IndexError: tuple index out of range

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

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

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

Mô tả

Found in sympy v1.0 test cases.

Traceback (most recent call last):
  File "/tmp/tmpz56qw_4w/sympy__sympy__1.0/sympy/utilities/runtests.py", line 1130, in wrapper
    test_func()
  File "/tmp/tmpz56qw_4w/sympy__sympy__1.0/sympy/functions/special/tests/test_zeta_functions.py", line 95, in test_derivatives
    assert zeta(x, a).diff(x) == Derivative(zeta(x, a), x)
  File "/home/db/dev/applandinc/appmap-python/_appmap/wrapt/wrappers.py", line 712, in __call__
    return self._self_wrapper(self.__wrapped__, self._self_instance,
  File "/home/db/dev/applandinc/appmap-python/_appmap/instrument.py", line 129, in instrumented_fn
    return call_instrumented(f, instance, args, kwargs)
  File "/home/db/dev/applandinc/appmap-python/_appmap/instrument.py", line 92, in call_instrumented
    ret = f.fn(*args, **kwargs)
  File "/tmp/tmpz56qw_4w/sympy__sympy__1.0/sympy/core/expr.py", line 2949, in diff
    return Derivative(self, *new_symbols, **assumptions)
  File "/tmp/tmpz56qw_4w/sympy__sympy__1.0/sympy/core/function.py", line 1187, in __new__
    obj = expr._eval_derivative(v)
  File "/home/db/dev/applandinc/appmap-python/_appmap/wrapt/wrappers.py", line 712, in __call__
    return self._self_wrapper(self.__wrapped__, self._self_instance,
  File "/home/db/dev/applandinc/appmap-python/_appmap/instrument.py", line 129, in instrumented_fn
    return call_instrumented(f, instance, args, kwargs)
  File "/home/db/dev/applandinc/appmap-python/_appmap/instrument.py", line 92, in call_instrumented
    ret = f.fn(*args, **kwargs)
  File "/tmp/tmpz56qw_4w/sympy__sympy__1.0/sympy/core/function.py", line 559, in _eval_derivative
    df = self.fdiff(i)
  File "/home/db/dev/applandinc/appmap-python/_appmap/wrapt/wrappers.py", line 712, in __call__
    return self._self_wrapper(self.__wrapped__, self._self_instance,
  File "/home/db/dev/applandinc/appmap-python/_appmap/instrument.py", line 129, in instrumented_fn
    return call_instrumented(f, instance, args, kwargs)
  File "/home/db/dev/applandinc/appmap-python/_appmap/instrument.py", line 103, in call_instrumented
    event.ExceptionEvent(
  File "/home/db/dev/applandinc/appmap-python/_appmap/event.py", line 509, in __init__
    {"class": fqname(class_), "message": str(exc), "object_id": id(exc)}
  File "/tmp/tmpz56qw_4w/sympy__sympy__1.0/sympy/core/function.py", line 94, in __str__
    (self.args[1], self.args[0]))
IndexError: tuple index out of range

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

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

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.

Hướng nghiên cứu

Bắt đầu với _appmap/event.py quanh dòng 509 và đường dẫn xử lý ngoại lệ trong _appmap/instrument.py. Tái hiện lỗi bằng cách chạy trường hợp test_derivatives của test_zeta_functions.py trong SymPy v1.0. Được xem là hoàn tất khi IndexError được báo cáo không còn xảy ra trong lúc xử lý ngoại lệ đó và bài kiểm thử hoàn thành.

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

Đánh giá

Công nghệ
python
Lĩnh vực
devtools
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/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.