On 11/01/14 16:54, Dario Bertini wrote:
> Hi, I built yi yesterday (I tried to get it running 3 years ago already, 
> but I heard that now yi was much more mature) but I have plenty of problems:
> 
> Today I was unable to get yi -fpango working... when launching it from the 
> terminal it was just waiting there, stuck until I'd ^C it
> I tried to see what was going wrong by running "strace yi -fpango" but by 
> running it inside strace, yi launched just fine

No idea why it'd be a problem, pango works fine for me on Linux 32-bit.
There are a bunch of OS X issues open on GitHub so you might want to
browse through and pipe in for some of them. If you pop into IRC, I
think ethercrow uses OS X and he might be able to help you.

> I tried to look at some documentation... I don't get why there's a problem 
> with it (probably due to Dyre?): I dug up the old cabal issue, and it seems 
> that it's been solved:
> 
> https://github.com/haskell/cabal/issues/649
> 
> is the resolution incorrect?

I'm not sure what documentation bug has to do with the Pango issue. Did
you forgot to type in a port of the sentence or am I missing something else?

> anyhow, I ran
> 
> cabal install --force-reinstall --reinstall -fdochack yi -fpango

I never had to use -fdochack actually. Did you get some kind of an
explicit error which required it?

> this fixed the problem I mentioned at the beginning, but I have no idea 
> where the documentations has been installed, neither yi's README nor 
> http://www.haskell.org/cabal/users-guide/ have any hint
> 
> I looked into ~/.cabal: there're the share/ and packages/ directory that 
> seems to be the only ones that could contain documentation, but inside docs 
> are nowhere to be found

After cabal install (with --enable-documentation of course), my
documentation lands in
~/.cabal/share/doc/i386-linux-ghc-7.6.3/yi-0.7.0/html/doc-index-All.html

> (obviously, I came back empty handed also by looking at "man yi" or 
> http://hackage.haskell.org/package/yi-0.7.0/docs/Yi.html )
> 
> when opening a file (I'm using the sample cua-config) I was mystified that 
> END and HOME keys were not working... I've seen another message recently on 
> the mailing list about it
> assuming that these sample configs are barebone on purpose, I installed 
> yi-contrib hoping that some of these configurations might be usable 
> out-of-the-box, but I have no idea where these configs were installed
> nor if yi is supposed to have an automated way to load them (without 
> documentation, everything is much harder... I think that all these issues 
> ultimately boil down to this)

Right, yes, documentation is a big problem we're having. I hope to
improve it myself but I won't have time to sit down at it for the next
few weeks. Of course, anyone is welcome and encouraged to contribute to
it. If you did something others might struggle with later, do document it!

Regarding key configurations: I never used cua but the default key map
only has the keys which are default to its respective editor by default.
If cua has HOME and END bound by default and the keymap does not, the
keymap should probably be updated. Let me know if this is the case and
what the keys should do, or make a pull request on GitHub adding the
functionality.

Yi won't automagically load anything from the contrib. Roughly the way
start-up process works is that it starts by checking ~/.config/yi/yi.hs
for any changes and compiling and using that file. This means that if
you want to use someone else's config as-is, you could either replace
your yi.hs with their config entirely. To provide an example, a very
bare-bones config can be found at [1]. You could either copy+paste the
contents into your yi.hs or you could open your yi.hs then 'import
qualified Yi.Config.Users.Amy as A' and either re-use part of the config
or do something like 'main = A.main'.

> 
> Thanks
> 

In the future, you might also want to seek help from the #yi channel on
Freenode.

[1]:
https://github.com/yi-editor/yi/blob/master/yi-contrib/src/Yi/Config/Users/Amy.hs
-- 
Mateusz K.

-- 
-- 
Yi development mailing list
yi-devel@googlegroups.com
http://groups.google.com/group/yi-devel
--- 
You received this message because you are subscribed to the Google Groups 
"yi.devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to yi-devel+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to