Announce: Leksah 0.13.2.0 (still a bit experimental)

277 views
Skip to first unread message

Hamish Mackenzie

unread,
Feb 2, 2013, 11:48:24 AM2/2/13
to lek...@googlegroups.com, Haskell Cafe, gtk2hs-devel@lists.sourceforge.net List, Gtk2Hs Users
Version Control
---------------
Harald and Stephan's Version Control integration has been
merged in! If you want to help out on this there are still some
cool things that could be added. I for one would love something
to show my changes vs. the repo as I edit.

Harald and Stephan also added a number of other nice UI
changes. Unfortunately I do not have a list (but my favourite
is that selecting some text highlights other occurrences).


Better Haddock and GHCi support
-------------------------------
While writing documentation for jsc, I made a few changes to
help make writing Haddock docs easier....

* Documentation pane - New pane that uses WebKit to display
your packages Haddock docs (Package -> Open Documentation).

* Auto build Haddock docs - If you click the tick button
on the toolbar it will automatically build your docs
and reload the Documentation pane while you edit your
code. If you have background build switched off then
Ctrl+B will run tests and build docs if the tick is on.

* Auto run - While you are in GHCi mode background build
will also reevaluate the last expression sent to GHCi
with Ctrl+Enter (also works with Ctrl+B if you have
background build off).

* Haddock & Ctrl+Enter - Haddock code block comments
( -- > and -- >>> ) are removed before the current
line or selected text is sent to GHCi.

* Support for choosing which executable or test suite GHCi
should run (expand the package in the workspace pane
to see the list and activate the one you want to
load in GHCi).

Hop on #leksah if you have any questions.


OS X
----
Sorry, I am still having trouble building WebKitGTK+ on OSX.

If you want a challenge...
https://github.com/jralls/gtk-osx-build
https://github.com/leksah/leksah/blob/master/osx/gtk.sh

Alternatively we might have to build Leksah with -f-webkit
to leave out the webkit stuff.


Windows
-------
Choose the version that matches your installed GHC
http://leksah.org/packages/leksah-0.13.2.0-ghc-7.0.3.exe
http://leksah.org/packages/leksah-0.13.2.0-ghc-7.0.4.exe
http://leksah.org/packages/leksah-0.13.2.0-ghc-7.4.1.exe
http://leksah.org/packages/leksah-0.13.2.0-ghc-7.4.2.exe
http://leksah.org/packages/leksah-0.13.2.0-ghc-7.6.1.exe


Linux
-----
Follow the steps in the .travis.yml file...
https://github.com/leksah/leksah/blob/master/.travis.yml
Should go something like this...
https://travis-ci.org/leksah/leksah

Andrew U. Frank

unread,
Feb 4, 2013, 11:47:30 AM2/4/13
to lek...@googlegroups.com
i tried to build the new leksah 0.13.2.0 but failed.

i followed the instructions on the .travis.yml
but they seem only preparatory steps and not really installing leksh.
i then downloaded the newest version from github
and tried to install them with cabal:

frank@oporto:~/programs/leksahinstall/leksah/leksah$ cabal install
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: leksah-0.13.2.0
trying: leksah-0.13.2.0:+webkit

but cannot see what this message can mean (the cabal file has this
version ...).
i installed webkit.

what is the next step? could you perhaps update the travis.yml file
or (even better) produce a .deb file.

thank you

andrew
--
---------
Prof. Dr. sc.techn. Andrew U. Frank +43 1 58801 12710 direct
Geoinformation, TU Wien +43 1 58801 12700 office
Gusshausstr. 27-29 +43 1 55801 12799 fax
1040 Wien Austria +43 676 419 25 72 mobil

my blog: http://andrewufrank.blogspot.com/
homepage: http://www.geoinfo.tuwien.ac.at
skype: andrewufrank

Hamish Mackenzie

unread,
Feb 4, 2013, 8:41:50 PM2/4/13
to lek...@googlegroups.com
The step in the .travis.yml file you might have missed is this one...

cabal-meta install -fwebkit1-8 -fgtk3 --force-reinstalls || cabal-meta install -fwebkit1-8 -fgtk3 --force-reinstalls

cabal-meta is a tool that downloads and builds haskell packages based on the sources.txt file.

The || in there is to get it to try twice because there is a problem with one of the gtk2hs packages (might be webkit) that sometimes stops it from working the first time.

Here it is in action (cabal-meta starts at line 530)...
https://travis-ci.org/leksah/leksah/builds/4545876

I am not too keen on maintaining development debian packages as we would need one for each GHC compiler version. If you are interested in setting something up to build them automatically then that would be cool. Best to talk to the debian haskell guys about that though as they may have something more suitable than travis and they do some clever stuff with metadata when packaging leksah.

Hamish
> --
> You received this message because you are subscribed to the Google Groups "leksah" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to leksah+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Andrew U. Frank

unread,
Feb 6, 2013, 5:31:19 AM2/6/13
to lek...@googlegroups.com
dear hamish

