Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gnucash: reports are displayed as HTML text rather than being rendered #14105

Closed
tlevine opened this issue Mar 21, 2016 · 14 comments
Closed

gnucash: reports are displayed as HTML text rather than being rendered #14105

tlevine opened this issue Mar 21, 2016 · 14 comments

Comments

@tlevine
Copy link
Contributor

tlevine commented Mar 21, 2016

Basic info

$ uname -a
Linux tlevine 4.1.13 #1-NixOS SMP Thu Jan 1 00:00:01 UTC 1970 x86_64 GNU/Linux
$ nixos-version
16.03pre73316.93d8671 (Emu)
$ nix-env --version
nix-env (Nix) 1.10
$ nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion
"16.03pre73316.93d8671"

I will mention building with webkit; this is the patch for that.

$ git diff --p
diff --git i/pkgs/applications/office/gnucash/2.6.nix w/pkgs/applicatio[62/197]
e/gnucash/2.6.nix
index 3c2348b..6a0bf11 100644
--- i/pkgs/applications/office/gnucash/2.6.nix
+++ w/pkgs/applications/office/gnucash/2.6.nix
@@ -2,6 +2,7 @@
 , intltool, glib, gtk, libofx, aqbanking, gwenhywfar, libgnomecanvas, goffice
 , webkit, glibcLocales, gsettings_desktop_schemas, makeWrapper, dconf, file
 , gettext, swig, slibGuile, enchant, bzip2, isocodes, libdbi, libdbiDrivers
+, webkitgtk
 }:

 /*
@@ -27,6 +28,8 @@ stdenv.mkDerivation rec {
     glib gtk goffice webkit
     # gnome...
     dconf gconf libgnomecanvas gsettings_desktop_schemas
+    # html reports
+    webkitgtk
     # financial
     libofx aqbanking gwenhywfar
     # perl

Issue

One present issue with the GnuCash package is that HTML reports
are displayed as HTML text rather than being rendered.

Why it's broken

I read in ./configure --help that the HTML engine is webkit

  --with-html-engine=[webkit]
                          Obsolete: Only webkit is used as HTML engine now

and saw a corresponding include in the GnuCash source code,

#include <webkit/webkit.h>

so I tried building with nixos.webkit. Alas, that didn't change anything.
I also didn't see anything when I set the --debug flag.

There's apparently some difficulty in installing webkit with Nix
so I guess the issue is that we don't have a good webkit package
and that GnuCash doesn't make it obvious when this is broken.

@tlevine tlevine changed the title GnuCash reports are displayed as HTML text rather than being rendered gnucash: reports are displayed as HTML text rather than being rendered Mar 21, 2016
@aszlig
Copy link
Member

aszlig commented Mar 21, 2016

That difficulty you're listing here isn't related to Nix(OS) but to a WebKit port also called Nix.

@tlevine
Copy link
Contributor Author

tlevine commented Mar 21, 2016

Well that's promising. I guess I'll just need to look closer at the
webkit and gnucash packages.

On 21 Mar 09:08, aszlig wrote:

That difficulty you're listing here isn't related to Nix(OS) but to a WebKit port also called Nix.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#14105 (comment)

@layus
Copy link
Member

layus commented Aug 1, 2016

Any update on this ?

@layus
Copy link
Member

layus commented Aug 17, 2017

@tlevine, @aszlig This has been stalled for one year. May I suggest to close this issue ?

@tlevine
Copy link
Contributor Author

tlevine commented Aug 17, 2017 via email

@layus
Copy link
Member

layus commented Aug 17, 2017

Great, but I cannot do it myself, only the OP or an administrator can close issues

@theNerd247
Copy link

Are others still having an issue - because I am and am willing to fix this.

@aszlig
Copy link
Member

aszlig commented Mar 28, 2018

@layus: I'm not using GnuCash, so I don't have the issue, I was just clarifying on the OP.

@theNerd247: Thanks in advance :-)

@theNerd247
Copy link

So I spent all day and couldn't make heads or tails of what's going on. The debug output from gnucash didn't add any info and upgrading to 2.6.19 didn't help either. Due to time I've switched to hledger which suites my needs. Sorry!

@tlevine
Copy link
Contributor Author

tlevine commented Mar 31, 2018 via email

@tlevine
Copy link
Contributor Author

tlevine commented Apr 19, 2018 via email

@stale
Copy link

stale bot commented Jun 4, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 4, 2020
@sjamaan
Copy link
Contributor

sjamaan commented Aug 7, 2022

I've been using GNUCash for a while now and never ran into this particular issue. I think it can be closed. It probably got fixed years ago.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Aug 7, 2022
@patka-123
Copy link
Contributor

Hello @tlevine 👋

It seems like this issue has been fixed by now. Would you be able to close this issue?

(I'm going trough issues marked as stale to see what can be resolved. If this is still an issue that needs a fix, then don't mind me)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants