Skip to content

Commit

Permalink
fix: python stack trace pattern update
Browse files Browse the repository at this point in the history
  • Loading branch information
nedpals committed Feb 2, 2024
1 parent 625ba6d commit 58fd022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion languages/python/language.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var Language = &lib.Language{
Name: "Python",
FilePatterns: []string{".py"},
SitterLanguage: python.GetLanguage(),
StackTracePattern: `\s+File "(?P<path>\S+)", line (?P<position>\d+)(?:, in (?P<symbol>\S+))?`,
StackTracePattern: `\s+File "(?P<path>\S+)", line (?P<position>\d+)(?:, in (?P<symbol>\S+))?(?:\n.+(?:\n[ ^~]+)?\n)?`,
ErrorPattern: `$stacktrace$message`,
AnalyzerFactory: func(cd *lib.ContextData) lib.LanguageAnalyzer {
return &pyAnalyzer{cd}
Expand Down

0 comments on commit 58fd022

Please sign in to comment.