File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/databricks-vscode/src/run Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,9 @@ export function processException(cause: string): Frame[] {
5757 }
5858 const cleanChunk = chunk . replace ( / \u001b \[ \d + (?: ; \d + ) * m / g, "" ) ;
5959
60- const match = cleanChunk . match ( / ^ ( \/ .* ?\. p y ) i n \s / u) ;
60+ const match =
61+ cleanChunk . match ( / ^ ( \/ .* ?\. p y ) i n \s / u) ||
62+ cleanChunk . match ( / F i l e ( \/ .* ?\. p y ) / u) ;
6163 if ( match ) {
6264 const lineMatch = cleanChunk . match ( / ^ - + > \s ( \d + ) / mu) ;
6365
@@ -82,7 +84,9 @@ function processSyntaxError(cause: string): Frame[] {
8284
8385 for ( const chunk of chunks ) {
8486 const cleanChunk = chunk . replace ( / \u001b \[ \d + (?: ; \d + ) * m / g, "" ) ;
85- const match = cleanChunk . match ( / ^ \s * F i l e \s * " ( .* ?) " , l i n e ( \d + ) / u) ;
87+ const match =
88+ cleanChunk . match ( / ^ \s * F i l e \s * " ( .* ?) " , l i n e ( \d + ) / u) ||
89+ cleanChunk . match ( / F i l e ( \/ .* ?\. p y ) : ( \d + ) / u) ;
8690 if ( match ) {
8791 frames . push ( {
8892 file : match [ 1 ] ,
You can’t perform that action at this time.
0 commit comments