Colin Fleming | 2 Nov 00:29 2008
Picon

Problems starting Yi on OSX


Hi all,

I posted on the haskell-cafe list the other day about problems
compiling HOC to try Yi out. It was forwarded onto the fine folk here
and now HOC and Yi both build nicely. However I can't seem to start Yi
with the Cocoa front end. I copied yi.hs from the examples page to
~/.yi and uncommented the import Yi.UI.Cocoa (start) line. However
when I then try to start Yi  get the following error:

yi.hs:17:7:
    Could not find module `Yi.UI.Cocoa':
      it is not a module in the current program, or in any known package.

This is with either Yi head or the version in Hackage. I'm guessing
this means that when Yi was build it couldn't find HOC? Do I have to
do anything else when configuring either Yi or HOC to make this work?

Thanks again for any help,
Colin

Corey O'Connor | 2 Nov 00:54 2008
Picon

Re: Problems starting Yi on OSX


On Sat, Nov 1, 2008 at 4:29 PM, Colin Fleming
<colin.mailinglist@...> wrote:
> This is with either Yi head or the version in Hackage. I'm guessing
> this means that when Yi was build it couldn't find HOC? Do I have to
> do anything else when configuring either Yi or HOC to make this work?

Correct. In this case Yi was configured to not build the support for
the Cocoa frontend.

Pass the -fcocoa flag to configure before Yi is built. Assuming that
HOC is installed the configure will succeed and Yi can then be built
with Cocoa frontend support.

Cheers,
Corey O'Connor

Colin Fleming | 2 Nov 01:26 2008
Picon

Re: Problems starting Yi on OSX


Hi Corey,

Great, thanks for the help. Unfortunately either I screwed up my HOC
build last time or simply didn't read the output closely enough and
didn't realise it had failed. I'll post the error in the HOC thread.

Thanks again for the quick response,
Colin

2008/11/1 Corey O'Connor <coreyoconnor@...>:
>
> On Sat, Nov 1, 2008 at 4:29 PM, Colin Fleming
> <colin.mailinglist@...> wrote:
>> This is with either Yi head or the version in Hackage. I'm guessing
>> this means that when Yi was build it couldn't find HOC? Do I have to
>> do anything else when configuring either Yi or HOC to make this work?
>
> Correct. In this case Yi was configured to not build the support for
> the Cocoa frontend.
>
> Pass the -fcocoa flag to configure before Yi is built. Assuming that
> HOC is installed the configure will succeed and Yi can then be built
> with Cocoa frontend support.
>
> Cheers,
> Corey O'Connor
>
> >
>
(Continue reading)

Colin Fleming | 2 Nov 01:30 2008
Picon

Re: Problems building HOC


Hi Gustav,

Thanks for the response above. That fixed my problem but now I'm
getting another, again generating the bindings. I'm on SVN rev 352.
I've posted the full error log below.

Cheers,
Colin

~/dev/haskell/hoc/Bindings> bash make-bindings-macos.sh --user
*** Processing Framework Foundation ***
NSObjCRuntime.h:139:32: NSIntegerMax undefined
[                         ]
NSObjCRuntime.h:139:32: Couldn't handle enum value for
NSNotFound                 ]
NSPropertyList.h:13:55: kCFPropertyListImmutable
undefined                        ]
NSPropertyList.h:13:55: Couldn't handle enum value for
NSPropertyListImmutable    ]
NSPropertyList.h:14:71: kCFPropertyListMutableContainers
undefined                ]
NSPropertyList.h:14:71: Couldn't handle enum value for
NSPropertyListMutableContainers
NSPropertyList.h:16:1: kCFPropertyListMutableContainersAndLeaves
undefined        ]
NSPropertyList.h:16:1: Couldn't handle enum value for
NSPropertyListMutableContainersAndLeaves
NSPropertyList.h:20:65: kCFPropertyListOpenStepFormat
undefined                   ]
(Continue reading)

Gustav Munkby | 3 Nov 08:33 2008
Picon

Re: Problems building HOC


When I tried to rebuild HOC with current trunk I experienced the
same problems. It seems as if the recent changed dropped a lot
of global compilation flags in favour of local ones. This might
have caused the symbol to change name somehow.

Unfortunately, ghc/cabal are not clever enough to realize this and
rebuild the generated sources, so you will have to tell them.
I solved this, by simply removing the Bindings/Generated folder
and then regenerated it with make-bindings-macos.sh. This
allowed me to compile trunk HOC and use that to compile yi,
so you "should" be able to do that as well.

!g

On 2 nov 2008, at 01:30, Colin Fleming wrote:

>
> Hi Gustav,
>
> Thanks for the response above. That fixed my problem but now I'm
> getting another, again generating the bindings. I'm on SVN rev 352.
> I've posted the full error log below.
>
> Cheers,
> Colin
>
> ~/dev/haskell/hoc/Bindings> bash make-bindings-macos.sh --user
> *** Processing Framework Foundation ***
> NSObjCRuntime.h:139:32: NSIntegerMax undefined
(Continue reading)

Nicolas Pouillard | 3 Nov 21:25 2008

patch applied (yi): Vim: add a basic support for ctags


Mon Nov  3 15:20:12 EST 2008  Nicolas Pouillard <nicolas.pouillard@...>
  * Vim: add a basic support for ctags
  Ignore-this: 476a5902556737bbec974777b85eb14

  Supported commands:
    * CTRL-]
    * :tag <ident>
    * :set tags=<file>*

    M ./Yi/Editor.hs -4 +12
    M ./Yi/Keymap/Vim.hs -1 +38

View patch online:

  http://code.haskell.org/yi/_darcs/patches/20081103202012-eb2e9-4098d45239e0b4ac943bac9c25eced40e1650c41.gz

Jean-Philippe Bernardy | 4 Nov 09:10 2008
Picon
Picon

Re: adding yi-blog

Thanks!

On Mon, Nov 3, 2008 at 9:41 PM, Antti-Juhani Kaijanaho <antti-juhani-un9uDlYJV3cRItl4NztG9Q@public.gmane.org> wrote:
On Tue, Sep 09, 2008 at 07:24:38PM +0200, Jean-Philippe Bernardy wrote:
> Hello,
>
> You might want to consider adding the Yi blog to planet Haskell:
>
> http://yi-editor.blogspot.com/

Added.  Planet will update in a moment.

--
Antti-Juhani Kaijanaho, Jyväskylä, Finland
http://antti-juhani.kaijanaho.fi/newblog/
http://www.flickr.com/photos/antti-juhani/


--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
yi-devel-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---

Sasha Rush | 4 Nov 09:20 2008
Picon

Re: patch applied (yi): Vim: add a basic support for ctags


been meaning to add this. thanks!

On Mon, Nov 3, 2008 at 12:25 PM, Nicolas Pouillard
<ertai@...> wrote:
>
> Mon Nov  3 15:20:12 EST 2008  Nicolas Pouillard <nicolas.pouillard@...>
>  * Vim: add a basic support for ctags
>  Ignore-this: 476a5902556737bbec974777b85eb14
>
>  Supported commands:
>    * CTRL-]
>    * :tag <ident>
>    * :set tags=<file>*
>
>    M ./Yi/Editor.hs -4 +12
>    M ./Yi/Keymap/Vim.hs -1 +38
>
> View patch online:
>
>  http://code.haskell.org/yi/_darcs/patches/20081103202012-eb2e9-4098d45239e0b4ac943bac9c25eced40e1650c41.gz
>
> >
>

Gustav Munkby | 4 Nov 17:33 2008

patch applied (yi): Implement Cocoa support for Drag and Drop.


Fri Oct 31 09:07:41 EDT 2008  grddev@...
  * Implement Cocoa support for Drag and Drop.

    M ./Yi/UI/Cocoa/TextView.hs -2 +85
    M ./Yi/UI/Cocoa/Utils.hs -8 +9

View patch online:

  http://code.haskell.org/yi/_darcs/patches/20081031130741-44f60-af602fc960bf7c68306cfb2b8540e4067f4395a9.gz

Gustav Munkby | 4 Nov 17:33 2008

patch applied (yi): Avoid recreating the YiLBString object.


Tue Nov  4 05:17:34 EST 2008  grddev@...
  * Avoid recreating the YiLBString object.

    M ./Yi/UI/Cocoa/TextStorage.hs -8 +7

View patch online:

  http://code.haskell.org/yi/_darcs/patches/20081104101734-44f60-84489617173579ece9bfaac1877fb1b863a23b3f.gz


Gmane