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

Unable to get off ground #358

Closed
kevinsullivan opened this issue Jun 19, 2015 · 6 comments
Closed

Unable to get off ground #358

kevinsullivan opened this issue Jun 19, 2015 · 6 comments

Comments

@kevinsullivan
Copy link

New install. Stack 0.0.3. Ubuntu 14.04. Created directory for project. Added nat.hs file to directory. Tried to get it to load (in several ways). I thought stack would download GHC, and I thought it would create an empty stack.yaml. Here's a session log. What am I missing? Thanks, and sorry for newbie questions.

cs1@cs1:~/CS1/nat$ stack ghci nat.hs
Using resolver: lts-2.14 from global config file: /home/cs1/.stack/global/stack.yaml
No GHC found, expected version 7.8.4 (x86_64) (based on resolver setting in /home/cs1/.stack/global/stack.yaml). Try running stack setup

cs1@cs1:~/CS1/nat$ stack setup
Unable to find a stack.yaml file in the current directory (/home/cs1/CS1/nat/) or its ancestors
Recommended action: stack new

cs1@cs1:~/CS1/nat$ stack new
new command not yet implemented, check out #137 for status and to get involved

@drwebb
Copy link
Contributor

drwebb commented Jun 19, 2015

If you have an existing cabal file already for your project you can call stack init. You'll have to write one, because currently your project needs a cabal file in order to get started.

@chreekat
Copy link
Member

To be clear, it is a design goal that stack will get you started in the
scenario of a single bare source file. (I am not the one to ask about the
status of that feature, however.)
On Jun 19, 2015 2:18 PM, "Tristan Webb" [email protected] wrote:

If you have an existing cabal file already for your project you can call
stack init. You'll have to write one, because currently your project needs
a cabal file in order to get started.


Reply to this email directly or view it on GitHub
#358 (comment)
.

@spinda
Copy link

spinda commented Jun 20, 2015

Note that, for now, you can have cabal generate the initial .cabal file via cabal init (including an attempt at detecting package dependencies).

@snoyberg
Copy link
Contributor

stack new is now implemented with latest stack, please give that a shot. It looks like we have a corner case right now because stack setup is requiring a stack.yaml when it should just fall back to the implicit global, I'll fix that.

@snoyberg snoyberg self-assigned this Jun 21, 2015
@snoyberg snoyberg added this to the 0.1.0.0 milestone Jun 21, 2015
@snoyberg
Copy link
Contributor

OK, this should be fixed with the newest stack on master.

@snoyberg snoyberg removed their assignment Jun 21, 2015
@snoyberg snoyberg modified the milestones: 0.2.0.0, 0.1.0.0 Jun 22, 2015
@kevinsullivan
Copy link
Author

Thanks

On Sun, Jun 21, 2015 at 2:03 AM, Michael Snoyman [email protected]
wrote:

OK, this should be fixed with the newest stack on master.


Reply to this email directly or view it on GitHub
#358 (comment)
.

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

5 participants