jyp / dante

389 stars 52 forks source link

Complains about no loading method applies, even if all variables are set. #173

Open asheshambasta opened 1 year ago

asheshambasta commented 1 year ago

Hello,

I'm using a rather complex setup with which I'm locally setting dante variables using emacs directory variables like so:


(
 ;; for each `<mode> . (<variable> . <value>)`, set the given variables
 ;; `eval` is a pseudovariable that evaluates its value
 (nil .
      (
       (eval .
             (progn
               ;; load the cosmos utilities
               (load (concat (locate-dominating-file buffer-file-name "cosmos.el") "cosmos"))
               ;; load cabal package with target
               (load-cosmos-target "terra-lib" "lib:terra-lib")
             )
       )
       )
      )
 )

cosmos.el is an elisp file that sets the desired variables.

And the results remain unchanged across multiple subpackages of the same monorepo.

Dante is telling me the following:

Error during redisplay: (eval (concat dante-modeline-prefix (dante-status))) signaled (error "No GHCi loading method applies.  Customize ‘dante-methods’ or
      (‘dante-repl-command-line’ and ‘dante-project-root’) and perhaps ‘dante-target’")

However, all of these variables are set:

I'm on Emacs 28.2 with Dante 20221116.840

Am I doing something incorrect here or is this a bug?