Re: [Snowdrift-dev] build error something with Shake

2016-09-14 Thread Aaron Wolf
On 09/14/2016 10:18 AM, Bryan Richter wrote:
> On Wed, Sep 14, 2016 at 08:30:01AM -0700, Aaron Wolf wrote:
>> On 09/14/2016 08:26 AM, Bryan Richter wrote:
>>>
>>> To be honest, my workflow has been the following:
>>>
>>> $ ./sdb.hs start
>>> $ source <(./sdb.hs env)
>>> $ 
>>>
>>> Sourcing the output of "./sdb.hs env" sets up the environment so all
>>> following commands connect to the local database.
>>>
>>
>> Okay, but I don't know from that how to actually run the site.
>>
>>
> 
> For , you can use:
> 
> 1) stack exec yesod devel
> 
> 2) stack exec Snowdrift
> 
> 3) cd website; stack ghci --package foreign-store
>-- and then from the ghci prompt:
>-- > :load app/DevelMain.hs
>-- > update
> 
> 

Okay, I'll do that, although I suspect yesod devel still relies on
cabal-install which means extra building and then also (at least before)
didn't work well with ghc-mod (although nothing I'm doing these days
really needs ghc-mod

Anyway, I hope we can clean this up soon, not necessarily before
shut-up-and-take-my-money but at least to not block volunteers from
running the code (so either document the status quo or provide larger fix)




signature.asc
Description: OpenPGP digital signature
___
Dev mailing list
Dev@lists.snowdrift.coop
https://lists.snowdrift.coop/mailman/listinfo/dev


Re: [Snowdrift-dev] build error something with Shake

2016-09-14 Thread Bryan Richter
On Wed, Sep 14, 2016 at 08:30:01AM -0700, Aaron Wolf wrote:
> On 09/14/2016 08:26 AM, Bryan Richter wrote:
> > 
> > To be honest, my workflow has been the following:
> > 
> > $ ./sdb.hs start
> > $ source <(./sdb.hs env)
> > $ 
> > 
> > Sourcing the output of "./sdb.hs env" sets up the environment so all
> > following commands connect to the local database.
> > 
> 
> Okay, but I don't know from that how to actually run the site.
> 
> 

For , you can use:

1) stack exec yesod devel

2) stack exec Snowdrift

3) cd website; stack ghci --package foreign-store
   -- and then from the ghci prompt:
   -- > :load app/DevelMain.hs
   -- > update


signature.asc
Description: Digital signature
___
Dev mailing list
Dev@lists.snowdrift.coop
https://lists.snowdrift.coop/mailman/listinfo/dev


Re: [Snowdrift-dev] build error something with Shake

2016-09-14 Thread Aaron Wolf
On 09/14/2016 08:26 AM, Bryan Richter wrote:
> On Wed, Sep 14, 2016 at 08:17:07AM -0700, Aaron Wolf wrote:
>> On 09/14/2016 08:13 AM, Bryan Richter wrote:
>>> On Wed, Sep 14, 2016 at 07:40:25AM -0700, Aaron Wolf wrote:
 I can't run Snowdrift, I get:

 # stack (for .stack-work)
 Snowdrift-0.1.4: unregistering (dependencies changed)
 Error when running Shake build system:
 * test
 * .stack-work
 Build system error - expected a file, got a directory:
   Directory:  .stack-work
 Probably due to calling 'need' on a directory. Shake only permits 'need'
 on files.
>>>
>>> Humph.
>>>
>>> I never merged the new tool,
>>> https://git.snowdrift.coop/sd/snowdrift/merge_requests/18, because it
>>> didn't seem fully baked.
>>>
>>> The solution to your problem is probably to run "stack build" before
>>> anything else. Coincidentally, that's one of the rough edges of the
>>> new tool, too, if my comment on the MR is to be believed.
>>>
>>>
>>
>> I did `stack clean` and then `rm -rf .stack-work/` then `stack build`
>> and when I ran `.sdb.hs test` I still got the Shake error.
>>
> 
> Oh, I see. Yes, I can confirm that.
> 
> To be honest, my workflow has been the following:
> 
> $ ./sdb.hs start
> $ source <(./sdb.hs env)
> $ 
> 
> Sourcing the output of "./sdb.hs env" sets up the environment so all
> following commands connect to the local database.
> 

Okay, but I don't know from that how to actually run the site.




signature.asc
Description: OpenPGP digital signature
___
Dev mailing list
Dev@lists.snowdrift.coop
https://lists.snowdrift.coop/mailman/listinfo/dev


Re: [Snowdrift-dev] build error something with Shake

