-
Notifications
You must be signed in to change notification settings - Fork 374
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
yesod devel got stuck in "recompiling" mode forever right upon the start #1471
Comments
My guess is that some other application is running on port 3000. Can you verify if that's the case (using |
@psibi wouldn't |
@psibi also that's not the case
|
What does |
https://gist.github.com/develop7/812244fdfb5a6f01429368b190f03d21#file-gistfile1-txt-L217 |
@develop7 ran into an issue with `yesod devel` (yesodweb/yesod#1471) and got the following error message: ``` devel.hs: Network.Socket.getAddrInfo: does not exist (Name or service not known) ``` It would be useful to have a more detailed error message to aid in debugging this exception. The new message looks like this: ``` > getAddrInfo Nothing (Just "127.0.0.1") (Just "foo") *** Exception: Network.Socket.getAddrInfo (called with preferred socket type/protocol: Nothing, host name: Just "127.0.0.1", service name: Just "foo"): does not exist (nodename nor servname provided, or not known) ``` I think a more verbose error message is well worth it, especially since these kind of lower-level, underlying issues can be hard to debug. (I added a similar error message for `getNameInfo` since it was right there)
@develop7 ran into an issue with `yesod devel` (yesodweb/yesod#1471) and got the following error message: ``` devel.hs: Network.Socket.getAddrInfo: does not exist (Name or service not known) ``` It would be useful to have a more detailed error message to aid in debugging this exception. The new message looks like this: ``` > getAddrInfo Nothing (Just "127.0.0.1") (Just "foo") *** Exception: Network.Socket.getAddrInfo (called with preferred socket type/protocol: Nothing, host name: Just "127.0.0.1", service name: Just "foo"): does not exist (nodename nor servname provided, or not known) ``` I think a more verbose error message is well worth it, especially since these kind of lower-level, underlying issues can be hard to debug. (I added a similar error message for `getNameInfo` since it was right there)
@develop7 ran into an issue with `yesod devel` (yesodweb/yesod#1471) and got the following error message: ``` devel.hs: Network.Socket.getAddrInfo: does not exist (Name or service not known) ``` It would be useful to have a more detailed error message to aid in debugging this exception. The new message looks like this: ``` > getAddrInfo Nothing (Just "127.0.0.1") (Just "foo") *** Exception: Network.Socket.getAddrInfo (called with preferred socket type/protocol: Nothing, host name: Just "127.0.0.1", service name: Just "foo"): does not exist (nodename nor servname provided, or not known) ``` I think a more verbose error message is well worth it, especially since these kind of lower-level, underlying issues can be hard to debug. (I added a similar error message for `getNameInfo` since it was right there)
@develop7 ran into an issue with `yesod devel` (yesodweb/yesod#1471) and got the following error message: ``` devel.hs: Network.Socket.getAddrInfo: does not exist (Name or service not known) ``` It would be useful to have a more detailed error message to aid in debugging this exception. The new message looks like this: ``` > getAddrInfo Nothing (Just "127.0.0.1") (Just "foo") *** Exception: Network.Socket.getAddrInfo (called with preferred socket type/protocol: Nothing, host name: Just "127.0.0.1", service name: Just "foo"): does not exist (nodename nor servname provided, or not known) ``` I think a more verbose error message is well worth it, especially since these kind of lower-level, underlying issues can be hard to debug. (I added a similar error message for `getNameInfo` since it was right there)
I'm guessing you're not running PostgreSQL locally, and that's the source of the error message. |
@snoyberg umm, the project has been generated with |
Sorry, you're right. I was following this from the stackage-server PR that referenced it. |
I made a PR to network, now merged into master, that adds more detail to this error message |
With the patched
where |
Since this issue now can’t be reproduced, I’ll close it. |
Repro:
stack new testsod yesod-simple
;cd testsod
stack build --fast
;stack build yesod-bin
if necessarystack exec -- yesod devel
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: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
withyesod 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
The text was updated successfully, but these errors were encountered: