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&#39;t prepend the &quot;.&quot; to the directory name, so it is looking in &quot;yi&quot;, not &quot;.yi&quot;. On Windows 7, it looks for this directory in a completely different location: &quot;C:\Users\peter\AppData\Roaming&quot; rather than just &quot;C:\Users\peter&quot;. <div>
<br></div><div>Obviously other parts of the program are using a different call to locate the config file as, letting the editor create the default file, it places it in &quot;C:\Users\peter\.yi\yi.hs&quot;! I can&#39;t find the code that does this at the moment - any pointers appreciated.</div>
<div><br></div><div>My current feeling is that getAppUserDataDirectory is the correct call to use and the docs should be changed to tell users to put their file where this call points. Further, it would be nice if the editor told you where it was looking if it doesn&#39;t find a config file... well actually, when it does find a file too, so you know which one it loaded.</div>
<div><br></div><div>Now I&#39;m on to the next problem, it tries to write its error file in a location that doesn&#39;t exist: &quot;C:\Users\peter\Local Settings\Cache\yi\errors.log&quot;. &quot;Local Settings&quot; doesn&#39;t exist on Windows 7. This is now &quot;AppData\Local&quot; I think. Setting the cacheDir field of the dyre Params should fix this, but I don&#39;t have time to try it right now.</div>
<div><br></div><div>I&#39;ll let you know how I get on.</div><div><br></div><div><br></div><div>Peter<br><br><div class="gmail_quote">On 13 October 2010 22:31, Jeff Wheeler <span dir="ltr">&lt;<a href="mailto:wheele11@illinois.edu">wheele11@illinois.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Wed, Oct 13, 2010 at 2:54 AM, Peter Marks &lt;<a href="mailto:peter@indigomail.net">peter@indigomail.net</a>&gt; wrote:<br>

<br>
&gt; What should I see when Yi loads? If my config file is broken, where should I<br>
&gt; see errors? The debug option didn&#39;t produce anything useful.<br>
<br>
</div>I&#39;d expect it in one of three places:<br>
<br>
1. In a buffer inside Yi when it launches using the default config.<br>
(I&#39;m guessing this isn&#39;t the case for you if you haven&#39;t seen the<br>
error messages, but it&#39;d be in a buffer called &quot;*errors*&quot; if present.<br>
It theoretically should open as the default buffer.)<br>
<br>
2. I don&#39;t think this should happen, but dyre /may/ make a file<br>
yi.errors in ~/.yi/, next to your config file.<br>
<br>
3. It might just print it to the console, but that&#39;s not happening<br>
here, or you would have seen it.<br>
<div class="im"><br>
&gt; After starting up, the help option does open my config, so I think it is in<br>
&gt; the right place. This is Windows 7 if that makes any difference.<br>
<br>
</div>I&#39;m not sure; I&#39;ve never tried installing much Haskell on my Windows<br>
machine, so I haven&#39;t tested Yi on it. I think somebody worked on it a<br>
while back, but I&#39;m not sure if they succeeded (or if it still<br>
theoretically works).<br>
<div class="im"><br>
&gt; I&#39;m happy to take a look at the source, any suggestions where I should<br>
&gt; start?<br>
<br>
</div>Interfacing with the dyre config loader occurs in src/Yi/Boot.hs, but<br>
there&#39;s also some interesting stuff related to starting up in<br>
src/Yi/Main.hs. The dyre package provides the primary entry-point, and<br>
calls Yi.Main.main with the relevant config when it&#39;s ready to start.<br>
Yi.Boot instructs dyre on how to work with configs for yi.<br>
<br>
Best of luck, and thanks for playing with Yi!<br>
<font color="#888888"><br>
-Jeff<br>
</font><div><div></div><div class="h5"><br>
--<br>
Jeff Wheeler<br>
<br>
Undergraduate, Electrical Engineering<br>
University of Illinois at Urbana-Champaign<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br></div>