2016-09-14 Thread Bryan Richter
On Wed, Sep 14, 2016 at 08:17:07AM -0700, Aaron Wolf wrote:
> On 09/14/2016 08:13 AM, Bryan Richter wrote:
> > On Wed, Sep 14, 2016 at 07:40:25AM -0700, Aaron Wolf wrote:
> >> I can't run Snowdrift, I get:
> >>
> >> # stack (for .stack-work)
> >> Snowdrift-0.1.4: unregistering (dependencies changed)
> >> Error when running Shake build system:
> >> * test
> >> * .stack-work
> >> Build system error - expected a file, got a directory:
> >>   Directory:  .stack-work
> >> Probably due to calling 'need' on a directory. Shake only permits 'need'
> >> on files.
> > 
> > Humph.
> > 
> > I never merged the new tool,
> > https://git.snowdrift.coop/sd/snowdrift/merge_requests/18, because it
> > didn't seem fully baked.
> > 
> > The solution to your problem is probably to run "stack build" before
> > anything else. Coincidentally, that's one of the rough edges of the
> > new tool, too, if my comment on the MR is to be believed.
> > 
> > 
> 
> I did `stack clean` and then `rm -rf .stack-work/` then `stack build`
> and when I ran `.sdb.hs test` I still got the Shake error.
> 

Oh, I see. Yes, I can confirm that.

To be honest, my workflow has been the following:

$ ./sdb.hs start
$ source <(./sdb.hs env)
$ 

Sourcing the output of "./sdb.hs env" sets up the environment so all
following commands connect to the local database.


signature.asc
Description: Digital signature
___
Dev mailing list
Dev@lists.snowdrift.coop
https://lists.snowdrift.coop/mailman/listinfo/dev


Re: [Snowdrift-dev] build error something with Shake

2016-09-14 Thread Aaron Wolf
On 09/14/2016 08:13 AM, Bryan Richter wrote:
> On Wed, Sep 14, 2016 at 07:40:25AM -0700, Aaron Wolf wrote:
>> I can't run Snowdrift, I get:
>>
>> # stack (for .stack-work)
>> Snowdrift-0.1.4: unregistering (dependencies changed)
>> Error when running Shake build system:
>> * test
>> * .stack-work
>> Build system error - expected a file, got a directory:
>>   Directory:  .stack-work
>> Probably due to calling 'need' on a directory. Shake only permits 'need'
>> on files.
> 
> Humph.
> 
> I never merged the new tool,
> https://git.snowdrift.coop/sd/snowdrift/merge_requests/18, because it
> didn't seem fully baked.
> 
> The solution to your problem is probably to run "stack build" before
> anything else. Coincidentally, that's one of the rough edges of the
> new tool, too, if my comment on the MR is to be believed.
> 
> 

I did `stack clean` and then `rm -rf .stack-work/` then `stack build`
and when I ran `.sdb.hs test` I still got the Shake error.




signature.asc
Description: OpenPGP digital signature
___
Dev mailing list
Dev@lists.snowdrift.coop
https://lists.snowdrift.coop/mailman/listinfo/dev


Re: [Snowdrift-dev] build error something with Shake

2016-09-14 Thread Bryan Richter
On Wed, Sep 14, 2016 at 07:40:25AM -0700, Aaron Wolf wrote:
> I can't run Snowdrift, I get:
> 
> # stack (for .stack-work)
> Snowdrift-0.1.4: unregistering (dependencies changed)
> Error when running Shake build system:
> * test
> * .stack-work
> Build system error - expected a file, got a directory:
>   Directory:  .stack-work
> Probably due to calling 'need' on a directory. Shake only permits 'need'
> on files.

Humph.

I never merged the new tool,
https://git.snowdrift.coop/sd/snowdrift/merge_requests/18, because it
didn't seem fully baked.

The solution to your problem is probably to run "stack build" before
anything else. Coincidentally, that's one of the rough edges of the
new tool, too, if my comment on the MR is to be believed.


signature.asc
Description: Digital signature
___
Dev mailing list
Dev@lists.snowdrift.coop
https://lists.snowdrift.coop/mailman/listinfo/dev


[Snowdrift-dev] build error something with Shake

2016-09-14 Thread Aaron Wolf
I can't run Snowdrift, I get:

# stack (for .stack-work)
Snowdrift-0.1.4: unregistering (dependencies changed)
Error when running Shake build system:
* test
* .stack-work
Build system error - expected a file, got a directory:
  Directory:  .stack-work
Probably due to calling 'need' on a directory. Shake only permits 'need'
on files.


-- 
Aaron Wolf
co-founder, Snowdrift.coop



signature.asc
Description: OpenPGP digital signature
___
Dev mailing list
Dev@lists.snowdrift.coop
https://lists.snowdrift.coop/mailman/listinfo/dev