The problem is down to getAppUserDataDirectory called in Yi.Boot. This function behaves differently on Windows to Linux... and more so on Windows 7. The first issue is that on Windows it doesn't prepend the "." to the directory name, so it is looking in "yi", not ".yi". On Windows 7, it looks for this directory in a completely different location: "C:\Users\peter\AppData\Roaming" rather than just "C:\Users\peter".
On Wed, Oct 13, 2010 at 2:54 AM, Peter Marks <peter@indigomail.net> wrote:I'd expect it in one of three places:
> What should I see when Yi loads? If my config file is broken, where should I
> see errors? The debug option didn't produce anything useful.
1. In a buffer inside Yi when it launches using the default config.
(I'm guessing this isn't the case for you if you haven't seen the
error messages, but it'd be in a buffer called "*errors*" if present.
It theoretically should open as the default buffer.)
2. I don't think this should happen, but dyre /may/ make a file
yi.errors in ~/.yi/, next to your config file.
3. It might just print it to the console, but that's not happening
here, or you would have seen it.
I'm not sure; I've never tried installing much Haskell on my Windows
> After starting up, the help option does open my config, so I think it is in
> the right place. This is Windows 7 if that makes any difference.
machine, so I haven't tested Yi on it. I think somebody worked on it a
while back, but I'm not sure if they succeeded (or if it still
theoretically works).
Interfacing with the dyre config loader occurs in src/Yi/Boot.hs, but
> I'm happy to take a look at the source, any suggestions where I should
> start?
there's also some interesting stuff related to starting up in
src/Yi/Main.hs. The dyre package provides the primary entry-point, and
calls Yi.Main.main with the relevant config when it's ready to start.
Yi.Boot instructs dyre on how to work with configs for yi.
Best of luck, and thanks for playing with Yi!
-Jeff
--
Jeff Wheeler
Undergraduate, Electrical Engineering
University of Illinois at Urbana-Champaign
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe