|
45 | 45 | (it "extracts correct information from the error message"
|
46 | 46 |
|
47 | 47 | ;; test-cider-extract-error-info-14
|
48 |
| - (let* ((message "CompilerException java.lang.RuntimeException: Unable to resolve symbol: dummy in this context, compiling:(/some/test/file/core.clj:31)") |
| 48 | + (let* ((message "Syntax error compiling at (/some/test/file/core.clj:31). Unable to resolve symbol: dummy in this context.") |
49 | 49 | (info (cider-extract-error-info cider-compilation-regexp message)))
|
50 | 50 | (expect (file-name info) :to-equal "/some/test/file/core.clj")
|
51 | 51 | (expect (line-num info) :to-equal 31)
|
52 | 52 | (expect (col-num info) :to-equal nil)
|
53 | 53 | (expect (face info) :to-equal 'cider-error-highlight-face))
|
54 | 54 |
|
55 | 55 | ;; test-cider-extract-error-info-14-windows
|
56 |
| - (let* ((message "CompilerException java.lang.RuntimeException: Unable to resolve symbol: dummy in this context, compiling:(c:\\some\\test\\file\\core.clj:31)") |
| 56 | + (let* ((message "Syntax error compiling at (c:\\some\\test\\file\\core.clj:31). Unable to resolve symbol: dummy in this context.") |
57 | 57 | (info (cider-extract-error-info cider-compilation-regexp message)))
|
58 | 58 | (expect (file-name info) :to-equal "c:\\some\\test\\file\\core.clj")
|
59 | 59 | (expect (line-num info) :to-equal 31)
|
60 | 60 | (expect (col-num info) :to-equal nil)
|
61 | 61 | (expect (face info) :to-equal 'cider-error-highlight-face))
|
62 | 62 |
|
63 | 63 | ;; test-cider-extract-error-info-14-no-file
|
64 |
| - (let* ((message "CompilerException java.lang.RuntimeException: Unable to resolve symbol: dummy in this context, compiling:(NO_SOURCE_PATH:31)") |
| 64 | + (let* ((message "Syntax error compiling at (REPL:31). Unable to resolve symbol: dummy in this context.") |
65 | 65 | (info (cider-extract-error-info cider-compilation-regexp message)))
|
66 | 66 | (expect (file-name info) :to-equal nil)
|
67 | 67 | (expect (line-num info) :to-equal 31)
|
|
86 | 86 | (expect (face info) :to-equal 'cider-warning-highlight-face))
|
87 | 87 |
|
88 | 88 | ;; test-cider-extract-error-info-15
|
89 |
| - (let* ((message "CompilerException java.lang.RuntimeException: Unable to resolve symbol: dummy in this context, compiling:(/some/test/file/core.clj:31:3)") |
| 89 | + (let* ((message "Syntax error compiling at (/some/test/file/core.clj:31:3). Unable to resolve symbol: dummy in this context.") |
90 | 90 | (info (cider-extract-error-info cider-compilation-regexp message)))
|
91 | 91 | (expect (file-name info) :to-equal "/some/test/file/core.clj")
|
92 | 92 | (expect (line-num info) :to-equal 31)
|
93 | 93 | (expect (col-num info) :to-equal 3)
|
94 | 94 | (expect (face info) :to-equal 'cider-error-highlight-face))
|
95 | 95 |
|
96 | 96 | ;; test-cider-extract-error-info-15-no-file
|
97 |
| - (let* ((message "CompilerException java.lang.RuntimeException: Unable to resolve symbol: dummy in this context, compiling:(NO_SOURCE_PATH:31:3)") |
| 97 | + (let* ((message "Syntax error compiling at (REPL:31:3). Unable to resolve symbol: dummy in this context") |
98 | 98 | (info (cider-extract-error-info cider-compilation-regexp message)))
|
99 | 99 | (expect (file-name info) :to-equal nil)
|
100 | 100 | (expect (line-num info) :to-equal 31)
|
|
0 commit comments