i tried this step, but get error messages
frank@oporto:~/programs/leksahinstall$ cabal-meta install -fwebkit1-8
-fgtk3 --force-reinstalls || cabal-meta install -fwebkit1-8 -fgtk3
--force-reinstalls
cabal-meta:
log of commands saved to: /home/frank/programs/leksahinstall/.shelly/1.txt
Exception: /home/frank/programs/leksahinstall/sources.txt:
openBinaryFile: does not exist (No such file or directory)
cabal-meta:
log of commands saved to: /home/frank/programs/leksahinstall/.shelly/2.txt
Exception: /home/frank/programs/leksahinstall/sources.txt:
openBinaryFile: does not exist (No such file or directory)


the travis.yml file does not indicate where the leksah sources are.
i see sources.txt files in gtkhs, but not in gtksourceview
and i do not understand how the cabal-meta finds the directory. in which
directory should i be for the install step?
(the travis.yml moves up and out of gtksourceview)

thanks for help

andrew

Hamish Mackenzie

unread,
Feb 6, 2013, 5:37:58 AM2/6/13
to lek...@googlegroups.com
travis runs the commands in the repo. So you need to clone just the leksah get repo first and run that command in the clone (it contains the sources.txt file https://github.com/leksah/leksah/blob/master/sources.txt).

gtksourceview does not need a sources.txt as it is just one package.

alejandr...@gmail.com

unread,
Feb 22, 2013, 12:20:05 PM2/22/13
to lek...@googlegroups.com, Haskell Cafe, gtk2hs-devel@lists.sourceforge.net List, Gtk2Hs Users
I compiled Leksah 0.13.2 using Ubuntu 12.04 (I followed the instructions on .travis.yml). It was OK, but when I tried to compile with Ubuntu 12.10, I got the following error:

  Building webkit-0.12.5...
  Preprocessing library webkit-0.12.5...
  gtk2hsC2hs: Errors during expansion of binding hooks:

  webkit1.8/Graphics/UI/Gtk/WebKit/DOM/File.chs:17: (column 14) [ERROR]
    >>> Unknown identifier!
    Cannot find a definition for `webkit_dom_file_get_file_name' in the header file.
  webkit1.8/Graphics/UI/Gtk/WebKit/DOM/File.chs:23: (column 16) [ERROR]
    >>> Unknown identifier!
    Cannot find a definition for `webkit_dom_file_get_file_size' in the header file.

 Can you help me, please?

Alejandro T. Bello Ruiz

Hamish Mackenzie

unread,
Mar 1, 2013, 11:04:59 PM3/1/13
to lek...@googlegroups.com, Haskell Cafe, gtk2hs-devel@lists.sourceforge.net List, Gtk2Hs Users
12.10 uses webkit 1.10 so the -fwebkit1.8 was probably tripping it up.

I have updated webkit so that webkit 1.8 is detected automatically and
updated the .travis.yml file.

Please try again.

Alejandro Toribio Bello Ruiz

unread,
Mar 6, 2013, 2:48:14 PM3/6/13
to lek...@googlegroups.com, Haskell Cafe, gtk2hs-devel@lists.sourceforge.net List, Gtk2Hs Users
Leksah 0.13.2 compiled successfully on Ubuntu 12.10 following the new instructions on .travis.yml, but arise the old problem where the GHCi integration break when the first command set is from the debug scratch pane. This bug was fixed on Leksah 0.12.1.3. What happened? This issue is very import for my students. Would be very grateful if you fix this bug.

Regards

Alejandro Toribio Bello Ruiz

unread,
Mar 6, 2013, 2:50:05 PM3/6/13
to lek...@googlegroups.com, Haskell Cafe, gtk2hs-devel@lists.sourceforge.net List, Gtk2Hs Users

Hamish Mackenzie

unread,
Mar 7, 2013, 1:45:59 AM3/7/13
to lek...@googlegroups.com, Haskell Cafe, gtk2hs-devel@lists.sourceforge.net List, Gtk2Hs Users
I am not able to reproduce this on my Ubuntu 12.10 VM.

What version of GHC are you using?
Do you have anything in your ~/.ghci file?
What command are you running?
Does putStrLn "Hello World" work?
What is the active .cabal project?

The GHCi interface is sensitive to changes in the way GHCi formats it output, so it is a bit fragile.   Some things that will currently break it are...
 * Anything that tries to read input on stdin
 * :set prompt (Leksah uses the prompt to detect when the output finishes)

I added some tests a while back to try to catch issues running GHCi.  Can you please try this...

cd leksah/vendor/leksah-server
cabal install --enable-tests --force-reinstall

You should see this near the end...

Running 1 test suites...
Test suite test-tool: RUNNING...
Test suite test-tool: PASS
Test suite logged to: dist/test/leksah-server-0.13.0.0-test-tool.log
1 of 1 test suites (1 of 1 test cases) passed.

Thanks,
Hamish
Reply all
Reply to author
Forward
0 new messages