cursive
cursive copied to clipboard
Exception traces are sometimes reported incorrectly in 1.12.4-eap3
Following the issue in https://github.com/cursive-ide/cursive/issues/2701
I've tested 1.12.4-eap3 with the following code:
(deftest my-test1
(println "---")
(throw (Exception.)))
The result:
Error is marked on the println
line.
Another case, where I was not able to find minimal code:
(deftest test-soft-delete1
(utils/with-system
(fn [ctx]
(let [{:keys [hospital icu er pediatrics]} (utils/seed-hospital! ctx)]
(utils/execute! ctx :cmd.org/create-room (merge icu {:name "Room 1"})) ;; <- throws exception
))))
Exception is thrown from deeply called function inside execute!
.
The result:
No error displayed in the editor, REPL shows only this output:
Loading org/test/org/app/core_test.clj... done
Running org.app.core-test/test-soft-delete1
Error handling response - class java.lang.IllegalArgumentException: Argument for @NotNull parameter 'name' of com/intellij/psi/search/FilenameIndex.getVirtualFilesByName must not be null
Error handling response - class java.lang.IllegalArgumentException: Argument for @NotNull parameter 'name' of com/intellij/psi/search/FilenameIndex.getVirtualFilesByName must not be null
Error handling response - class java.lang.IllegalArgumentException: Argument for @NotNull parameter 'name' of com/intellij/psi/search/FilenameIndex.getVirtualFilesByName must not be null
Error handling response - class java.lang.IllegalArgumentException: Argument for @NotNull parameter 'name' of com/intellij/psi/search/FilenameIndex.getVirtualFilesByName must not be null
Error handling response - class java.lang.IllegalArgumentException: Argument for @NotNull parameter 'name' of com/intellij/psi/search/FilenameIndex.getVirtualFilesByName must not be null
Seeing class java.lang.IllegalArgumentException: Argument for @NotNull parameter 'name' ....
a lot after updating to Idea 2022.2