ajinux / winghci

Automatically exported from code.google.com/p/winghci
Other
0 stars 0 forks source link

WinGHCI failed to run StartGHCi.exe due to capitalization #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install WinGHCi via Haskell Platform 2011.2.0.1
2. Try to start WinGHCi via start menu

What is the expected output? What do you see instead?
I expect WinGHCi to start, but instead get the error "CreateGHCiProcess failed 
with failed with error 0" [sic] in a modal dialog.  When I hit "OK", WinGHCi 
closes.

What version of the product are you using? On what operating system?
I am using WinGHCi 1.0.6, as installed by the Haskell Platform 2011.2.0.1, on 
Windows XP SP3.

Please provide any additional information below.
I was able to resolve the issue by renaming the "StartGHCi.exe" file to 
"StartGHCI.exe".  I knew to try this by looking at WinGhci.c, line 551, which 
tries to run "StartGHCI.exe".  I'm assuming it failed because of the 
capitalization of the "I".  For some reason, after renaming the file back to 
"StartGHCi.exe", it still works.

Original issue reported on code.google.com by tjki...@gmail.com on 15 Jun 2011 at 4:14

GoogleCodeExporter commented 8 years ago
The renaming didn't work for me :( Am I alone?

Original comment by christop...@gmail.com on 27 Dec 2011 at 9:15

GoogleCodeExporter commented 8 years ago
Feedback I got from Cary via email:

"I ran across this same issue in Haskell Platform 2011.4.0.0 and since windows 
is case preserving, but not case sensitive your renaming the file is not the 
underlying issue. It was a coincidence that it fixed the problem. I believe the 
fundamental issue is that the execute permissions are not set correctly. Since 
I have Cygwin installed I just ran chmod 755 on the files and everything 
started working. I'm sure there is a windows equivalent, but I didn't 
investigate what that was. I'm also assuming the installer can be tweaked to 
set the permissions correctly."

Original comment by tjki...@gmail.com on 3 Feb 2012 at 6:50

GoogleCodeExporter commented 8 years ago
Problem persists in 2012.2. Renaming didn't help, and I don't think it's a 
permission problem either - I checked the permissions and of course I have full 
access. Also, I can manually launch startghci from the command line, so the 
program starts.

But the low quality of the error message alone indicates that something is 
pretty wrong in that code.

Original comment by wasti.r...@gmx.net on 1 Aug 2012 at 12:41

GoogleCodeExporter commented 8 years ago
Check your PATH variable and see if the path to the bin folder of your Haskell 
Platform installation, e.g. C:\Programs\Haskell Platform\2012.2.0.0\bin, is 
added.
It may not be updated if you run the installer without under a normal user 
account and not with administrator rights.

Original comment by daniel.p...@gmail.com on 5 Sep 2012 at 8:55