Minder
Minder copied to clipboard
Copy&paste
Copy & paste (paste text as child node or paste and replace node text) doesnt work - does nothing. Elementary OS 5.1.7 Hera.
What version of Minder are you running? You can run: com.github.phase1geo.minder —version
(That should be two dashes before ‘version’ in the above command.). I am not seeing any issues on my end with text copy and paste (both copying text from within Minder and copying text from an external application like Terminal).
Running the latest 0.10.0 (just released a few days ago).
terminal shows:
↳ com.github.phase1geo.minder --version
1.10.0
also after start it shows: (but I think it has nothing to do with copy&paste)
↳ com.github.phase1geo.minder
/home/mikep/.local/share/minder/favorites.xml:1: parser error : Document is empty
^
(com.github.phase1geo.minder:15991): Gtk-WARNING **: 09:31:23.507: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node notebook, owner GtkNotebook)
(com.github.phase1geo.minder:15991): Gtk-WARNING **: 09:31:23.507: gtk_widget_size_allocate(): attempt to allocate widget with width -10 and height 1201
(com.github.phase1geo.minder:15991): Gtk-WARNING **: 09:31:23.507: Negative content width -13 (allocation 1, extents 7x7) while allocating gadget (node button, owner GtkRadioButton)
(com.github.phase1geo.minder:15991): Gtk-WARNING **: 09:31:23.507: Negative content width -11 (allocation 1, extents 6x6) while allocating gadget (node label, owner GtkLabel)
(com.github.phase1geo.minder:15991): Gtk-WARNING **: 09:31:23.507: Negative content width -12 (allocation 1, extents 6x7) while allocating gadget (node button, owner GtkRadioButton)
(com.github.phase1geo.minder:15991): Gtk-WARNING **: 09:31:23.507: Negative content width -11 (allocation 1, extents 6x6) while allocating gadget (node label, owner GtkLabel)
(com.github.phase1geo.minder:15991): Gtk-WARNING **: 09:31:23.507: Negative content width -12 (allocation 1, extents 6x7) while allocating gadget (node button, owner GtkRadioButton)
(com.github.phase1geo.minder:15991): Gtk-WARNING **: 09:31:23.507: Negative content width -11 (allocation 1, extents 6x6) while allocating gadget (node label, owner GtkLabel)
(com.github.phase1geo.minder:15991): Gtk-WARNING **: 09:31:23.507: Negative content width -12 (allocation 1, extents 6x7) while allocating gadget (node button, owner GtkRadioButton)
(com.github.phase1geo.minder:15991): Gtk-WARNING **: 09:31:23.507: Negative content width -11 (allocation 1, extents 6x6) while allocating gadget (node label, owner GtkLabel)
(com.github.phase1geo.minder:15991): Gtk-WARNING **: 09:31:23.507: Negative content width -7 (allocation 1, extents 4x4) while allocating gadget (node button, owner GtkColorButton)
(com.github.phase1geo.minder:15991): Gtk-CRITICAL **: 09:31:23.507: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
(com.github.phase1geo.minder:15991): Gtk-WARNING **: 09:31:23.507: Negative content width -13 (allocation 1, extents 7x7) while allocating gadget (node button, owner GtkButton)
(com.github.phase1geo.minder:15991): Gtk-WARNING **: 09:31:23.507: Negative content width -11 (allocation 1, extents 6x6) while allocating gadget (node label, owner GtkLabel)
(com.github.phase1geo.minder:15991): Gtk-CRITICAL **: 09:31:23.507: gtk_widget_get_preferred_height_and_baseline_for_width: assertion 'width >= -1' failed
(com.github.phase1geo.minder:15991): Gtk-CRITICAL **: 09:31:23.507: gtk_widget_get_preferred_height_and_baseline_for_width: assertion 'width >= -1' failed
(com.github.phase1geo.minder:15991): Gtk-CRITICAL **: 09:31:23.507: gtk_widget_get_preferred_height_and_baseline_for_width: assertion 'width >= -1' failed
(com.github.phase1geo.minder:15991): Gtk-CRITICAL **: 09:31:23.507: gtk_widget_get_preferred_height_and_baseline_for_width: assertion 'width >= -1' failed
(com.github.phase1geo.minder:15991): Gtk-WARNING **: 09:31:23.507: Negative content width -13 (allocation 1, extents 7x7) while allocating gadget (node button, owner GtkButton)
(com.github.phase1geo.minder:15991): Gtk-WARNING **: 09:31:23.507: Negative content height -7 (allocation 1, extents 4x4) while allocating gadget (node button, owner GtkButton)
(com.github.phase1geo.minder:15991): Gtk-WARNING **: 09:31:23.507: Negative content width -13 (allocation 1, extents 7x7) while allocating gadget (node button, owner GtkButton)
(com.github.phase1geo.minder:15991): Gtk-WARNING **: 09:31:23.507: Negative content height -7 (allocation 1, extents 4x4) while allocating gadget (node button, owner GtkButton)
(com.github.phase1geo.minder:15991): Gtk-WARNING **: 09:31:23.507: Negative content width -13 (allocation 1, extents 7x7) while allocating gadget (node button, owner GtkButton)
(com.github.phase1geo.minder:15991): Gtk-WARNING **: 09:31:23.507: Negative content height -7 (allocation 1, extents 4x4) while allocating gadget (node button, owner GtkButton)
(com.github.phase1geo.minder:15991): Gtk-WARNING **: 09:31:23.507: Negative content width -13 (allocation 1, extents 7x7) while allocating gadget (node button, owner GtkButton)
(com.github.phase1geo.minder:15991): Gtk-WARNING **: 09:31:23.507: Negative content height -7 (allocation 1, extents 4x4) while allocating gadget (node button, owner GtkButton)
(com.github.phase1geo.minder:15991): Gtk-WARNING **: 09:31:23.507: gtk_widget_size_allocate(): attempt to allocate widget with width -20 and height 1191
(com.github.phase1geo.minder:15991): Gtk-CRITICAL **: 09:31:23.508: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
(com.github.phase1geo.minder:15991): GLib-GObject-WARNING **: 09:31:23.511: invalid cast from 'DrawArea' to 'GtkWindow'
(com.github.phase1geo.minder:15991): GLib-GObject-WARNING **: 09:31:23.512: invalid cast from 'DrawArea' to 'GtkWindow'
(com.github.phase1geo.minder:15991): Gtk-CRITICAL **: 09:31:35.456: _gtk_widget_captured_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed
(com.github.phase1geo.minder:15991): Gtk-CRITICAL **: 09:31:35.456: _gtk_widget_captured_event: assertion 'WIDGET_REALIZED_FOR_EVENT (widget, event)' failed
I foud now another problem.
When starting com.github.phase1geo.minder -n
and press any key:
[1] 16995 segmentation fault com.github.phase1geo.minder -n
I created a new bug report for the -n issue. I'll have to see if I can recreate it.
So what application are you copying text out of and then pasting text into Minder?
I am having some related/other issues with copy/paste:
-
I cannot copy nodes from minder to another application... namely gedit. In freemind/freeplane nodes would be pasted one per line and sub nodes would be indented by a tab per sublevel
-
the other way around it works (copying text from gedit to minder) but behavior is not what I expected as it happened in freemind/freeplane, that is, when pasting several lines of text a new sub node should be created for each line; right now just one sub-node is created with all the lines inside
I created a new bug report for the -n issue. I'll have to see if I can recreate it.
So what application are you copying text out of and then pasting text into Minder?
I tried copy minder->minder, terminal->minder, sublime->minder. No luck, paste into minder doesnt work. Opposite direction work only with selected texts in minder but no with nodes from graph.
Trying to figure out the difference between my environment (which works) versus yours (which doesn’t). Is this using the Debian package or are you using Flatpak?
It is standard Elementary OS 5.1.7 Hera. Minder is instaled from AppCenter.
I think I’m going to create a GitHub branch which will generate some additional output for debugging this issue on your end. I’ll provide instructions for how to sync, build and run from that branch when I have it setup if you are willing to do that.
Mike, have you ever cloned your own repository from GitHub and/or built an elementary application from source before? Just want to know how much detail to provide in regards to getting things setup. I have created a branch called "copy_paste_bug" to help diagnose this issue on your end. I may need to add more debug output going forward, so we may need to have you download/clone additional copies from this branch until I have the information I need.
Once you have the project downloaded and you have the debian packages required to build from source, you should be able to build/run the application by cd'ing to the top-level Minder directory and running './app run'.
Hi Trevor, I built the copy_paste_bug branch and copy&paste works on my system with a few glitches.
- your log from console (ctrl+C, CTRL+V):
(com.github.phase1geo.minder:17837): Gtk-CRITICAL **: 08:39:20.487: gtk_widget_grab_default: assertion 'gtk_widget_get_can_default (widget)' failed
In set_with_data, info: 0
In set_with_data, info: 0
In set_with_data, info: 0
target: TIMESTAMP
target: TARGETS
target: MULTIPLE
target: UTF8_STRING
target: text/plain
target: STRING
target: image/png
target: x-application/minder-nodes
In set_with_data, info: 2
In set_with_data, info: 0
In set_with_data, info: 0
In set_with_data, info: 0
target: TIMESTAMP
target: TARGETS
target: MULTIPLE
target: SAVE_TARGETS
target: UTF8_STRING
target: COMPOUND_TEXT
target: TEXT
target: STRING
target: text/plain;charset=utf-8
target: text/plain
In set_with_data, info: 0
In set_with_data, info: 0
In set_with_data, info: 0
target: TIMESTAMP
target: TARGETS
target: MULTIPLE
target: UTF8_STRING
target: text/plain
target: STRING
target: image/png
target: x-application/minder-nodes
In set_with_data, info: 2
- A little annoing is when I select a few nodes in graph, press ctrl+c and then click into graph, the graph will strangelly re-layout.
- Child nodes (without parent) used in "Paste and Replace node text" will create bunch of root nodes which is a litlle unexpected :-)
- Undo during all this copy paste experiments behave upredictible with graph layout and nodes positions (randomly walking around). Also in one moment its crashed with
ERROR:/usr/share/vala-0.40/vapi/glib-2.0.vapi:5321:vala_g_array_remove_index: assertion failed: (length > index)
[1] 17837 abort ./com.github.phase1geo.minder -n
but I was unable to replicate it. sorry.
Another interesting thing. I build also master branch and copy&paste works correctly. Also the segfault with "-n" is gone. It looks like some problem with gtk lib?
@MikeBakerCZ Is this issue fixed in the 0.11.0 release? Or does it still exist?
copy&paste problem still exist. It works only in my local build.