cursive icon indicating copy to clipboard operation
cursive copied to clipboard

Exception traces are sometimes reported incorrectly in 1.12.4-eap3

Open tomasd opened this issue 2 years ago • 1 comments

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: Snímka obrazovky 2022-06-02 o 13 18 16

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

tomasd avatar Jun 02 '22 11:06 tomasd

Seeing class java.lang.IllegalArgumentException: Argument for @NotNull parameter 'name' .... a lot after updating to Idea 2022.2

antonmos avatar Sep 16 '22 18:09 antonmos