Development mode: `AppConfig` not in scope #170

Closed
tmhedberg opened this Issue Feb 16, 2013 · 1 comment

2 participants

@tmhedberg

I'm getting an error with a brand new Snap project in development mode (using Snap 0.11.1 and GHC 7.6.2). I ran snap init and then edited the default Cabal file, just changing the name of the project and executable to snap-test and not touching anything else. Then:

$ cabal install -fdevelopment
$ snap-test
no port specified, defaulting to port 8000
Listening on http://0.0.0.0:8000/

In response to any request, I get:

A web handler threw an exception. Details:
Compile errors:

Not in scope: type constructor or class `AppConfig'

However, if I install without the -fdevelopment flag, it seems to work just fine.

Edit: It occurs to me that this ticket may belong under snapframework/snap-loader-dynamic instead of snapframework/snap-core. If that's the case, I can reopen it over there instead.

@mightybyte
Snap Framework member

Fixed by 55d42a82cba97ddfb7b0c213d7ef08713e18207f in the snap repo. The fix will be in the next release.

@mightybyte mightybyte closed this Feb 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment