Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error During Interactive Linking, GHCi Couldn't Find the Following Symbol #21

Closed
creichert opened this issue Nov 16, 2014 · 3 comments
Closed
Assignees

Comments

@creichert
Copy link

I receive the following error when I have flycheck-haskell enabled
and I attempt to use haskell-mode's haskell-process-load-file:

During interactive linking, GHCi couldn't find the following symbol:                
  Settings_staticDir_closure                                                        
This may be due to you not asking GHCi to load extra object files,                  
archives or DLLs needed by your current session.  Restart GHCi, specifying          
the missing library using the -L/path/to/object/dir and -lmissinglibname            
flags, or simply by naming the relevant files on the GHCi command line.             
Alternatively, this link failure might indicate a bug in GHCi.                      
If you suspect the latter, please send a bug report to:                             
  glasgow-haskell-bugs@haskell.org                                                  


Checker definition probably flawed.

This error is on a basic Yesod site and does not happen on other
(non-yesod) cabal projects. Yesod does use some CPP to conditionally
compile environments but I haven't quite figured out if that's related
to this issue (staticDir is a simple function staticDir = "static").

I'm not certain how to go about debugging this further. Let me know if
there is anything else I can do to help.

Thanks!

@swsnr swsnr self-assigned this Nov 16, 2014
@swsnr
Copy link
Contributor

swsnr commented Nov 16, 2014

@creichert Since you are using Yesod, I presume that there is some Template Haskell in your code. Unfortunately Flycheck does not work well with Template Haskell currently, and I don't know a proper fix.

IOW, since Yesod heavily relies on Template Haskell currently, you won't be able to use Flycheck successfully with Yesod. I'm sorry.

And fixes are welcome!

@swsnr swsnr closed this as completed Nov 16, 2014
@freeman42x
Copy link

@lunaryorn Do you happen to know if there is any way to avoid getting the message popup (appears on each save) without disabling flycheck (seems to still work despite the error)?

@swsnr
Copy link
Contributor

swsnr commented Jun 15, 2015

@razvan-panda There's not. I can add one if you make me an issue in the Flycheck issue tracker, but it'll take a long time, because it's not a high priority for me—it only affects flawed checkers after all—and I have many other things to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants