getappmap / getappmap/appmap-python
IndexError: tuple index out of range
Offen
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 104
- Forks
- 17
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit _appmap/event.py ungefähr bei Zeile 509 und dem Pfad zur Ausnahmebehandlung in _appmap/instrument.py. Reproduziere den Fehler, indem du den Fall test_derivatives aus test_zeta_functions.py von SymPy v1.0 ausführst. Als erledigt gilt die Aufgabe, wenn der gemeldete IndexError bei der Behandlung dieser Ausnahme nicht mehr auftritt und der Test abgeschlossen wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100