Skip to content

yesod devel got stuck in "recompiling" mode forever right upon the start #1471

@develop7

Description

@develop7

Repro:

  1. stack new testsod yesod-simple; cd testsod
  2. stack build --fast; stack build yesod-bin if necessary
  3. stack exec -- yesod devel
  4. Navigate http://localhost:3000/

Expected: regular behavior — a generated project shows up

Instead: the web page is permanenly stuck in "The application isn’t built" mode.

Here's output of the yesod devel command:

develop7@t-rex ~/t/testsod> stack exec -- yesod devel
Yesod devel server. Enter 'quit' or hit Ctrl-C to quit.
Application can be accessed at:

http://localhost:3000
https://localhost:3443
If you wish to test https capabilities, you should set the following variable:
  export APPROOT=https://localhost:3443

ExitSuccess
Type help for available commands. Press enter to force a rebuild.
Starting devel application
Devel application launched: http://localhost:3000
devel.hs: Network.Socket.getAddrInfo: does not exist (Name or service not known)

Note the latest line, devel.hs: Network.Socket.getAddrInfo: does not exist (Name or service not known). I was trying to dig into this by catching the exception from GHCi, but the trace was less than useful.

UPD: I've ran into this before while running stackage-server with yesod devel, symptoms were exactly the same. But only in Linux (openSUSE Tumbleweed, for the record). It wasn't the case for Mac OS X 10.13.2.

Bugreport script output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions