Zim-desktop-wiki: source view codeblock freezes page

Created on 11 Feb 2018  路  6Comments  路  Source: zim-desktop-wiki/zim-desktop-wiki

I am a new user, just experimenting with the features a bit (can't find the logfile otherwise I would provide more info or help out with some analysis).

  1. on a page I do "Insert > Code Block"
  2. I select "Python"
  3. I add a function like "def a():n pass"
  4. now it does the syntax just fine
  5. go to another page and come back (I assume this is when Zim saves a page)
  6. now the page is frozen - no highlighting, not possible to switch to edit mode any more

If I can do something to investigate this issue let me know

my system:

  • I am using up to date Arch Linux
  • Zim 0.67 (installed via pacman)
  • I assume Zim uses my system python which would be 3.6.4

update (11.02.2018):

  • I ran Zim in -D mode and could not find anything that indicated a problem let alone any info regarding codeblock :(
  • only thing I found is this: "DEBUG: Got error in dispatch: No such file or directory"
  • looks like I am out of luck trying to install from source: "ImportError: No module named gobject"

Most helpful comment

wow, the old "edit source" & linenumbers="False" trick worked for me!

All 6 comments

wow, the old "edit source" & linenumbers="False" trick worked for me!

This is definitely a duplicate of #296

Also, Zim is not ported yet to python3 (but the work is in progress). Easy check:

$ ps -o cmd -C zim
CMD
/usr/bin/python2 /usr/bin/zim

Hello,

I have the same problem with freezing Zim. Where should I put this line edit source" & linenumbers="False?

@walduf just right click on sourceview object and deselect "Show Line Numbers" option. Or manually disable display of linenumbers in note file. E.g. edit it with menu->tools->edit source.

@Self-Perfection Many thanks! :]

Closing as this is a duplicate of #296. Hope this to be gone in Gtk3 port - fingers crossed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

neokeld picture neokeld  路  6Comments

Osndok picture Osndok  路  5Comments

Self-Perfection picture Self-Perfection  路  5Comments

sojusnik picture sojusnik  路  3Comments

kbrenneman picture kbrenneman  路  4Comments