GHC-6.0: Open with ... bug (again!)

Hi. The problem with open files contained in directories whose name contain white space is still present under Windows (Win XP Pro at least). It apparently works under Linux but not under windows. Opening a file in a directory called "Test dir" via one of $ ghci Test\ dir/Test.lhs $ ghci "Test dir/Test.lhs" $ ghci Test\ dir\\Test.lhs $ ghci "Test\ dir\\Test.lhs" gives the error Test\: Can't find module `Test\' (use -v to see a list of the files searched for) The output from running ghci with the -v flag is attached to this mail. As usual ghc works perfectly. Please, please, please fix this bug (so that I can build a CVS version) as we need it in our functional programming course. Thanks, Calle

Hi there, thanks for the report on an issue I thought had been properly resolved, but alas not. The updated Windows installer that was published last Monday does include a fix for the issue. I'm guessing you spotted that, but I didn't want to leave your report un-replied to in the e-mail archives. hth --sigbjorn ----- Original Message ----- From: Calle Lejdfors To: glasgow-haskell-users@haskell.org Sent: Monday, June 02, 2003 06:44 Subject: GHC-6.0: Open with ... bug (again!) Hi. The problem with open files contained in directories whose name contain white space is still present under Windows (Win XP Pro at least). It apparently works under Linux but not under windows. Opening a file in a directory called "Test dir" via one of $ ghci Test\ dir/Test.lhs $ ghci "Test dir/Test.lhs" $ ghci Test\ dir\\Test.lhs $ ghci "Test\ dir\\Test.lhs" gives the error Test\: Can't find module `Test\' (use -v to see a list of the files searched for) The output from running ghci with the -v flag is attached to this mail. As usual ghc works perfectly. Please, please, please fix this bug (so that I can build a CVS version) as we need it in our functional programming course. Thanks, Calle

Hi. Thanks! It seems to work correctly now. However it does not appear to work when loading via :load on the GHCi prompt. It would be nice to get this to work as it would (probably) enable me to run haskell-mode with ghci interaction through emacs under windows. Thanks, Calle ----- Original Message ----- From: Sigbjorn Finne To: Calle Lejdfors Cc: glasgow-haskell-users@haskell.org Sent: Tuesday, June 10, 2003 6:14 PM Subject: Re: GHC-6.0: Open with ... bug (again!) Hi there, thanks for the report on an issue I thought had been properly resolved, but alas not. The updated Windows installer that was published last Monday does include a fix for the issue. I'm guessing you spotted that, but I didn't want to leave your report un-replied to in the e-mail archives. hth --sigbjorn ----- Original Message ----- From: Calle Lejdfors To: glasgow-haskell-users@haskell.org Sent: Monday, June 02, 2003 06:44 Subject: GHC-6.0: Open with ... bug (again!) Hi. The problem with open files contained in directories whose name contain white space is still present under Windows (Win XP Pro at least). It apparently works under Linux but not under windows. Opening a file in a directory called "Test dir" via one of $ ghci Test\ dir/Test.lhs $ ghci "Test dir/Test.lhs" $ ghci Test\ dir\\Test.lhs $ ghci "Test\ dir\\Test.lhs" gives the error Test\: Can't find module `Test\' (use -v to see a list of the files searched for) The output from running ghci with the -v flag is attached to this mail. As usual ghc works perfectly. Please, please, please fix this bug (so that I can build a CVS version) as we need it in our functional programming course. Thanks, Calle

