tag:blogger.com,1999:blog-37404288.post8328675903059465984..comments2023-11-02T14:40:18.756+01:00Comments on JP Moresmau's Programming Blog: Releasing my code on the unsuspecting public (EclipseFP)JP Moresmauhttp://www.blogger.com/profile/09964251063221757176noreply@blogger.comBlogger24125tag:blogger.com,1999:blog-37404288.post-30990525089819263812009-11-09T08:32:31.133+01:002009-11-09T08:32:31.133+01:00Pavel, thanks for your time. Yes, for the moment n...Pavel, thanks for your time. Yes, for the moment not everything is 100% consistent in EclipseFP. The GHC parameters in the preferences are not used at all. Now we're moving towards using the Cabal file for everything. Down the line, these options will probably be used for project defaults (ghc options written automatically in the Cabal file when creating a new project).JP Moresmauhttps://www.blogger.com/profile/09964251063221757176noreply@blogger.comtag:blogger.com,1999:blog-37404288.post-76191611808837869422009-11-06T17:20:30.118+01:002009-11-06T17:20:30.118+01:00Thank you very much Jean-Philippe. I installed you...Thank you very much Jean-Philippe. I installed your version of scion and it worked. Previously I installed several scions, including yours, but probably there was something mixup.<br /><br />Now a problem I see that it seems that GHC options set in "preferences" are not passed to the compiler. Those in cabal file istead are ok.Unknownhttps://www.blogger.com/profile/06910274979303044606noreply@blogger.comtag:blogger.com,1999:blog-37404288.post-34408421086173013592009-11-05T16:56:43.929+01:002009-11-05T16:56:43.929+01:00Pavel, I think you must be using the wrong version...Pavel, I think you must be using the wrong version of Scion. Either get scion from my github, or get nominolo's devel branch. In the Scion source, the Cabal.hs file ends with an instance declaration ending in :<br /> showJSON (Library f) =<br /> makeObject [("library", JSNull),<br /> ("cabal-file", JSString (toJSString f))]<br /> showJSON (Executable f n) =<br /> makeObject [("executable", JSString (toJSString n)),<br /> ("cabal-file", JSString (toJSString f))]<br /><br />So components always have a cabal-file field.JP Moresmauhttps://www.blogger.com/profile/09964251063221757176noreply@blogger.comtag:blogger.com,1999:blog-37404288.post-86000528088077677752009-11-04T18:23:10.595+01:002009-11-04T18:23:10.595+01:00Thanks JP. I modified the cabal file (with indenta...Thanks JP. I modified the cabal file (with indentation in Executable section)<br /><br />name: hs-prova<br />version: 0.1<br />Executable hs-prova<br /> Main-is: Main.hs<br /> Hs-Source-Dirs: src<br /> Build-Depends: base<br /><br />I am running latest scion (nominolo), and latest eclipsefp from http://github.com/JPMoresmau/<br />Official 1.108 gives me the same error of rene (Main.hs is not relative to project root), so I upgraded to latest sources<br /><br />However still no working properly I think<br /><br />opts: StartupConfig {connectionMode = TCPIP False 4006, autoPort = False, showHelp = False}<br />=== Listening on port: 4006<br />parsing command: Chunk "{\"id\":1,\"method\":\"connection-info\",\"params\":{}}" Empty<br />"{\"version\":\"0.1\",\"id\":1,\"result\":{\"version\":1,\"pid\":0}}"<br />parsing command: Chunk "{\"id\":2,\"method\":\"list-cabal-components\",\"params\":{\"cabal-file\":\"C:\\\\JavaProjects\\\\hs-prova\\\\hs-prova.cabal\"}}" Empty<br />"{\"version\":\"0.1\",\"id\":2,\"result\":[{\"executable\":\"hs-prova\"}]}"<br />parsing command: Chunk "{\"id\":3,\"method\":\"background-typecheck-file\",\"params\":{\"file\":\"C:\\\\JavaProjects\\\\hs-prova\\\\Setup.hs\"}}" Empty<br />"{\"version\":\"0.1\",\"id\":3,\"result\":{\"Left\":\"Could not find file in module graph.\"}}"<br /><br />Exception Stack Trace<br /><br />net.sf.eclipsefp.haskell.scion.exceptions.ScionCommandException: Could not process command result<br />The command was:<br />{<br /> "id": 2,<br /> "method": "list-cabal-components",<br /> "params": {"cabal-file": "C:\\JavaProjects\\hs-prova\\hs-prova.cabal"}<br />}<br />The response was:<br />{<br /> "id": 2,<br /> "result": [{"executable": "hs-prova"}],<br /> "version": "0.1"<br />}<br /><br /> at net.sf.eclipsefp.haskell.scion.internal.commands.ScionCommand.processResponseResult(ScionCommand.java:285)<br /> at net.sf.eclipsefp.haskell.scion.internal.commands.ScionCommand.processResponse(ScionCommand.java:273)<br /> at net.sf.eclipsefp.haskell.scion.internal.commands.ScionCommand.receiveResponse(ScionCommand.java:207)<br /> at net.sf.eclipsefp.haskell.scion.internal.client.ScionServer.runCommandSync(ScionServer.java:380)<br /> at net.sf.eclipsefp.haskell.scion.client.ScionInstance.runCommandSync(ScionInstance.java:202)<br /> at net.sf.eclipsefp.haskell.scion.internal.commands.ScionCommand.run(ScionCommand.java:136)<br /> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)<br /><br />Caused by: org.json.JSONException: JSONObject["cabal-file"] not found.<br /><br /> at org.json.JSONObject.get(JSONObject.java:517)<br /> at org.json.JSONObject.getString(JSONObject.java:688)<br /> at net.sf.eclipsefp.haskell.scion.types.Component.[init](Component.java:41)<br /> at net.sf.eclipsefp.haskell.scion.internal.commands.ListCabalComponentsCommand.doProcessResult(ListCabalComponentsCommand.java:28)<br /> at net.sf.eclipsefp.haskell.scion.internal.commands.ScionCommand.processResponseResult(ScionCommand.java:283)<br /> ... 6 moreUnknownhttps://www.blogger.com/profile/06910274979303044606noreply@blogger.comtag:blogger.com,1999:blog-37404288.post-89007157524436278152009-11-04T10:04:07.255+01:002009-11-04T10:04:07.255+01:00Note: in my previous comment hs-source-dirs needs ...Note: in my previous comment hs-source-dirs needs to be indented, say two spaces right of library, it may not be visible in the html.JP Moresmauhttps://www.blogger.com/profile/09964251063221757176noreply@blogger.comtag:blogger.com,1999:blog-37404288.post-50758910339959453302009-11-04T10:02:48.582+01:002009-11-04T10:02:48.582+01:00As indicated in http://www.haskell.org/ghc/docs/la...As indicated in http://www.haskell.org/ghc/docs/latest/html/Cabal/authors.html#buildinfo , the hs-source-dirs field must be in either an executable or library section. So your cabal file needs to be:<br />Name: hs-prova<br />Version: 0.1 <br /><br />library<br /> hs-source-dirs: src<br /><br />This maybe explains the error about the library component not having a cabal-file field. The other error is probably due to you using the hackage version of scion. To get the most of eclipsefp 1.108 you need to get scion from github and build it from source (http://github.com/nominolo/scion/tree/devel for example)JP Moresmauhttps://www.blogger.com/profile/09964251063221757176noreply@blogger.comtag:blogger.com,1999:blog-37404288.post-26415233489560344932009-11-04T00:41:08.167+01:002009-11-04T00:41:08.167+01:00Hi, this is hs-prova.cabal
name: hs-pro...Hi, this is hs-prova.cabal<br /><br />name: hs-prova<br />version: 0.1<br />hs-source-dirs: src<br /><br />this is src/main.hs<br /><br />module Main where <br />main = putStrLn "Hello, World!"<br /><br />this is setup.hs<br /><br />import Distribution.Simple<br />main = defaultMain<br />----------------------------<br /><br />I am able to compile the single file main.hs, but not the whole project.<br />As soon as I open a .hs file I get this error on position 1:1 Could not find file in module graph.<br /><br />There are also 2 two errors in error log and scion server output<br /><br />-------------------------------<br />1<br />-------------------------------<br />Could not process command result<br />The command was:<br />{<br /> "id": 5,<br /> "method": "list-cabal-components",<br /> "params": {"cabal-file": "C:\\JavaProjects\\hs-prova\\hs-prova.cabal"}<br />}<br />The response was:<br />{<br /> "id": 5,<br /> "result": [{"library": null}],<br /> "version": "0.1"<br />}<br /><br />--------------------------------<br />net.sf.eclipsefp.haskell.scion.exceptions.ScionCommandException: Could not process command result<br />The command was:<br />{<br /> "id": 5,<br /> "method": "list-cabal-components",<br /> "params": {"cabal-file": "C:\\JavaProjects\\hs-prova\\hs-prova.cabal"}<br />}<br />The response was:<br />{<br /> "id": 5,<br /> "result": [{"library": null}],<br /> "version": "0.1"<br />}<br /><br /> at net.sf.eclipsefp.haskell.scion.internal.commands.ScionCommand.processResponseResult(ScionCommand.java:285)<br /><br /> at net.sf.eclipsefp.haskell.scion.internal.commands.ScionCommand.processResponse(ScionCommand.java:273)<br /><br /> at net.sf.eclipsefp.haskell.scion.internal.commands.ScionCommand.receiveResponse(ScionCommand.java:207)<br /><br /> at net.sf.eclipsefp.haskell.scion.internal.client.ScionServer.runCommandSync(ScionServer.java:380)<br /><br /> at net.sf.eclipsefp.haskell.scion.client.ScionInstance.runCommandSync(ScionInstance.java:202)<br /><br /> at net.sf.eclipsefp.haskell.scion.internal.commands.ScionCommand.run(ScionCommand.java:136)<br /><br /> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)<br /><br />Caused by: org.json.JSONException: JSONObject["cabal-file"] not found.<br /><br /> at org.json.JSONObject.get(JSONObject.java:517)<br /><br /> at org.json.JSONObject.getString(JSONObject.java:688)<br /><br /> at net.sf.eclipsefp.haskell.scion.types.Component.[init]<br />(Component.java:41)<br /><br /> at net.sf.eclipsefp.haskell.scion.internal.commands.ListCabalComponentsCommand.doProcessResult(ListCabalComponentsCommand.java:28)<br /><br /> at net.sf.eclipsefp.haskell.scion.internal.commands.ScionCommand.processResponseResult(ScionCommand.java:283)<br /><br /> ... 6 more<br /><br />-----------------------------------<br />2)<br />---------------------------------<br /><br />Typechecking actual file contents failed. Typechecking will only be performed on the saved document. This is normal if your Haskell code contains preprocessor instructions. The error was: The requested method is not supported.<br /><br />An exception stack trace is not available.<br /><br />----------------------------------<br />Thank you in advance, an sorry for being too verbose.Unknownhttps://www.blogger.com/profile/06910274979303044606noreply@blogger.comtag:blogger.com,1999:blog-37404288.post-16822281332313902332009-11-03T18:14:37.917+01:002009-11-03T18:14:37.917+01:00Pavel, you need to have hs-source-dirs: src in e...Pavel, you need to have hs-source-dirs: src in either a library or a executable section in your Cabal file. Show me the file and maybe I can help you.JP Moresmauhttps://www.blogger.com/profile/09964251063221757176noreply@blogger.comtag:blogger.com,1999:blog-37404288.post-36620025100541065752009-11-03T16:58:29.086+01:002009-11-03T16:58:29.086+01:00Andrew, when the project is built (automatically o...Andrew, when the project is built (automatically or via the build project command in eclipse), exes are generated in the .dist-scion folder. In the current version of Scion the name cannot be changed so since it starts with a dot by default you don't see it in Eclipse, but it's there.JP Moresmauhttps://www.blogger.com/profile/09964251063221757176noreply@blogger.comtag:blogger.com,1999:blog-37404288.post-17284469103435254662009-11-02T16:33:46.056+01:002009-11-02T16:33:46.056+01:00Hello, I installed the latest scion and eclipsefp ...Hello, I installed the latest scion and eclipsefp from http://github.com/JPMoresmau/<br /><br />Running Eclipse on Windows I am stuck on this problem<br /><br />Parsing command: Chunk "{\"id\":37,\"method\":\"background-typecheck-file\",\"params\":{\"file\":\"C:\\\\Projects\\\\hs-prova\\\\src\\\\Main.hs\"}}" Empty<br />"{\"version\":\"0.1\",\"id\":37,\"result\":{\"Left\":\"Could not find file in module graph.\"}}"<br />p<br /><br />I tried several setting in the <br />hs-source-dirs param in cabal file but no one seems to work.<br /><br />Any hint?Unknownhttps://www.blogger.com/profile/06910274979303044606noreply@blogger.comtag:blogger.com,1999:blog-37404288.post-58551098553195134452009-11-01T21:08:04.277+01:002009-11-01T21:08:04.277+01:00Nice video Watto. Really thorough.
I just have a...Nice video Watto. Really thorough. <br /><br />I just have a small question to anyone who can help. Is eclipseFP able to actually compile exes? As in:<br />ghc --make Main.hs -o Program.exe somehow or is that something coming later on? Thanks<br /><br />PS Keep up the great work people.IdentitySearchhttps://www.blogger.com/profile/10824529334197237842noreply@blogger.comtag:blogger.com,1999:blog-37404288.post-33931732773318942692009-11-01T18:22:16.892+01:002009-11-01T18:22:16.892+01:00You may want to see the installation video: http:/...You may want to see the installation video: http://www.vimeo.com/7375105aquarinhttps://www.blogger.com/profile/01803879512885563659noreply@blogger.comtag:blogger.com,1999:blog-37404288.post-40946425654864981102009-10-30T23:39:00.633+01:002009-10-30T23:39:00.633+01:00This comment has been removed by the author.marcinKhttps://www.blogger.com/profile/02011876773014879219noreply@blogger.comtag:blogger.com,1999:blog-37404288.post-62391190709918484612009-10-29T16:23:52.979+01:002009-10-29T16:23:52.979+01:00Rene, for some reason I had never seen your error ...Rene, for some reason I had never seen your error but I realized that Scion expects to be running from the root of the project, and the eclipse code didn't enforce that. I fixed it and released it on github if you want to try it. I'm at a loss why it never caused an issue anywhere else.<br /><br />Andrew, I don't recall any issue installing scion. What I would do is install the hackage version first through "cabal install scion" to get all the dependencies installed for me, then install the github version.JP Moresmauhttps://www.blogger.com/profile/09964251063221757176noreply@blogger.comtag:blogger.com,1999:blog-37404288.post-24245927335896098582009-10-29T16:13:47.963+01:002009-10-29T16:13:47.963+01:00I tried to install Nominolo's scion from githu...I tried to install Nominolo's scion from github. I downloaded it since I don't have an account. There are some missing libraries on hackage however such as ghc-uniplate. I downloaded that from his github once more and it then required derive 0.1.4... etc etc it's a long story but in the end I couldn't compile the latest version of scion. So I tried the version on hackage but it doesn't seem to work correctly or at least i am doing something wrong. Can you please help? Thanks I am really looking forward to using eclipseFP.IdentitySearchhttps://www.blogger.com/profile/10824529334197237842noreply@blogger.comtag:blogger.com,1999:blog-37404288.post-40320630289382130032009-10-28T08:47:58.522+01:002009-10-28T08:47:58.522+01:00Well yes, since I started with 107 and slowly buil...Well yes, since I started with 107 and slowly built 108 on top. There must be something in the Eclipse "Error Log" view, with hopefully a stack trace. Attach it to an incident on the eclipsefp sourceforge help forum, so we can track the issue better than through the blog. Even attach the zipped project directory if you want.JP Moresmauhttps://www.blogger.com/profile/09964251063221757176noreply@blogger.comtag:blogger.com,1999:blog-37404288.post-60294343740371324412009-10-27T21:06:51.385+01:002009-10-27T21:06:51.385+01:00No, unfortunately not. It was a test project creat...No, unfortunately not. It was a test project created under 0.107.0.<br />The error appeared after upgrading to 0.108.0, though new projects seem to have this as well.<br />Have you tried a similar constellation yourself?Renehttps://www.blogger.com/profile/17976925077212199623noreply@blogger.comtag:blogger.com,1999:blog-37404288.post-36092888149789997352009-10-27T08:45:32.274+01:002009-10-27T08:45:32.274+01:00Hello all, there was an issue with a file in the E...Hello all, there was an issue with a file in the Eclipse update manager site, should be fixed now. Otherwise you can also download from the files section in sourceforge.<br /><br />Rene, do you have more info on you issue abbout the relative path (anything in the log, any stack trace?)JP Moresmauhttps://www.blogger.com/profile/09964251063221757176noreply@blogger.comtag:blogger.com,1999:blog-37404288.post-55906056936752337962009-10-25T19:14:49.011+01:002009-10-25T19:14:49.011+01:00Thanks Rene! I hadn't seen that link on the ht...Thanks Rene! I hadn't seen that link on the http://eclipsefp.sourceforge.net/ page. To clarify its on bottom of the Downloads page.<br /><br />Thanks :DIdentitySearchhttps://www.blogger.com/profile/10824529334197237842noreply@blogger.comtag:blogger.com,1999:blog-37404288.post-30289849061784261362009-10-25T16:22:42.088+01:002009-10-25T16:22:42.088+01:00At the very bottom of http://eclipsefp.sourceforge...At the very bottom of http://eclipsefp.sourceforge.net/ you will see the 0.108.0 archive. Download this and extract it to your eclipse directory in the corresponding features and plugin directories. Then use the eclipse update with option "from local" to install the above in eclipse. Update scion from the git repository as described.Renehttps://www.blogger.com/profile/17976925077212199623noreply@blogger.comtag:blogger.com,1999:blog-37404288.post-63518850715576743792009-10-25T13:52:47.612+01:002009-10-25T13:52:47.612+01:00Hi, I also am using Windows.
I managed to build a...Hi, I also am using Windows.<br /><br />I managed to build and install Scion but I don't know how to retrieve EclipseFP version 1.108. (I apologize for my lack of knowledge). I would really like to try EclipseFP out.IdentitySearchhttps://www.blogger.com/profile/10824529334197237842noreply@blogger.comtag:blogger.com,1999:blog-37404288.post-70485387908678853222009-10-25T11:57:14.919+01:002009-10-25T11:57:14.919+01:00Hello, I am using windows with eclipse at c:\expan...Hello, I am using windows with eclipse at c:\expanded\eclipse, workspace at c:\dev and project root at c:\dev\etest2. After adding a module Main I get the error:<br />"Description Resource Path Location Type<br />file C:\dev\etest2\src\Main.hs is not relative to project root C:\expanded\eclipse Main.hs /etest2/src line 1 Problem<br />"<br />which seems wrong to me. Anyone got any ideas?Renehttps://www.blogger.com/profile/17976925077212199623noreply@blogger.comtag:blogger.com,1999:blog-37404288.post-88868645253991062482009-10-25T00:07:10.337+02:002009-10-25T00:07:10.337+02:00I've downloaded and installed everything as in...I've downloaded and installed everything as indicated and it's all working great. It's nice having one IDE for both my Haskell (EclipseFP) and Scala. I had been using emacs and leksah, but i think I will now just focus on eclipse. Thanks to everyone who has worked on EclipseFP.Unknownhttps://www.blogger.com/profile/00407219757840116705noreply@blogger.comtag:blogger.com,1999:blog-37404288.post-77311176312909402402009-10-23T22:38:32.675+02:002009-10-23T22:38:32.675+02:00Great! I'd love to give it a try, but the down...Great! I'd love to give it a try, but the download instructions are not very clear... there seem to be multiple versions of things in different places.<br /><br />Could you give us a simple list of steps to download and install this release? Thanks!Neil Bartletthttps://www.blogger.com/profile/08588098030811273044noreply@blogger.com