Every time I try to run a project in EclipseFP (running Lubuntu 14.04) I get the following error "-package-conf is deprecated: Use -package-db instead". The compilation process freezes and I have to press "terminate", otherwise the build process runs forever.
When I do a "cabal configure && cabal build" directly in the project folder (outside of EclipseFP) everything works.
I checked all build paths. Everything seems to be correct (including GHC). My cabal version is 1.16.0.2. GHC version is 7.6.3.
I found another topic here on sourceforge (from February this year) mentioning the same error but the issue seemed to have gone away after refreshing the project and playing around with the build paths. I'm 100% sure that my paths specified in the preferences are correct.
Any suggestions? Thx!
My installation history:
installed haskell-platform via apt-get
installed buildwrapper, scion-browser, alex, happy, hlint, sourcegraph via the shell (no errors) using cabal install
downloaded eclipse 64 Bit for Linux
Added the eclipsefp repository as specified on the eclipsefp homepage
created a test project
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is a warning, you can ignore it. Your issues are unrelated.
I run GHC 7.6.3 on Ubuntu 14.04, and everything is fine. Please run the test suite that comes with buildwrapper, it takes a few minutes to run and let you know if everything is ok.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You should just be able, inside the buildwrapper source directory, to run "cabal configure --enable-tests", "cabal build", and then "cabal test" should run the tests.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Make sure you're on the console view of your project in Eclipse when you launch compilation to see what may be happening.
Then when Eclipse is frozen, run jvisualvm and obtain a thread dump of your Eclipse process. That may give me clue on where you're stuck, and hopefully why.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, as I said, there is no build activity in the thread dump you gave, it just looks like Eclipse is idle there, so I don't know what you mean. You talk about "running a project", then "building it". Maybe provide the exact actions you're doing with screenshots. Do you see anything in the console view? Do you have a .dist-buildwrapper/dist directory present in your project?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I do have a .dist-buildwrapper/dist directory present in my project.
Here's what I did:
File -> New -> Haskell Project
Project Name : Test, create new project in workspace is checked, Components: executable is checked -> Finish
In Project Browser: Navigate to Test -> src -> Main.hs
main = putStr "test"
Run -> Run -> GHCi Session -> Ok
The console view shows:
on the commandline: Warning:
-package-conf is deprecated: Use -package-db instead
There is no display of a console where I could enter commands as I could if I started ghci using terminal. For example there is no way to call the main function using console in eclipse.
If I change main to putStr "test the console shows "lexical error in string/character literal at end of input"
If I do something like main = putStr $ show [2,3] the following warning shows up in the console (as it should):
Warning:
Defaulting the following constraint(s) to type Integer'
(Num t0)
arising from the literal2'
at /home/paul/workspace/Test/src/Main.hs:6:23
(Show t0)
arising from a use of show'
at /home/paul/workspace/Test/src/Main.hs:6:17-20
In the expression: 2
In the first argument ofshow', namely [2, 3]'
In the second argument of($)', namely `show [2, 3]'
Running executable /usr/bin/ghc shows the "knight rider bar" in the lower left corner forever...
So I guess it comes down to the problem that I can't see anything in the console. At work I use a different version of ghc and ubuntu in a virtual box and there I can enter commands interactively using the console in eclipse...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ah ah!! Your first post about "building" sent me down a wrong track. Your issue is that some of the output of the console (including what you type) is not visible. I've had that bug before (as I said I have the same config as you) but I've never managed to reproduce it consistently. Usually a restart of Eclipse fixes it, and I've never found any reference to that issue anywhere else.
Maybe you can try to change the colors for the console in the Eclipse preferences, see if it changes things. Also changing the GTK theme may help. I'll see if I can dig any more information. A priori we're not doing anything special, just writing info to the console...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried to change the eclipse theme (from GTK to classic) and played with the font color and background settings. Nothing changed...
However, I can simply type stuff in the console such as :t main and I get the desired output. Also, I can type any function name and get a feedback. Sorry for all the fuss but I'm used to have the ghci style console view and thought there's something wrong with EclipseFP. Thx a lot for helping me out though!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
Every time I try to run a project in EclipseFP (running Lubuntu 14.04) I get the following error "-package-conf is deprecated: Use -package-db instead". The compilation process freezes and I have to press "terminate", otherwise the build process runs forever.
When I do a "cabal configure && cabal build" directly in the project folder (outside of EclipseFP) everything works.
I checked all build paths. Everything seems to be correct (including GHC). My cabal version is 1.16.0.2. GHC version is 7.6.3.
I found another topic here on sourceforge (from February this year) mentioning the same error but the issue seemed to have gone away after refreshing the project and playing around with the build paths. I'm 100% sure that my paths specified in the preferences are correct.
Any suggestions? Thx!
My installation history:
This is a warning, you can ignore it. Your issues are unrelated.
I run GHC 7.6.3 on Ubuntu 14.04, and everything is fine. Please run the test suite that comes with buildwrapper, it takes a few minutes to run and let you know if everything is ok.
ok, could you please provide some information on how to run the test suite that comes with buildwrapper? Thx!
You should just be able, inside the buildwrapper source directory, to run "cabal configure --enable-tests", "cabal build", and then "cabal test" should run the tests.
The tests didn't throw any errors.
I started all over... removed .cabal and .ghc, then:
using version 1.16.0 of the Cabal library
using version 1.16.0 of the Cabal library
Btw, with freeze I mean that the message running executeable /usr/bin/ghc won't disappear
One note, I don't run eclipse using admin rights...which you shouldn't do anyway, right?
I'm somewhat desperate... Any suggestions? Thx!
Last edit: Paul 2014-05-25
Make sure you're on the console view of your project in Eclipse when you launch compilation to see what may be happening.
Then when Eclipse is frozen, run jvisualvm and obtain a thread dump of your Eclipse process. That may give me clue on where you're stuck, and hopefully why.
@JP Moresmau: Any luck with deciphering the dump? Thx for your time!
There is nothing in the dump related to buildwrapper and building a project, so no I don't see anything there. There is build going on there.
well, the build is taking forever... I've tried to reinstall several times. No luck...
Well, as I said, there is no build activity in the thread dump you gave, it just looks like Eclipse is idle there, so I don't know what you mean. You talk about "running a project", then "building it". Maybe provide the exact actions you're doing with screenshots. Do you see anything in the console view? Do you have a .dist-buildwrapper/dist directory present in your project?
I do have a .dist-buildwrapper/dist directory present in my project.
Here's what I did:
The console view shows:
on the commandline: Warning:
-package-conf is deprecated: Use -package-db instead
There is no display of a console where I could enter commands as I could if I started ghci using terminal. For example there is no way to call the main function using console in eclipse.
If I change main to putStr "test the console shows "lexical error in string/character literal at end of input"
If I do something like main = putStr $ show [2,3] the following warning shows up in the console (as it should):
Warning:
Defaulting the following constraint(s) to type
Integer' (Num t0) arising from the literal2'at /home/paul/workspace/Test/src/Main.hs:6:23
(Show t0)
arising from a use of
show' at /home/paul/workspace/Test/src/Main.hs:6:17-20 In the expression: 2 In the first argument ofshow', namely[2, 3]' In the second argument of($)', namely `show [2, 3]'Running executable /usr/bin/ghc shows the "knight rider bar" in the lower left corner forever...
So I guess it comes down to the problem that I can't see anything in the console. At work I use a different version of ghc and ubuntu in a virtual box and there I can enter commands interactively using the console in eclipse...
Ah ah!! Your first post about "building" sent me down a wrong track. Your issue is that some of the output of the console (including what you type) is not visible. I've had that bug before (as I said I have the same config as you) but I've never managed to reproduce it consistently. Usually a restart of Eclipse fixes it, and I've never found any reference to that issue anywhere else.
Maybe you can try to change the colors for the console in the Eclipse preferences, see if it changes things. Also changing the GTK theme may help. I'll see if I can dig any more information. A priori we're not doing anything special, just writing info to the console...
Sorry for the confusion!
I tried to change the eclipse theme (from GTK to classic) and played with the font color and background settings. Nothing changed...
However, I can simply type stuff in the console such as :t main and I get the desired output. Also, I can type any function name and get a feedback. Sorry for all the fuss but I'm used to have the ghci style console view and thought there's something wrong with EclipseFP. Thx a lot for helping me out though!
Yes, it's still somewhat usable, but there is an issue, that's for sure... you should see the GHC messages...
I tracked down the bug causing the GHCi output to not show, it was in the EclipseFP code! Will be fixed in 2.6.0.