That's good to hear -- :load works as expected for me: Prelude> :load "c:/Program Files/Haskell/Mod1.hs" "c:/Program Files/Haskell/Mod2.hs" Compiling Mod1 (....) Compiling Mod2 (....) Ok, modules loaded: Mod1, Mod2. Prelude> --sigbjorn ----- Original Message ----- From: Calle Lejdfors To: Sigbjorn Finne Cc: glasgow-haskell-users@haskell.org Sent: Wednesday, June 11, 2003 00:01 Subject: Re: GHC-6.0: Open with ... bug (again!) Hi. Thanks! It seems to work correctly now. However it does not appear to work when loading via :load on the GHCi prompt. It would be nice to get this to work as it would (probably) enable me to run haskell-mode with ghci interaction through emacs under windows. Thanks, Calle ----- Original Message ----- From: Sigbjorn Finne To: Calle Lejdfors Cc: glasgow-haskell-users@haskell.org Sent: Tuesday, June 10, 2003 6:14 PM Subject: Re: GHC-6.0: Open with ... bug (again!) Hi there, thanks for the report on an issue I thought had been properly resolved, but alas not. The updated Windows installer that was published last Monday does include a fix for the issue. I'm guessing you spotted that, but I didn't want to leave your report un-replied to in the e-mail archives. hth --sigbjorn ----- Original Message ----- From: Calle Lejdfors To: glasgow-haskell-users@haskell.org Sent: Monday, June 02, 2003 06:44 Subject: GHC-6.0: Open with ... bug (again!) Hi. The problem with open files contained in directories whose name contain white space is still present under Windows (Win XP Pro at least). It apparently works under Linux but not under windows. Opening a file in a directory called "Test dir" via one of $ ghci Test\ dir/Test.lhs $ ghci "Test dir/Test.lhs" $ ghci Test\ dir\\Test.lhs $ ghci "Test\ dir\\Test.lhs" gives the error Test\: Can't find module `Test\' (use -v to see a list of the files searched for) The output from running ghci with the -v flag is attached to this mail. As usual ghc works perfectly. Please, please, please fix this bug (so that I can build a CVS version) as we need it in our functional programming course. Thanks, Calle

Oops! Sorry about that ;-). It works with '/' but not '\' of course. My mistake. /Calle ----- Original Message ----- From: Sigbjorn Finne To: Calle Lejdfors Cc: glasgow-haskell-users@haskell.org Sent: Wednesday, June 11, 2003 6:25 PM Subject: Re: GHC-6.0: Open with ... bug (again!) That's good to hear -- :load works as expected for me: Prelude> :load "c:/Program Files/Haskell/Mod1.hs" "c:/Program Files/Haskell/Mod2.hs" Compiling Mod1 (....) Compiling Mod2 (....) Ok, modules loaded: Mod1, Mod2. Prelude> --sigbjorn ----- Original Message ----- From: Calle Lejdfors To: Sigbjorn Finne Cc: glasgow-haskell-users@haskell.org Sent: Wednesday, June 11, 2003 00:01 Subject: Re: GHC-6.0: Open with ... bug (again!) Hi. Thanks! It seems to work correctly now. However it does not appear to work when loading via :load on the GHCi prompt. It would be nice to get this to work as it would (probably) enable me to run haskell-mode with ghci interaction through emacs under windows. Thanks, Calle ----- Original Message ----- From: Sigbjorn Finne To: Calle Lejdfors Cc: glasgow-haskell-users@haskell.org Sent: Tuesday, June 10, 2003 6:14 PM Subject: Re: GHC-6.0: Open with ... bug (again!) Hi there, thanks for the report on an issue I thought had been properly resolved, but alas not. The updated Windows installer that was published last Monday does include a fix for the issue. I'm guessing you spotted that, but I didn't want to leave your report un-replied to in the e-mail archives. hth --sigbjorn ----- Original Message ----- From: Calle Lejdfors To: glasgow-haskell-users@haskell.org Sent: Monday, June 02, 2003 06:44 Subject: GHC-6.0: Open with ... bug (again!) Hi. The problem with open files contained in directories whose name contain white space is still present under Windows (Win XP Pro at least). It apparently works under Linux but not under windows. Opening a file in a directory called "Test dir" via one of $ ghci Test\ dir/Test.lhs $ ghci "Test dir/Test.lhs" $ ghci Test\ dir\\Test.lhs $ ghci "Test\ dir\\Test.lhs" gives the error Test\: Can't find module `Test\' (use -v to see a list of the files searched for) The output from running ghci with the -v flag is attached to this mail. As usual ghc works perfectly. Please, please, please fix this bug (so that I can build a CVS version) as we need it in our functional programming course. Thanks, Calle

You just need to escape the '\' with another '\' inside the string literal -- ghci isn't cleverer than that, I'm afraid. --sigbjorn ----- Original Message ----- From: Calle Lejdfors To: Sigbjorn Finne Cc: glasgow-haskell-users@haskell.org Sent: Thursday, June 12, 2003 00:02 Subject: Re: GHC-6.0: Open with ... bug (again!) Oops! Sorry about that ;-). It works with '/' but not '\' of course. My mistake. /Calle ----- Original Message ----- From: Sigbjorn Finne To: Calle Lejdfors Cc: glasgow-haskell-users@haskell.org Sent: Wednesday, June 11, 2003 6:25 PM Subject: Re: GHC-6.0: Open with ... bug (again!) That's good to hear -- :load works as expected for me: Prelude> :load "c:/Program Files/Haskell/Mod1.hs" "c:/Program Files/Haskell/Mod2.hs" Compiling Mod1 (....) Compiling Mod2 (....) Ok, modules loaded: Mod1, Mod2. Prelude> --sigbjorn ----- Original Message ----- From: Calle Lejdfors To: Sigbjorn Finne Cc: glasgow-haskell-users@haskell.org Sent: Wednesday, June 11, 2003 00:01 Subject: Re: GHC-6.0: Open with ... bug (again!) Hi. Thanks! It seems to work correctly now. However it does not appear to work when loading via :load on the GHCi prompt. It would be nice to get this to work as it would (probably) enable me to run haskell-mode with ghci interaction through emacs under windows. Thanks, Calle
participants (2)
-
Calle Lejdfors
-
Sigbjorn Finne