intellij-haskforce icon indicating copy to clipboard operation
intellij-haskforce copied to clipboard

New project does not generate stack.yaml when offline

Open carymrobbins opened this issue 8 years ago • 2 comments

We delegate to the stack tool to generate a stack.yaml file; however, we could instead fall back to a default file with some default LTS version, possibly the system's. For instance, the default global project config can be found on UNIX systems at $HOME/.stack/global-project/stack.yaml

carymrobbins avatar Sep 05 '16 22:09 carymrobbins

i don't understand the connection between the title and the comment ;) Shouldn't it just call stack new <project name>?

LeanderK avatar Sep 18 '16 19:09 LeanderK

Disconnect your internet connection and try to do stack new 😄

% stack new no-internet
Downloading template "new-template" to create project "no-internet" in no-internet/ ...
FailedConnectionException2 "raw.githubusercontent.com" 443 True getAddrInfo: does not exist (nodename nor servname provided, or not known)

carymrobbins avatar Sep 18 '16 20:09 carymrobbins