Re: [Haskell-cafe] Yi on Windows

2010-10-15 Thread Jeff Wheeler
On Thu, Oct 14, 2010 at 1:41 PM, Peter Marks pe...@indigomail.net wrote: If you start Yi with no config file, press any key, press h, choose a key binding, then save the file, you get a file c:\Users\peter\.yi\yi.hs Oh, indeed. I didn't realize that. The behavior is defined in

Re: [Haskell-cafe] Yi on Windows

2010-10-14 Thread Peter Marks
Are you sure that Yi ever writes a default config file? If you start Yi with no config file, press any key, press h, choose a key binding, then save the file, you get a file c:\Users\peter\.yi\yi.hs If dyre defaults to using a directory that doesn't exist on 7, I'd say that's a bug in dyre. We

Re: [Haskell-cafe] Yi on Windows

2010-10-14 Thread Peter Marks
I think I have this working now :-) I had to make two changes to dyre: - In Config.Dyre, I removed lines 188 to 191 which delete errors.txt. This was failing as the file was still open for lazy reading. - In Config.Dyre.Paths, I changed line 28 to: let tempBinary = cacheDir / pName ++ - ++

Re: [Haskell-cafe] Yi on Windows

2010-10-13 Thread Peter Marks
Thanks Jeff 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. 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. I'm

Re: [Haskell-cafe] Yi on Windows

2010-10-13 Thread Jeff Wheeler
On Wed, Oct 13, 2010 at 2:54 AM, Peter Marks pe...@indigomail.net wrote: 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. I'd expect it in one of three places: 1. In a buffer inside Yi when it launches

Re: [Haskell-cafe] Yi on Windows

2010-10-13 Thread Peter Marks
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

Re: [Haskell-cafe] Yi on Windows

2010-10-13 Thread Jeff Wheeler
On Wed, Oct 13, 2010 at 6:14 PM, Peter Marks pe...@indigomail.net wrote: 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

[Haskell-cafe] Yi on Windows

2010-10-12 Thread Peter Marks
Does anyone use Yi on Windows? I've managed to get it to build and run, but it doesn't seem to pick up a config file. This seems to be an issue identified over a year ago: http://code.google.com/p/yi-editor/issues/detail?id=269. This would seem to render the editor almost completely useless on

Re: [Haskell-cafe] Yi on Windows

2010-10-12 Thread Jeff Wheeler
That bug is probably no longer correct. We now use the dyre package for loading the config. Does anybody know if dyre works on Windows in general? On Tue, Oct 12, 2010 at 5:39 PM, Peter Marks pe...@indigomail.net wrote: Does anyone use Yi on Windows? I've managed to get it to build and run, but

[Haskell-cafe] YI on Windows?

2007-09-26 Thread Peter Verswyvelen
I retrieved the latest version of YI, but I failed to compile it for Windows (GHC 6.6.1, and I got alex-2.1.0, haddock-0.8, HsColour, GTK, but not VTY) Before even pasting the error log, is it supported in Windows? I see that make gave the error ghc.exe: unknown package: unix and some

RE: [Haskell-cafe] YI on Windows?

2007-09-26 Thread Bayley, Alistair
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Verswyvelen I retrieved the latest version of YI, but I failed to compile it for Windows (GHC 6.6.1, and I got alex-2.1.0, haddock-0.8, HsColour, GTK, but not VTY) Before even pasting the error log, is it supported