@@ -564,7 +564,7 @@ It delegates the actual error content to the eval or op handler."
564
564
; ; Reference:
565
565
; ; https://github.com/clojure/clojure/blob/clojure-1.10.0/src/clj/clojure/main.clj#L251
566
566
; ; See `cider-compilation-regexp' for interpretation of match groups.
567
- (defconst cider-clojure-1.10- -location
567
+ (defconst cider-- clojure-1.10-location
568
568
'(sequence
569
569
" at " (minimal-match (zero-or-more anything)) ; ; the fully-qualified name of the function that triggered the error
570
570
" ("
@@ -574,7 +574,7 @@ It delegates the actual error content to the eval or op handler."
574
574
" :" (group-n 4 (one-or-more (any " -" digit)))) ; column number
575
575
" )." ))
576
576
577
- (defconst cider-clojure-1.10-error
577
+ (defconst cider-- clojure-1.10-error
578
578
`(sequence
579
579
(or " Syntax error reading source " ; phase = :read-source
580
580
(sequence
@@ -583,10 +583,10 @@ It delegates the actual error content to the eval or op handler."
583
583
(or " macroexpanding " ; phase = :macro-syntax-check / :macroexpansion
584
584
" compiling " ) ; phase = :compile-syntax-check / :compilation
585
585
(minimal-match (zero-or-more anything)))) ; optional symbol, eg. foo/bar
586
- , cider-clojure-1 .10- -location)
586
+ , cider-- clojure-1 .10-location)
587
587
" Regexp matching error messages triggered in compilation / read / print phases." )
588
588
589
- (defconst cider-clojure-warning
589
+ (defconst cider-- clojure-warning
590
590
`(sequence
591
591
(minimal-match (zero-or-more anything))
592
592
(group-n 1 " warning" )
@@ -601,8 +601,8 @@ It delegates the actual error content to the eval or op handler."
601
601
; ; which is a subset of these regexes.
602
602
(defconst cider-clojure-compilation-regexp
603
603
(rx-to-string
604
- `(seq bol (or , cider-clojure-warning
605
- , cider-clojure-1 .10-error))
604
+ `(seq bol (or , cider-- clojure-warning
605
+ , cider-- clojure-1 .10-error))
606
606
'nogroup )
607
607
" A few example values that will match:
608
608
\" Reflection warning, /tmp/foo/src/foo/core.clj:14:1 - \"
@@ -611,7 +611,7 @@ It delegates the actual error content to the eval or op handler."
611
611
612
612
(defconst cider-clojure-compilation-error-regexp
613
613
(rx-to-string
614
- `(seq bol , cider-clojure-1 .10-error)
614
+ `(seq bol , cider-- clojure-1 .10-error)
615
615
'nogroup )
616
616
" Like `cider-clojure-compilation-regexp' ,
617
617
but excluding warnings such as reflection warnings.
@@ -620,25 +620,25 @@ A few example values that will match:
620
620
\" Syntax error compiling at (src/workspace_service.clj:227:3).\"
621
621
\" Unexpected error (ClassCastException) macroexpanding defmulti at (src/haystack/parser.cljc:21:1).\" " )
622
622
623
- (defconst cider--clojure-execution-error-regexp
623
+ (defconst cider--clojure-execution-error
624
624
`(sequence
625
625
(or " Error reading eval result " ; phase = :read-eval-result
626
626
" Error printing return value " ; phase = :print-eval-result
627
627
" Execution error " ) ; phase = :execution
628
628
(minimal-match (zero-or-more anything)) ; optional class, eg. (ArithmeticException)
629
- , cider-clojure-1 .10- -location))
629
+ , cider-- clojure-1 .10-location))
630
630
631
- (defconst cider--clojure-spec-execution-error-regexp
631
+ (defconst cider--clojure-spec-execution-error
632
632
`(sequence
633
633
" Execution error - invalid arguments to "
634
634
(minimal-match (one-or-more anything))
635
635
" "
636
- , cider-clojure-1 .10- -location))
636
+ , cider-- clojure-1 .10-location))
637
637
638
638
(defconst cider-clojure-runtime-error-regexp
639
639
(rx-to-string
640
- `(seq bol (or , cider--clojure-execution-error-regexp
641
- , cider--clojure-spec-execution-error-regexp ))
640
+ `(seq bol (or , cider--clojure-execution-error
641
+ , cider--clojure-spec-execution-error ))
642
642
'nogroup )
643
643
" Matches runtime errors, as oppsed to compile-time/macroexpansion-time errors.
644
644
0 commit comments