[web-devel] Question about changes in Yesod.Form.Fields

Greg Weber greg at gregweber.info
Sat Jul 30 03:06:04 CEST 2011


I am unsure from your response whether you tried to install the latest
version of Persistent. The previous error message stated you were missing 2
of the latest persistent packages, so after those are installed you should
at least have a different error message now. Or did you not want to install
the latest version of persistent?

On Fri, Jul 29, 2011 at 4:10 PM, Michael Litchard <michael at schmong.org>wrote:

> Thanks for the reply. But yesod 0.9.0 still won't install. This is the
> goal. But only because I need Yesod.Fields.Form 0.3.0. This is the
> larger goal. I need multiSelect. My reports thus far have been to help
> out with beta testing. Let me know what you'd like me to try, I have a
> fairly free weekend.
>
> On Fri, Jul 29, 2011 at 2:28 PM, Greg Weber <greg at gregweber.info> wrote:
> On Fri, Jul 29, 2011 at 2:28 PM, Greg Weber <greg at gregweber.info> wrote:
> > Hi Michael Litchard,
> > I will let Michael analyze that dependency issue. For now you can also
> use
> > the pre-release version of Persistent.
> > git clone http://github.com/yesodweb/persistentfar
> > cd persistent && ./install-all.sh
> > On Fri, Jul 29, 2011 at 1:09 PM, Michael Litchard <michael at schmong.org>
> > wrote:
> >>
> >> I did a git pull, got this error ...
> >>
> >>
> >> Registering yesod-static-0.3.0...
> >> Installing yesod-persistent
> >> Resolving dependencies...
> >> Configuring yesod-persistent-0.2.0...
> >> cabal: At least the following dependencies are missing:
> >> persistent ==0.6.*, persistent-template ==0.6.*
> >>
> >> I did a fresh install, got same error.
> >>
> >> On Thu, Jul 28, 2011 at 9:34 PM, Michael Snoyman <michael at snoyman.com>
> >> wrote:
> >> > The persistent test/test error message comes from the test suite,
> >> > which by default tests both sqlite and postgresql. I think the best
> >> > solution would be to create the test account/database its asking for,
> >> > to making sure the tests run correctly.
> >> >
> >> > The web-routes-quasi dependency is spurious; I've removed it and
> >> > updated the repo (thank you!). Please pull the changes. As for
> >> > persistent, it looks like the failing test case caused the library not
> >> > to fail. Either try setting up the database properly, or disable the
> >> > "cabal test" call in the install-all.sh script, and then install
> >> > persistent again.
> >> >
> >> > Michael
> >> >
> >> > On Fri, Jul 29, 2011 at 6:52 AM, Michael Litchard <
> michael at schmong.org>
> >> > wrote:
> >> >> I installed everything but yesod 0.9.0, saving that for last. The
> only
> >> >> issue I saw was the one I already mentioned.
> >> >>
> >> >> However running your install-all.sh script for yesod, I received the
> >> >> following error:
> >> >>
> >> >>  Registering yesod-static-0.3.0...
> >> >> Installing yesod-persistent
> >> >> Resolving dependencies...
> >> >> Configuring yesod-persistent-0.2.0...
> >> >> cabal: At least the following dependencies are missing:
> >> >> persistent ==0.6.*,
> >> >> persistent-template ==0.6.*,
> >> >> web-routes-quasi >=0.7.1 && <0.8
> >> >>
> >> >> I had already installed persistent. What would you like me to try?
> >> >>
> >> >> On Thu, Jul 28, 2011 at 8:21 PM, Michael Litchard <
> michael at schmong.org>
> >> >> wrote:
> >> >>> tried to use install-all.sh for persistent.
> >> >>>
> >> >>> I received the following error
> >> >>>
> >> >>> [truncated]
> >> >>>
> >> >>>>>> runtests: SqlError {seState = "", seNativeError = 1, seErrorMsg =
> >> >>>>>> "connectPostgreSQL: FATAL:  password authentication failed for
> user
> >> >>>>>> \"test\"\nFATAL:  password authentication failed for user
> \"test\"\n"}
> >> >>>>>> Test suite runtests: FAIL
> >> >>>>>> Test suite logged to: dist/test/persistent-0.6.0-runtests.log
> >> >>> Test suite runtests: FAIL
> >> >>> Test suite logged to: dist/test/persistent-0.6.0-runtests.log
> >> >>> 0 of 1 test suites (0 of 1 test cases) passed
> >> >>>
> >> >>> [end]
> >> >>>
> >> >>> I don't use persistent for anything. However if there's something
> you
> >> >>> want me to do in terms of testing, I'd be happy to help out.
> >> >>>
> >> >>> On Wed, Jul 27, 2011 at 8:14 PM, Michael Snoyman <
> michael at snoyman.com>
> >> >>> wrote:
> >> >>>> Try running the install-all.sh script, it will install all the
> >> >>>> required packages in order. You'll probably need to start with the
> >> >>>> persistent repo.
> >> >>>>
> >> >>>> And David: Even though I just put the code up, it *is* ready for
> some
> >> >>>> heavy beta testing. We'll likely be making the 0.9 release within
> the
> >> >>>> next week, so if anyone has a chance to try installing, I'd
> >> >>>> appreciate
> >> >>>> it.
> >> >>>>
> >> >>>> On Thu, Jul 28, 2011 at 3:10 AM, Michael Litchard
> >> >>>> <michael at schmong.org> wrote:
> >> >>>>> Thanks Ian. I've downloaded the git repository but I'm getting
> this
> >> >>>>> error when I try to cabal build from the repository.
> >> >>>>> mlitchard at apotheosis:~/tmp/yesod/yesod$ cabal install
> >> >>>>> Resolving dependencies...
> >> >>>>> cabal: cannot configure yesod-0.9.0. It requires yesod-auth
> ==0.7.*,
> >> >>>>> yesod-core ==0.9.*, yesod-form ==0.3.*, yesod-json ==0.2.*,
> >> >>>>> yesod-persistent
> >> >>>>> ==0.2.* and yesod-static ==0.3.*
> >> >>>>> There is no available version of yesod-auth that satisfies ==0.7.*
> >> >>>>> There is no available version of yesod-core that satisfies ==0.9.*
> >> >>>>> There is no available version of yesod-form that satisfies ==0.3.*
> >> >>>>> There is no available version of yesod-json that satisfies ==0.2.*
> >> >>>>> There is no available version of yesod-persistent that satisfies
> >> >>>>> ==0.2.*
> >> >>>>> There is no available version of yesod-static that satisfies
> ==0.3.*
> >> >>>>>
> >> >>>>> This is a circular problem. yesod-form, for example complains
> about
> >> >>>>> the lack of a yesod 0.9.0, which is what I'm trying to install. I
> >> >>>>> know
> >> >>>>> there is a workaround, but am treading lightly lest I muck
> >> >>>>> everything
> >> >>>>> up.
> >> >>>>> So how do I install from the repository? I suppose I could wait
> for
> >> >>>>> all this to be official, but I can't sit on my hands that long.
> >> >>>>>
> >> >>>>>
> >> >>>>> On Wed, Jul 27, 2011 at 5:00 PM, Ian Duncan <iand675 at gmail.com>
> >> >>>>> wrote:
> >> >>>>>> Michael Snoyman no longer has the git repo on his personal
> profile.
> >> >>>>>> Get all of your needed git repos from here:
> https://github.com/yesodweb
> >> >>>>>>
> >> >>>>>> On Jul 27, 2011, at 6:56 PM, Michael Litchard wrote:
> >> >>>>>>
> >> >>>>>>> I'm trying to download the git repository, here's what happens.
> >> >>>>>>>
> >> >>>>>>> mlitchard at apotheosis:~/tmp$ git clone
> >> >>>>>>> https://github.com/snoyberg/yesod.git     Initialized empty Git
> >> >>>>>>> repository in /home/mlitchard/tmp/yesod/.git/
> >> >>>>>>> fatal: https://github.com/snoyberg/yesod.git/info/refs not
> found:
> >> >>>>>>> did
> >> >>>>>>> you run git update-server-info on the server?
> >> >>>>>>>
> >> >>>>>>> is git clone the right command? Is there a problem on the server
> >> >>>>>>> right now?
> >> >>>>>>>
> >> >>>>>>> On Wed, Jul 27, 2011 at 4:26 PM, Michael Litchard
> >> >>>>>>> <michael at schmong.org> wrote:
> >> >>>>>>>> Upon further investigation, I'm believe that the ability to
> have
> >> >>>>>>>> a
> >> >>>>>>>> multi-select field in 0.2.0.1 is non-existent. 0.2.0 builds
> from
> >> >>>>>>>> cabal
> >> >>>>>>>> so I think I will just use that until I need something else.
> >> >>>>>>>>
> >> >>>>>>>> On Wed, Jul 27, 2011 at 3:59 PM, Michael Litchard
> >> >>>>>>>> <michael at schmong.org> wrote:
> >> >>>>>>>>> What I mean to say is, I'm assuming selectField can now have
> the
> >> >>>>>>>>> option to be a multi-select. I just don't know how to do that
> >> >>>>>>>>> with the
> >> >>>>>>>>> new interface.
> >> >>>>>>>>>
> >> >>>>>>>>> On Wed, Jul 27, 2011 at 3:57 PM, Michael Litchard
> >> >>>>>>>>> <michael at schmong.org> wrote:
> >> >>>>>>>>>> Building Aframe-0.0.1...
> >> >>>>>>>>>> [5 of 7] Compiling Handler.SSLvpn   ( Handler/SSLvpn.hs,
> >> >>>>>>>>>> dist/build/Aframe/Aframe-tmp/Handler/SSLvpn.o )
> >> >>>>>>>>>>
> >> >>>>>>>>>> Handler/SSLvpn.hs:44:14: Not in scope: `multiSelectField'
> >> >>>>>>>>>>
> >> >>>>>>>>>> multiSelectField is no longer a function in 0.2.0.1
> >> >>>>>>>>>>
> >> >>>>>>>>>>
> >> >>>>>>>>>> Here's the change I am referring to
> >> >>>>>>>>>>
> >> >>>>>>>>>> selectField :: (Eq a, Monad monad, RenderMessage master
> >> >>>>>>>>>> FormMessage)
> >> >>>>>>>>>> => [(Text, a)] -> Field (GGWidget master (GGHandler sub
> master
> >> >>>>>>>>>> monad)
> >> >>>>>>>>>> ()) FormMessage a
> >> >>>>>>>>>>
> >> >>>>>>>>>> I have no idea what to make of that or how to use it.
> >> >>>>>>>>>>
> >> >>>>>>>>>> On Wed, Jul 27, 2011 at 3:54 PM, David McBride
> >> >>>>>>>>>> <dmcbride at neondsl.com> wrote:
> >> >>>>>>>>>>> Seems to work fine for me, what error are you getting, and
> >> >>>>>>>>>>> what have
> >> >>>>>>>>>>> you set the variables servers and tests to?
> >> >>>>>>>>>>>
> >> >>>>>>>>>>> On Wed, Jul 27, 2011 at 6:44 PM, Michael Litchard
> >> >>>>>>>>>>> <michael at schmong.org> wrote:
> >> >>>>>>>>>>>> I appreciate the additional functionality that allows multi
> >> >>>>>>>>>>>> select
> >> >>>>>>>>>>>> fields. The interface to selectField has changed however.
> The
> >> >>>>>>>>>>>> following code used to work. I cannot make sense of the
> >> >>>>>>>>>>>> changes, and
> >> >>>>>>>>>>>> couldn't find any use examples in the source. Could someone
> >> >>>>>>>>>>>> lend a
> >> >>>>>>>>>>>> hand and tell me how the following should be re-written?
> >> >>>>>>>>>>>>
> >> >>>>>>>>>>>>
> >> >>>>>>>>>>>> sslvpnForm = fixType $ runFormPost $ renderDivs $ pure (,)
> >> >>>>>>>>>>>>   <*> areq (multiSelectField servers) "Pick some servers"
> >> >>>>>>>>>>>> Nothing
> >> >>>>>>>>>>>>   <*> areq (selectField tests) "Pick a test" Nothing
> >> >>>>>>>>>>>>
> >> >>>>>>>>>>>> _______________________________________________
> >> >>>>>>>>>>>> web-devel mailing list
> >> >>>>>>>>>>>> web-devel at haskell.org
> >> >>>>>>>>>>>> http://www.haskell.org/mailman/listinfo/web-devel
> >> >>>>>>>>>>>>
> >> >>>>>>>>>>>
> >> >>>>>>>>>>
> >> >>>>>>>>>
> >> >>>>>>>>
> >> >>>>>>>
> >> >>>>>>> _______________________________________________
> >> >>>>>>> web-devel mailing list
> >> >>>>>>> web-devel at haskell.org
> >> >>>>>>> http://www.haskell.org/mailman/listinfo/web-devel
> >> >>>>>>
> >> >>>>>>
> >> >>>>>> _______________________________________________
> >> >>>>>> web-devel mailing list
> >> >>>>>> web-devel at haskell.org
> >> >>>>>> http://www.haskell.org/mailman/listinfo/web-devel
> >> >>>>>>
> >> >>>>>
> >> >>>>> _______________________________________________
> >> >>>>> web-devel mailing list
> >> >>>>> web-devel at haskell.org
> >> >>>>> http://www.haskell.org/mailman/listinfo/web-devel
> >> >>>>>
> >> >>>>
> >> >>>
> >> >>
> >> >
> >>
> >> _______________________________________________
> >> web-devel mailing list
> >> web-devel at haskell.org
> >> http://www.haskell.org/mailman/listinfo/web-devel
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/web-devel/attachments/20110729/8d9808a8/attachment-0001.htm>


More information about the web-devel mailing list