giuspen / cherrytree

cherrytree
https://www.giuspen.net/cherrytree/
Other
3.38k stars 460 forks source link

Can I define the initial width of the Tree Explorer? #1918

Closed FlexMcMurphy closed 2 years ago

FlexMcMurphy commented 2 years ago

Everytime I start up CherryTree the Tree explorer is so narrow I have to manually pull the divider over to the left so I can see all the titles of nodes I have got in the Tree Explorer. image

Is it possible to set a default width for the Tree Explorer or better still could it remember the width in Pixels it was set to when CherryTree was last closed down?

Cheers,

Flex

ghost commented 2 years ago

It looks like you have something wrong with your configuration file : right access problem ? Nodes tree width is hpaned_pos.

~/.config/cherrytree/config.cfg

[state]
hpaned_pos=230
FlexMcMurphy commented 2 years ago

Thank you @ciranus.

I checked my ~/.config/cherrytree/config.cfg Every time CherryTree starts up I see hpaned_pos=1653 in there.

[flex@inspiron7520 cherrytree]$ ls -al
total 28
drwxr-xr-x  4 flex flex 4096 Jan  4 22:31  .
drwx------ 35 flex flex 4096 Jan  4 22:32  ..
-rw-r--r--  1 flex flex 5503 Jan  4 22:31  config.cfg
-rw-rw-r--  1 flex flex  191 Jun 11  2021  print.cfg
drwxr-xr-x  2 flex flex 4096 Sep 17 15:12  styles
drwxr-xr-x  2 flex flex 4096 Sep 17 14:46 'styles copy'

If I do a chmod 666 config.cfg that gives write access to all. I can edit the file anyway and change hpaned_pos=230 I had that file open in Kate text editor. When I closed down CherryTree I got the message: The file '/home/flex/.config/cherrytree/config.cfg' was created by another program. Now when I do ls -al again the config file is back to.. -rw-r--r-- 1 flex flex 5503 Jan 4 22:31 config.cfg

And.. hpaned_pos=1847

The CherryTree documents are located on a network attached drive on a Samba share... I have got CherryTree installed on three different machines and they each have that same problem with the Tree Explorer "hpaned_pos" value always making the Tree Explorer of tiny width. So maybe it is related to the Samba share? But I doubt that because the config.cfg file is located on the Manjaro file system in my laptop.

Any help much appreciated!

Cheers,

Flex

ghost commented 2 years ago

You should not have to modify anything at all. Can you backup your config.cfg and check what happens with a new one freshly created ?

FlexMcMurphy commented 2 years ago

When I do that I get everything back to day 1 with CherryTree.. so I have to go in a set up all my Preferences again. I did this just now and then had the Tree Explorer column in the position with width I want then closed down CherryTree.

When I opened CherryTree again once more the width is wrong and the config file has hpaned_pos=1847

What't this all about? Maybe try to install latest CherryTree?

Flex

ghost commented 2 years ago

Really strange. Don't know. 0.99.42 is close to 0.99.44 : don't expect miracles, but you can try.

How did you install CT ?

FlexMcMurphy commented 2 years ago

For instance, in Manjaro I set up yay to get packages from the AUR then from command line: # yay cherrytree I selected option 1 (Community edition, not the GITHub edition... not sure if that was the correcr choice?)

In the case of my Windows 10 install... I am already running 0.99.44. I installed cherrytree_0.99.44.0_win64_setup.exe from here.

ghost commented 2 years ago

I don't know how "yay" is building a package, but assume your CT build is correct (I cannot check). Assumption.... wrong dependencies. Do you only have this problem in linux, or also in windows ?

FlexMcMurphy commented 2 years ago

Thanks for your help. Actually it seems to only be a problem in Manjaro. I'll see if there is another way to install it... or maybe I will try the AUR again and install the "GitHub edition" rather than the "Community edition". I'll report back how it works. Flex

ghost commented 2 years ago

You can try Flatpak CT package to compare: https://flathub.org/apps/details/com.giuspen.cherrytree

FlexMcMurphy commented 2 years ago

Just want to report back that I installed flatpack in my Manjaro 21.2.1 Qonos. Then installed Cherrytree from flatpack. However I get the same situation... the Tree Explorer is always very narrow as in the above original post. I always have to adjust it to make it wider each time I start the CherryTree application. I only have this problem with CherryTree in Manjaro whether installed using Yay or Flatpack.

Flex

ghost commented 2 years ago

Can you try with a new linux user account (create a guest user).

giuspen commented 2 years ago

I'm curious if, with cherrytree closed, you edit config.cfg with a text editor and write a value in hpaned_pos, then you open cherrytree, has the tree width changed successfully? If yoiu close and reopen again is it still there?

FlexMcMurphy commented 2 years ago

Thank you both for continued support. I am trying lots of things. I ended up deleting the CherryTree dir --> /home/flex/.config But there seems to be another config.cfg in /home/flex/.var/app/com.giuspen.cherrytree/config/cherrytree/ If I edit the value for hpaned_pos BEFORE opening CherryTree then YES the width of the Tree Explorer is different. In my case I need hpaned_pos=675 to make the width to be what I need. When I then close CherryTree what seems to be happening is that config.cfg is deleted and then recreated and each time it changes hpaned_pos=1632. Is CherryTree supposed to delete and re-create config.cfg each time it is closed down? I guess that would make sense if CherryTree tries to remember the width you made the Tree Explorer to be the same next time you start up CherryTree. If so then maybe it is calculating the value for hpaned_pos incorrectly? Maybe it is because of some pixel resolution setting I have in my Manjaro user settings? I have this problem on two Manjaro installs but do not have this problem in Windows 10. The Windows 10 is on the same computer as one of the Manjaro installs (dual boot).

I also created a new Manjaro user account and I get the same thing in there... Once the config.cfg file is created it never remembers the width I want the Tree Explorer to be after I close down CherryTree and restart it because it calculates the value for hpaned_pos as something like 1632 even though I had manually set it to 675 by editing the config file.

Cheers,

Flex config.cfg.log

ghost commented 2 years ago

Personally never seen this double config files issue. Of course to be first clarified. You should also clarify if /home/flex/.var/app/com.giuspen.cherrytree/config/cherrytree/config.cfg is created by the manjaro package, or Flatpak one.

giuspen commented 2 years ago

Indeed when you close cherrytree it is updating config.cfg with all the session data so that when you open again it will start from where it left. For some reason hpaned_pos is miscalculated on your system, I wonder if this happens on other people's Manjaro or only on yours. It would be useful if you would uninstall cherrytree from your system and try to build and run from the source code as described on https://github.com/giuspen/cherrytree#building-cherrytree-on-arch and report if the issue is still there and in case if you have any error prints on the terminal

FlexMcMurphy commented 2 years ago

Thanks @giuspen I uninstalled CherryTree (Flatpack version) and then followed those commands to build CherryTree from sources. I get the same problem with the TreeExplorer not remembering the width I had earlier dragged it to after restarting CherryTree.

Here are error messages I am getting in the Konsole:

[flex@inspiron7520 cherrytree]$ ./build/cherrytree
[2022-01-16 23:25:05.487] [   ] [debug] /home/flex/.config/cherrytree/config.cfg parsed
[2022-01-16 23:25:05.576] [   ] [debug] autosave is started
[2022-01-16 23:25:05.683] [gtk] [warning] Error loading plugin: libhspell.so.0: cannot open shared object file: No such file or directory

[2022-01-16 23:25:05.683] [gtk] [warning] Error loading plugin: libnuspell.so.5: cannot open shared object file: No such file or directory

[2022-01-16 23:25:05.683] [gtk] [warning] Error loading plugin: libvoikko.so.1: cannot open shared object file: No such file or directory

[2022-01-16 23:25:05.685] [gtk] [warning] Error loading plugin: libaspell.so.15: cannot open shared object file: No such file or directory

[2022-01-16 23:25:05.686] [gtk] [warning] Error loading plugin: libhspell.so.0: cannot open shared object file: No such file or directory

[2022-01-16 23:25:05.687] [gtk] [warning] Error loading plugin: libnuspell.so.5: cannot open shared object file: No such file or directory

[2022-01-16 23:25:05.687] [gtk] [warning] Error loading plugin: libvoikko.so.1: cannot open shared object file: No such file or directory

[2022-01-16 23:25:05.687] [gtk] [warning] Error loading plugin: libaspell.so.15: cannot open shared object file: No such file or directory

[2022-01-16 23:25:07.482] [   ] [debug] Node name: Setting up iPerf3
[2022-01-16 23:26:05.834] [   ] [debug] autosave: no needs to save file
[2022-01-16 23:27:05.834] [   ] [debug] autosave: no needs to save file

Here are details of my system:

[flex@inspiron7520 cherrytree]$ screenfetch

 ██████████████████  ████████     flex@inspiron7520
 ██████████████████  ████████     OS: Manjaro 21.2.1 Qonos
 ██████████████████  ████████     Kernel: x86_64 Linux 5.13.19-2-MANJARO
 ██████████████████  ████████     Uptime: 22m
 ████████            ████████     Packages: 1296
 ████████  ████████  ████████     Shell: bash 5.1.12
 ████████  ████████  ████████     Resolution: 1920x1080
 ████████  ████████  ████████     DE: KDE 5.89.0 / Plasma 5.23.4
 ████████  ████████  ████████     WM: KWin
 ████████  ████████  ████████     GTK Theme: Breeze [GTK2/3]
 ████████  ████████  ████████     Icon Theme: breeze
 ████████  ████████  ████████     Disk: 1.5T / 4.0T (37%)
 ████████  ████████  ████████     CPU: Intel Core i7-3612QM @ 8x 3.1GHz [55.0°C]
 ████████  ████████  ████████     GPU: AMD/ATI Chelsea LP [Radeon HD 7730M]
                                  RAM: 2696MiB / 15874MiB

Looks like I am missing some GTK plugins?

I have Manjaro running on another computer also and have the same problem on that computer so I suspect other Manjaro users should have this problem also?

Update

I don't think those GTK errors are the cause of the TreeExplorer error. I took advice from this forum.manjaro.org post and I installed these dependencies: • # sudo pacman-mirrors -f5 && sudo pacman -Syyu libvoikko hspell nuspell hunspell aspell • Now I don't get those GTK errors but the Tree Explorer problem is still there!

Cheers,

Flex

giuspen commented 2 years ago

Is this happening also if you keep the tree on the left side? If you resize the tree and close, is this happening too or only if you open and close without resizing?

FlexMcMurphy commented 2 years ago

Cool! It doesn't happen if I switch the tree to the left side :) CherryTree remembers the width I give the Tree Explorer if it is switched to the left hand side of the screen. But I want the Tree Explorer on the right hand side, my brain can't handle it being on the left.

To answer your other question... when the tree is on the right and I resize the tree and then close yes it still happens that next time I open CherryTree then the Tree Explorer will again be the wrong width. I have to resize it every time I startup CherryTree, it is always too narrow on start up... it doesn't remember the width I set it to.

I wonder why it works with the Tree Explorer on the left but not on the right?

giuspen commented 2 years ago

I will have to try a Manjaro KDE latest and greatest to see if I can reproduce the issue, in alternative if you can build from the source code I can implement something for you to test and see if it fixes the issue...

FlexMcMurphy commented 2 years ago

Thanks a lot Giuseppe.

Maybe there is some quirkiness about Linux (its GTK??) that trips your code in the calculation of hpaned_pos when the Tree is on the right. I am not very good at coding C or C++ but the value of hpaned_pos seems to be calculated in these source files, maybe others too:

ct_config.cc
ct_main_win.cc
ct_main_win.h
ct_main_win_events.cc

I did some more testing:

I tried Ubuntu mate 20.04 from a Live USB:

MATE DE 1.24.0
WM: Metacity (Marco)
WM Theme: Ambrian-MATE
GTK Theme: Ambiant-MATE [GTK2/3]

Then I installed CherryTree using apt after adding the ppa:

sudo add-apt-repository ppa:giuspen/ppa
sudo apt-get install -y cherrytree

I have the same problem. The Tree Explorer remembers the resized width, after restarting CherryTree, if it is on the left but not if it is on the right. So I have this issue now on two different computers: A Dell Inspiron and a Thinkpad T480. With Manjaro 21.2.1 Qonos in each computer and so far also tested with Ubuntu mate 20.04 from Live USB on the Dell.

I compared the two config.cfg files after resizing the Tree and closing down CherryTree when the Tree is on the Left and on the Right. The only values that change are:

hpaned_pos
tree_right_side
curs_0
vscr_0

The values for horizontal and vertical Window size and position are the same... as well as everything else.

Yes I managed to install CherryTree by compiling from sources as mentioned above but it still gives the same problem.

Cheers,

Flex

giuspen commented 2 years ago

I tested on Ubuntu Mate 20.04 without being able to reproduce. If you know how git works and so you are able to pull the latest changes, I can implement something that you will pull, build, run and tell me the result, is that ok?

FlexMcMurphy commented 2 years ago

Yes I understand Git and am very grateful for any help you can give, thank you Giuseppe.

But I'm kind of disappointed that you aren't seeing the same problem I am. I have this problem on two separate computers.. not sure what I might be doing in my configuration that is causing this..

Cheers,

Flex

giuspen commented 2 years ago

Please git checkout debug_tree_text_separator then build, run from the terminal and see if you still have the issue, then try to move the separator, then copy and paste the terminal output to this issue

FlexMcMurphy commented 2 years ago

Sorry but I might need a little help building this... I git cloned cherrytree again into a new folder in my home folder, switched to your new branch and ran the build script:

cd /home/flex
mkdir cherrytree-separator 
cd cherrytree-separator
git clone https://github.com/giuspen/cherrytree.git
cd cherrytree
git checkout debug_tree_text_separator
Now use this command to confirm that the “debug_tree_text_separator” branch is the working branch.
git branch
git submodule update --init
./build.sh

But here I get two FAILED tests:

[flex@inspiron7520 cherrytree]$ ./build.sh
CMAKE_BUILD_TYPE=Debug
Building on ManjaroLinux 21.2.1
-- The C compiler identification is GNU 11.1.0
-- The CXX compiler identification is GNU 11.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CT_VERSION = 0.99.45
Build tests ON, auto run ON
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.0") 
-- Checking for module 'gtkmm-3.0'
--   Found gtkmm-3.0, version 3.24.5
-- Checking for module 'gtksourceviewmm-3.0'
--   Found gtksourceviewmm-3.0, version 3.18.0
-- Checking for module 'glibmm-2.4'
--   Found glibmm-2.4, version 2.66.2
-- Checking for module 'pangomm-1.4'
--   Found pangomm-1.4, version 2.46.2
-- Checking for module 'gspell-1'
--   Found gspell-1, version 1.8.4
-- Checking for module 'libxml++-2.6'
--   Found libxml++-2.6, version 2.42.1
-- Checking for module 'sqlite3'
--   Found sqlite3, version 3.37.0
-- Checking for module 'libcurl'
--   Found libcurl, version 7.80.0
-- Checking for module 'uchardet'
--   Found uchardet, version 0.0.7
Using fmt, spdlog from: SHARED LIB
-- Checking for module 'fmt>=6.0'
--   Found fmt, version 8.0.1
-- Checking for module 'spdlog>=1.5'
--   Found spdlog, version 1.9.2
+ /home/flex/cherrytree-separator/cherrytree/src/ct/icons.gresource.cc
-- Found Python: /usr/bin/python3.10 (found version "3.10.1") found components: Interpreter 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/flex/cherrytree-separator/cherrytree/build
Starting ninja build with up to 8 parallel jobs...
[300/302] Linking CXX executable run_tests_no_x
[==========] Running 63 tests from 6 test suites.
[----------] Global test environment set-up.
[----------] 1 test from ClipboardGroup
[ RUN      ] ClipboardGroup.ms_clip_convert
[       OK ] ClipboardGroup.ms_clip_convert (0 ms)
[----------] 1 test from ClipboardGroup (0 ms total)

[----------] 1 test from EncodingGroup
[ RUN      ] EncodingGroup.ustring_format
[       OK ] EncodingGroup.ustring_format (0 ms)
[----------] 1 test from EncodingGroup (0 ms total)

[----------] 16 tests from FileSystemGroup
[ RUN      ] FileSystemGroup.path_stem
[       OK ] FileSystemGroup.path_stem (0 ms)
[ RUN      ] FileSystemGroup.path_extension
[       OK ] FileSystemGroup.path_extension (0 ms)
[ RUN      ] FileSystemGroup.get_cherrytree_datadir
[       OK ] FileSystemGroup.get_cherrytree_datadir (0 ms)
[ RUN      ] FileSystemGroup.get_cherrytree_localedir
[       OK ] FileSystemGroup.get_cherrytree_localedir (0 ms)
[ RUN      ] FileSystemGroup.is_regular_file
[       OK ] FileSystemGroup.is_regular_file (7 ms)
[ RUN      ] FileSystemGroup.is_directory
[       OK ] FileSystemGroup.is_directory (0 ms)
[ RUN      ] FileSystemGroup.get_doc_type
[       OK ] FileSystemGroup.get_doc_type (0 ms)
[ RUN      ] FileSystemGroup.get_doc_encrypt
[       OK ] FileSystemGroup.get_doc_encrypt (0 ms)
[ RUN      ] FileSystemGroup.path_is_absolute
[       OK ] FileSystemGroup.path_is_absolute (0 ms)
[ RUN      ] FileSystemGroup.path_parent_path
[       OK ] FileSystemGroup.path_parent_path (0 ms)
[ RUN      ] FileSystemGroup.path_concat
[       OK ] FileSystemGroup.path_concat (0 ms)
[ RUN      ] FileSystemGroup.path_native
[       OK ] FileSystemGroup.path_native (0 ms)
[ RUN      ] FileSystemGroup.path_unix
[       OK ] FileSystemGroup.path_unix (0 ms)
[ RUN      ] FileSystemGroup.remove
[       OK ] FileSystemGroup.remove (0 ms)
[ RUN      ] FileSystemGroup.relative
[       OK ] FileSystemGroup.relative (0 ms)
[ RUN      ] FileSystemGroup.canonicalize_filename
[       OK ] FileSystemGroup.canonicalize_filename (0 ms)
[----------] 16 tests from FileSystemGroup (8 ms total)

[----------] 36 tests from MiscUtilsGroup
[ RUN      ] MiscUtilsGroup.get_encoding
[       OK ] MiscUtilsGroup.get_encoding (0 ms)
[ RUN      ] MiscUtilsGroup.convert_if_not_utf8
[       OK ] MiscUtilsGroup.convert_if_not_utf8 (3 ms)
[ RUN      ] MiscUtilsGroup.is_str_true
[       OK ] MiscUtilsGroup.is_str_true (0 ms)
[ RUN      ] MiscUtilsGroup.str__replace
[       OK ] MiscUtilsGroup.str__replace (0 ms)
[ RUN      ] MiscUtilsGroup.str__trim
[       OK ] MiscUtilsGroup.str__trim (0 ms)
[ RUN      ] MiscUtilsGroup.gint64_from_gstring
[       OK ] MiscUtilsGroup.gint64_from_gstring (0 ms)
[ RUN      ] MiscUtilsGroup.guint32_from_hex_chars
[       OK ] MiscUtilsGroup.guint32_from_hex_chars (0 ms)
[ RUN      ] MiscUtilsGroup.str__split
[       OK ] MiscUtilsGroup.str__split (0 ms)
[ RUN      ] MiscUtilsGroup.gstring_split_to_int
[       OK ] MiscUtilsGroup.gstring_split_to_int (0 ms)
[ RUN      ] MiscUtilsGroup.gstring_split_to_int64
[       OK ] MiscUtilsGroup.gstring_split_to_int64 (0 ms)
[ RUN      ] MiscUtilsGroup.iter_util__startswith
[       OK ] MiscUtilsGroup.iter_util__startswith (5 ms)
[ RUN      ] MiscUtilsGroup.iter_util__startswith_any
[       OK ] MiscUtilsGroup.iter_util__startswith_any (0 ms)
[ RUN      ] MiscUtilsGroup.contains
[       OK ] MiscUtilsGroup.contains (0 ms)
[ RUN      ] MiscUtilsGroup.getFontMisc
[       OK ] MiscUtilsGroup.getFontMisc (0 ms)
[ RUN      ] MiscUtilsGroup.set_rgb24str_from_rgb24int
[       OK ] MiscUtilsGroup.set_rgb24str_from_rgb24int (0 ms)
[ RUN      ] MiscUtilsGroup.get_rgb24int_from_rgb24str
[       OK ] MiscUtilsGroup.get_rgb24int_from_rgb24str (0 ms)
[ RUN      ] MiscUtilsGroup.set_rgb24str_from_str_any
[       OK ] MiscUtilsGroup.set_rgb24str_from_str_any (0 ms)
[ RUN      ] MiscUtilsGroup.get_rgb24int_from_str_any
[       OK ] MiscUtilsGroup.get_rgb24int_from_str_any (0 ms)
[ RUN      ] MiscUtilsGroup.natural_compare
[       OK ] MiscUtilsGroup.natural_compare (0 ms)
[ RUN      ] MiscUtilsGroup.str__startswith
[       OK ] MiscUtilsGroup.str__startswith (0 ms)
[ RUN      ] MiscUtilsGroup.str__startswith_any
[       OK ] MiscUtilsGroup.str__startswith_any (0 ms)
[ RUN      ] MiscUtilsGroup.str__endswith
[       OK ] MiscUtilsGroup.str__endswith (0 ms)
[ RUN      ] MiscUtilsGroup.str__indexOf
[       OK ] MiscUtilsGroup.str__indexOf (0 ms)
[ RUN      ] MiscUtilsGroup.str__xml_escape
[       OK ] MiscUtilsGroup.str__xml_escape (0 ms)
[ RUN      ] MiscUtilsGroup.str__join
[       OK ] MiscUtilsGroup.str__join (0 ms)
[ RUN      ] MiscUtilsGroup.str__join_numbers
[       OK ] MiscUtilsGroup.str__join_numbers (0 ms)
[ RUN      ] MiscUtilsGroup.str__swapcase
[       OK ] MiscUtilsGroup.str__swapcase (0 ms)
[ RUN      ] MiscUtilsGroup.str__repeat
[       OK ] MiscUtilsGroup.str__repeat (0 ms)
[ RUN      ] MiscUtilsGroup.vec_remove
[       OK ] MiscUtilsGroup.vec_remove (0 ms)
[ RUN      ] MiscUtilsGroup.vec_extend
[       OK ] MiscUtilsGroup.vec_extend (0 ms)
[ RUN      ] MiscUtilsGroup.get__uri_type
[       OK ] MiscUtilsGroup.get__uri_type (0 ms)
[ RUN      ] MiscUtilsGroup.mime__type_contains
[       OK ] MiscUtilsGroup.mime__type_contains (0 ms)
[ RUN      ] MiscUtilsGroup.text_file_set_contents_add_cr_on_win
[       OK ] MiscUtilsGroup.text_file_set_contents_add_cr_on_win (0 ms)
[ RUN      ] MiscUtilsGroup.parallel_for
[       OK ] MiscUtilsGroup.parallel_for (89 ms)
[ RUN      ] MiscUtilsGroup.get_link_entry
[       OK ] MiscUtilsGroup.get_link_entry (0 ms)
[ RUN      ] MiscUtilsGroup.get_is_camel_case
[       OK ] MiscUtilsGroup.get_is_camel_case (0 ms)
[----------] 36 tests from MiscUtilsGroup (101 ms total)

[----------] 3 tests from TmpP7zipGroup
[ RUN      ] TmpP7zipGroup.CTTmp_misc
[       OK ] TmpP7zipGroup.CTTmp_misc (0 ms)
[ RUN      ] TmpP7zipGroup.P7zaIfaceMisc
[       OK ] TmpP7zipGroup.P7zaIfaceMisc (259 ms)
[ RUN      ] TmpP7zipGroup.P7zaExtravtWrongPasswd
[       OK ] TmpP7zipGroup.P7zaExtravtWrongPasswd (183 ms)
[----------] 3 tests from TmpP7zipGroup (443 ms total)

[----------] 6 tests from TestTypesGroup
[ RUN      ] TestTypesGroup.ctMaxSizedList
[       OK ] TestTypesGroup.ctMaxSizedList (0 ms)
[ RUN      ] TestTypesGroup.scope_guard
[       OK ] TestTypesGroup.scope_guard (0 ms)
[ RUN      ] TestTypesGroup.ThreadSafeDEQueue_TwoThreadsHandshake
[       OK ] TestTypesGroup.ThreadSafeDEQueue_TwoThreadsHandshake (0 ms)
[ RUN      ] TestTypesGroup.ThreadSafeDEQueue_TwoThreadsPushOneThreadPop
[       OK ] TestTypesGroup.ThreadSafeDEQueue_TwoThreadsPushOneThreadPop (6 ms)
[ RUN      ] TestTypesGroup.ThreadSafeDEQueue_MaxElements
[       OK ] TestTypesGroup.ThreadSafeDEQueue_MaxElements (0 ms)
[ RUN      ] TestTypesGroup.ctScalableTag
[       OK ] TestTypesGroup.ctScalableTag (0 ms)
[----------] 6 tests from TestTypesGroup (6 ms total)

[----------] Global test environment tear-down
[==========] 63 tests from 6 test suites ran. (559 ms total)
[  PASSED  ] 63 tests.
[301/302] Linking CXX executable run_tests_with_x_1
FAILED: run_tests_with_x_1 tests/run_tests_with_x_1[1]_tests.cmake /home/flex/cherrytree-separator/cherrytree/build/tests/run_tests_with_x_1[1]_tests.cmake 
: && /usr/bin/g++ -g -rdynamic tests/CMakeFiles/run_tests_with_x_1.dir/tests_main.cpp.o tests/CMakeFiles/run_tests_with_x_1.dir/tests_exports.cpp.o tests/CMakeFiles/run_tests_with_x_1.dir/__/src/ct/icons.gresource.cc.o -o run_tests_with_x_1  lib/libgtestd.a  lib/libgmockd.a  lib/libgtest_maind.a  src/ct/libcherrytree_shared.a  lib/libgtestd.a  -lpthread  -lgtkmm-3.0  -latkmm-1.6  -lgdkmm-3.0  -lgiomm-2.4  -lgtk-3  -lgdk-3  -lz  -latk-1.0  -lcairo-gobject  -lgio-2.0  -lpangomm-1.4  -lcairomm-1.0  -lpangocairo-1.0  -lpango-1.0  -lharfbuzz  -lcairo  -lgdk_pixbuf-2.0  -lgtksourceviewmm-3.0  -lgtksourceview-3.0  -lgspell-1  -lgtkmm-3.0  -latkmm-1.6  -lgdkmm-3.0  -lgiomm-2.4  -lgtk-3  -lgdk-3  -lz  -latk-1.0  -lcairo-gobject  -lgio-2.0  -lpangomm-1.4  -lcairomm-1.0  -lpangocairo-1.0  -lpango-1.0  -lharfbuzz  -lcairo  -lgdk_pixbuf-2.0  -lgtksourceviewmm-3.0  -lgtksourceview-3.0  -lgspell-1  -lenchant-2  -lxml++-2.6  -lxml2  -lsqlite3  -lcurl  -luchardet  -lpthread  src/7za/lib7za_static.a  -lglibmm-2.4  -lgobject-2.0  -lglib-2.0  -lsigc-2.0  -lfmt  -lspdlog  -lfmt  -lspdlog && cd /home/flex/cherrytree-separator/cherrytree/build/tests && /usr/bin/cmake -D TEST_TARGET=run_tests_with_x_1 -D TEST_EXECUTABLE=/home/flex/cherrytree-separator/cherrytree/build/run_tests_with_x_1 -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/home/flex/cherrytree-separator/cherrytree/build/tests -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES=VS_DEBUGGER_WORKING_DIRECTORY -D TEST_PREFIX= -D TEST_SUFFIX= -D TEST_FILTER= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D TEST_LIST=run_tests_with_x_1_TESTS -D CTEST_FILE=/home/flex/cherrytree-separator/cherrytree/build/tests/run_tests_with_x_1[1]_tests.cmake -D TEST_DISCOVERY_TIMEOUT=5 -D TEST_XML_OUTPUT_DIR= -P /usr/share/cmake/Modules/GoogleTestAddTests.cmake && cd /home/flex/cherrytree-separator/cherrytree/build/tests && /home/flex/cherrytree-separator/cherrytree/build/run_tests_with_x_1
[==========] Running 6 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 6 tests from ExportsTests/ExportsMultipleParametersTests
[ RUN      ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/0
[       OK ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/0 (319 ms)
[ RUN      ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/1
[       OK ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/1 (165 ms)
[ RUN      ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/2
[       OK ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/2 (738 ms)
[ RUN      ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/3
[       OK ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/3 (603 ms)
[ RUN      ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/4
/home/flex/cherrytree-separator/cherrytree/tests/tests_exports.cpp:122: Failure
Expected equality of these values:
  expectHtml.size()
    Which is: 3884
  resultHtml.size()
    Which is: 3986
[  FAILED  ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/4, where GetParam() = ("/home/flex/cherrytree-separator/cherrytree/tests/data_\xD0\xB4\xD0\xB0\xD0\xBD\xD0\xBD\xD1\x8B\xD0\xB5/test_\xD0\xB4\xD0\xBE\xD0\xBA\xD1\x83\xD0\xBC\xD0\xB5\xD0\xBD\xD1\x82.ctb"
    As Text: "/home/flex/cherrytree-separator/cherrytree/tests/data_данные/test_документ.ctb", "--export_to_html_dir") (551 ms)
[ RUN      ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/5
/home/flex/cherrytree-separator/cherrytree/tests/tests_exports.cpp:122: Failure
Expected equality of these values:
  expectHtml.size()
    Which is: 3884
  resultHtml.size()
    Which is: 3986
[  FAILED  ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/5, where GetParam() = ("/home/flex/cherrytree-separator/cherrytree/tests/data_\xD0\xB4\xD0\xB0\xD0\xBD\xD0\xBD\xD1\x8B\xD0\xB5/test_\xD0\xB4\xD0\xBE\xD0\xBA\xD1\x83\xD0\xBC\xD0\xB5\xD0\xBD\xD1\x82.ctd"
    As Text: "/home/flex/cherrytree-separator/cherrytree/tests/data_данные/test_документ.ctd", "--export_to_html_dir") (563 ms)
[----------] 6 tests from ExportsTests/ExportsMultipleParametersTests (2942 ms total)

[----------] Global test environment tear-down
[==========] 6 tests from 1 test suite ran. (2942 ms total)
[  PASSED  ] 4 tests.
[  FAILED  ] 2 tests, listed below:
[  FAILED  ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/4, where GetParam() = ("/home/flex/cherrytree-separator/cherrytree/tests/data_\xD0\xB4\xD0\xB0\xD0\xBD\xD0\xBD\xD1\x8B\xD0\xB5/test_\xD0\xB4\xD0\xBE\xD0\xBA\xD1\x83\xD0\xBC\xD0\xB5\xD0\xBD\xD1\x82.ctb"
    As Text: "/home/flex/cherrytree-separator/cherrytree/tests/data_данные/test_документ.ctb", "--export_to_html_dir")
[  FAILED  ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/5, where GetParam() = ("/home/flex/cherrytree-separator/cherrytree/tests/data_\xD0\xB4\xD0\xB0\xD0\xBD\xD0\xBD\xD1\x8B\xD0\xB5/test_\xD0\xB4\xD0\xBE\xD0\xBA\xD1\x83\xD0\xBC\xD0\xB5\xD0\xBD\xD1\x82.ctd"
    As Text: "/home/flex/cherrytree-separator/cherrytree/tests/data_данные/test_документ.ctd", "--export_to_html_dir")

 2 FAILED TESTS
[302/302] Linking CXX executable run_tests_with_x_2
[==========] Running 16 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 16 tests from ReadWriteTests/ReadWriteMultipleParametersTests
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/0
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/0 (399 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/1
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/1 (283 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/2
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/2 (456 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/3
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/3 (305 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/4
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/4 (292 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/5
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/5 (274 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/6
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/6 (354 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/7
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/7 (284 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/8
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/8 (372 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/9
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/9 (280 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/10
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/10 (334 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/11
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/11 (298 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/12
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/12 (307 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/13
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/13 (338 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/14
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/14 (305 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/15
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/15 (320 ms)
[----------] 16 tests from ReadWriteTests/ReadWriteMultipleParametersTests (5208 ms total)

[----------] Global test environment tear-down
[==========] 16 tests from 1 test suite ran. (5209 ms total)
[  PASSED  ] 16 tests.
ninja: build stopped: subcommand failed.
[flex@inspiron7520 cherrytree]$ 

I'm not sure if I can ignore those failed tests or not?

Anyway I closed down CherryTree and started it up again using the Terminal and thankfully it DOES now remember the position of the TreeExplorer separator when I move it, close down CherryTree and re-open it again!

[flex@inspiron7520 cherrytree]$ ./build/cherrytree
[2022-01-30 13:46:00.987] [   ] [debug] /home/flex/.config/cherrytree/config.cfg parsed
[2022-01-30 13:46:01.078] [   ] [debug] autosave is started
[2022-01-30 13:46:01.231] [   ] [debug] CtMainWin hpanedPos=1430
[2022-01-30 13:46:03.483] [   ] [debug] Node name: Setting up CherryTree
[2022-01-30 13:46:03.628] [   ] [debug] _on_textview_size_allocate hpanedPos=1430
[2022-01-30 13:46:03.677] [   ] [debug] _on_textview_size_allocate hpanedPos=1430
[2022-01-30 13:46:03.694] [   ] [debug] _on_textview_size_allocate hpanedPos=1430
[2022-01-30 13:46:03.734] [   ] [debug] _on_textview_size_allocate hpanedPos=1430
[2022-01-30 13:46:28.850] [   ] [debug] _on_textview_size_allocate hpanedPos=1431
[2022-01-30 13:46:28.881] [   ] [debug] _on_textview_size_allocate hpanedPos=1443
[2022-01-30 13:46:28.908] [   ] [debug] _on_textview_size_allocate hpanedPos=1472
[2022-01-30 13:46:28.932] [   ] [debug] _on_textview_size_allocate hpanedPos=1504
[2022-01-30 13:46:28.958] [   ] [debug] _on_textview_size_allocate hpanedPos=1532
[2022-01-30 13:46:28.994] [   ] [debug] _on_textview_size_allocate hpanedPos=1555
[2022-01-30 13:46:29.009] [   ] [debug] _on_textview_size_allocate hpanedPos=1555
[2022-01-30 13:46:29.028] [   ] [debug] _on_textview_size_allocate hpanedPos=1563
[2022-01-30 13:46:29.045] [   ] [debug] _on_textview_size_allocate hpanedPos=1564
[2022-01-30 13:46:29.064] [   ] [debug] _on_textview_size_allocate hpanedPos=1564
[2022-01-30 13:46:29.382] [   ] [debug] _on_textview_size_allocate hpanedPos=1570
[2022-01-30 13:46:29.414] [   ] [debug] _on_textview_size_allocate hpanedPos=1575
[2022-01-30 13:46:29.433] [   ] [debug] _on_textview_size_allocate hpanedPos=1579
[2022-01-30 13:46:29.465] [   ] [debug] _on_textview_size_allocate hpanedPos=1583
[2022-01-30 13:46:29.484] [   ] [debug] _on_textview_size_allocate hpanedPos=1587
[2022-01-30 13:46:29.515] [   ] [debug] _on_textview_size_allocate hpanedPos=1593
[2022-01-30 13:46:29.534] [   ] [debug] _on_textview_size_allocate hpanedPos=1596
[2022-01-30 13:46:29.564] [   ] [debug] _on_textview_size_allocate hpanedPos=1599
[2022-01-30 13:46:29.598] [   ] [debug] _on_textview_size_allocate hpanedPos=1604
[2022-01-30 13:46:29.614] [   ] [debug] _on_textview_size_allocate hpanedPos=1609
[2022-01-30 13:46:29.648] [   ] [debug] _on_textview_size_allocate hpanedPos=1613
[2022-01-30 13:46:29.697] [   ] [debug] _on_textview_size_allocate hpanedPos=1619
[2022-01-30 13:46:29.714] [   ] [debug] _on_textview_size_allocate hpanedPos=1621
[2022-01-30 13:46:29.734] [   ] [debug] _on_textview_size_allocate hpanedPos=1622
[2022-01-30 13:46:29.749] [   ] [debug] _on_textview_size_allocate hpanedPos=1623
[2022-01-30 13:46:29.798] [   ] [debug] _on_textview_size_allocate hpanedPos=1627
[2022-01-30 13:46:29.815] [   ] [debug] _on_textview_size_allocate hpanedPos=1628
[2022-01-30 13:46:29.831] [   ] [debug] _on_textview_size_allocate hpanedPos=1629
[2022-01-30 13:46:29.865] [   ] [debug] _on_textview_size_allocate hpanedPos=1631
[2022-01-30 13:46:30.069] [   ] [debug] _on_textview_size_allocate hpanedPos=1632
[2022-01-30 13:46:30.096] [   ] [debug] _on_textview_size_allocate hpanedPos=1633
[2022-01-30 13:46:30.135] [   ] [debug] _on_textview_size_allocate hpanedPos=1634
[2022-01-30 13:46:30.198] [   ] [debug] _on_textview_size_allocate hpanedPos=1635
[2022-01-30 13:46:31.413] [   ] [debug] _on_textview_size_allocate hpanedPos=1636
[2022-01-30 13:46:31.691] [   ] [debug] _on_textview_size_allocate hpanedPos=1637
[flex@inspiron7520 cherrytree]$ ./build/cherrytree
[2022-01-30 13:46:44.779] [   ] [debug] /home/flex/.config/cherrytree/config.cfg parsed
[2022-01-30 13:46:44.872] [   ] [debug] autosave is started
[2022-01-30 13:46:45.123] [   ] [debug] CtMainWin hpanedPos=1637
[2022-01-30 13:46:47.410] [   ] [debug] Node name: Setting up CherryTree
[2022-01-30 13:46:47.556] [   ] [debug] _on_textview_size_allocate hpanedPos=1637
[2022-01-30 13:46:47.604] [   ] [debug] _on_textview_size_allocate hpanedPos=1637
[2022-01-30 13:46:47.625] [   ] [debug] _on_textview_size_allocate hpanedPos=1637
[2022-01-30 13:46:47.648] [   ] [debug] _on_textview_size_allocate hpanedPos=1637

Note: Now when CherryTee starts up.. initially for about a second the text area is blank and the tree explorer is empty and sized with small width but then it seems to find my last used document and I guess reads from the config settings and then populates the tree and document area and sizes the tree correctly as it was last time.

I didn't used to have that little delay before it would just open up and immediately present the document I was last working on? But it only happens when the document is saved to my (slow) USB attached network storage drive and not when the document is stored locally on my Manjaro laptop. Still I didn't have that delay before? Maybe this was just my computer that got very slow.. fan was on a lot.

Thanks so much Giuseppe.

Can you confirm if I need to do anything about those two Ninja Build FAILS? Also, will you be moving this fix into the main branch of CherryTree or is there something funny about my setup that probably most people don't have so I should use this custom version going forward?

Cheers,

Flex

ghost commented 2 years ago

I didn't used to have that little delay before it would just open up it only happens when the document is saved to my (slow) USB attached network storage drive and not when the document is stored locally on my Manjaro laptop

You found the explanation yourself: slow USB attached network storage , which explains why you are the only user with this issue. ~/.config/cherrytree/config.cfg should then preferably be stored locally to be correctly used at startup, and not externally on a slow drive.

FlexMcMurphy commented 2 years ago

My CherryTree config file is stored locally. The document I open is stored on that network attached (via Samba Share) USB drive. See the debug output.. it shows where CherryTree is reading the config file from.

@giuspen I think it's something in the code change you made to read the config file that is causing the slight delay I am seeing now... it takes an extra second or two to open the last opened document and resize the TreeExplorer to what it was at before I last closed CherryTree.

I made two tests with the exact same config file (in /home/flex/.config/cherrytree/config.cfg in the local hard drive of my laptop running Manjaro) and the same document I have stored on the USB drive attached to another computer and accessible via Samba share.

Test 1: Using CherryTree 0.99.45 compiled from GitHib main branch using the CherryTree Installation Instructions for Arch. With this version if the Tree Explorer is on the left it remembers the position I last had it at. With the Tree Explorer on the right it does not. In both cases starting up CherryTree loads the last opened document and populates the TreeExplorer without delay

Test 2: Using CherryTree 0.99.45 compiled from GitHib debug_tree_text_separator branch using the CherryTree Installation Instructions for Arch. With this version if the Tree Explorer is on the left OR on the right it remembers the position I last had the TreeExplorer divider at. In both cases starting up CherryTree takes about 2-3 seconds to load up the last opened document and populate the TreeExplorer with divider in the correct position. Before that happens, the document area is blank and so is the TreeExplorer area and the divider is not positioned where it was last time I closed CherryTree.

In both Test 1 and Test 2 I am using the same config file (stored in my local Manjaro filesystem) and the same document stored on the network attached USB drive.

I don't necessarily mind the delay I'm just saying this is new since the changes made in the GitHib debug_tree_text_separator branch.

As mentioned above I'm also curious if I need to do anything about those two Ninja Build FAILS? And if this fix will be moved into the main branch of CherryTree. Or is there anything else I can do to test?

Thank you,

Flex

giuspen commented 2 years ago

@FlexMcMurphy the error you are getting is not relevant to this issue so as long as you can then build and run it's ok. I pushed something new to that branch that I would like you to possibly test, can you run in your existing git repo on the branch debug_tree_text_separator :

git pull
./build.sh
./build/cherrytree

and report if the bug is still fixed?

FlexMcMurphy commented 2 years ago

Hi Giuseppe,

Yes it is still fixed, great news and Thank you!

Regarding the CherryTree startup "delay". I think it is relevant because CherryTree starts up differently in the debug_tree_text_separator branch compared to the main branch.

It is interesting.. to clarify the "delay" I am seeing... Again I only see this issue when starting up CherryTree and it is re-opening a document saved on the USB external drive connected via Samba share...

CherryTree UI from the main branch appears to take a second or two longer to appear... by the time it does the last opened document and Tree Explorer contents I guess have had a bit more time to be already populated.

CherryTree UI from the debug_tree_text_separator branch seems to pop up more quickly and maybe the last opened document and Tree Explorer contents don't have enough time to be populated already before the UI is painted to the screen.

I think it's interesting because whatever code change you made to solve the Tree Explorer issue has changed the speed at which the CherryTree UI is painted... at least in Manjaro. Well at least that's my attempt at explaining what I am seeing. It might be a better design/user experience to stop CherryTree UI from painting until the document and Tree Explorer contents have been read from the ?config file and are ready to display even if that means we have to wait another 1-2 seconds for the CherryTree UI to be visible at "startup".

For the record here is the output from the build process... again I have two build errors in case they are relevant?

[flex@inspiron7520 cherrytree]$ ./build.sh
CMAKE_BUILD_TYPE=Debug
Building on ManjaroLinux 21.2.1
-- CT_VERSION = 0.99.45
Build tests ON, auto run ON
Using fmt, spdlog from: SHARED LIB
+ /home/flex/cherrytree-separator/cherrytree/src/ct/icons.gresource.cc
-- Configuring done
-- Generating done
-- Build files have been written to: /home/flex/cherrytree-separator/cherrytree/build
Starting ninja build with up to 8 parallel jobs...
[69/71] Linking CXX executable run_tests_no_x
[==========] Running 63 tests from 6 test suites.
[----------] Global test environment set-up.
[----------] 1 test from ClipboardGroup
[ RUN      ] ClipboardGroup.ms_clip_convert
[       OK ] ClipboardGroup.ms_clip_convert (0 ms)
[----------] 1 test from ClipboardGroup (0 ms total)

[----------] 1 test from EncodingGroup
[ RUN      ] EncodingGroup.ustring_format
[       OK ] EncodingGroup.ustring_format (0 ms)
[----------] 1 test from EncodingGroup (0 ms total)

[----------] 16 tests from FileSystemGroup
[ RUN      ] FileSystemGroup.path_stem
[       OK ] FileSystemGroup.path_stem (0 ms)
[ RUN      ] FileSystemGroup.path_extension
[       OK ] FileSystemGroup.path_extension (0 ms)
[ RUN      ] FileSystemGroup.get_cherrytree_datadir
[       OK ] FileSystemGroup.get_cherrytree_datadir (0 ms)
[ RUN      ] FileSystemGroup.get_cherrytree_localedir
[       OK ] FileSystemGroup.get_cherrytree_localedir (0 ms)
[ RUN      ] FileSystemGroup.is_regular_file
[       OK ] FileSystemGroup.is_regular_file (8 ms)
[ RUN      ] FileSystemGroup.is_directory
[       OK ] FileSystemGroup.is_directory (0 ms)
[ RUN      ] FileSystemGroup.get_doc_type
[       OK ] FileSystemGroup.get_doc_type (0 ms)
[ RUN      ] FileSystemGroup.get_doc_encrypt
[       OK ] FileSystemGroup.get_doc_encrypt (0 ms)
[ RUN      ] FileSystemGroup.path_is_absolute
[       OK ] FileSystemGroup.path_is_absolute (0 ms)
[ RUN      ] FileSystemGroup.path_parent_path
[       OK ] FileSystemGroup.path_parent_path (0 ms)
[ RUN      ] FileSystemGroup.path_concat
[       OK ] FileSystemGroup.path_concat (0 ms)
[ RUN      ] FileSystemGroup.path_native
[       OK ] FileSystemGroup.path_native (0 ms)
[ RUN      ] FileSystemGroup.path_unix
[       OK ] FileSystemGroup.path_unix (0 ms)
[ RUN      ] FileSystemGroup.remove
[       OK ] FileSystemGroup.remove (2 ms)
[ RUN      ] FileSystemGroup.relative
[       OK ] FileSystemGroup.relative (0 ms)
[ RUN      ] FileSystemGroup.canonicalize_filename
[       OK ] FileSystemGroup.canonicalize_filename (0 ms)
[----------] 16 tests from FileSystemGroup (11 ms total)

[----------] 36 tests from MiscUtilsGroup
[ RUN      ] MiscUtilsGroup.get_encoding
[       OK ] MiscUtilsGroup.get_encoding (0 ms)
[ RUN      ] MiscUtilsGroup.convert_if_not_utf8
[       OK ] MiscUtilsGroup.convert_if_not_utf8 (2 ms)
[ RUN      ] MiscUtilsGroup.is_str_true
[       OK ] MiscUtilsGroup.is_str_true (0 ms)
[ RUN      ] MiscUtilsGroup.str__replace
[       OK ] MiscUtilsGroup.str__replace (0 ms)
[ RUN      ] MiscUtilsGroup.str__trim
[       OK ] MiscUtilsGroup.str__trim (0 ms)
[ RUN      ] MiscUtilsGroup.gint64_from_gstring
[       OK ] MiscUtilsGroup.gint64_from_gstring (0 ms)
[ RUN      ] MiscUtilsGroup.guint32_from_hex_chars
[       OK ] MiscUtilsGroup.guint32_from_hex_chars (0 ms)
[ RUN      ] MiscUtilsGroup.str__split
[       OK ] MiscUtilsGroup.str__split (0 ms)
[ RUN      ] MiscUtilsGroup.gstring_split_to_int
[       OK ] MiscUtilsGroup.gstring_split_to_int (0 ms)
[ RUN      ] MiscUtilsGroup.gstring_split_to_int64
[       OK ] MiscUtilsGroup.gstring_split_to_int64 (0 ms)
[ RUN      ] MiscUtilsGroup.iter_util__startswith
[       OK ] MiscUtilsGroup.iter_util__startswith (7 ms)
[ RUN      ] MiscUtilsGroup.iter_util__startswith_any
[       OK ] MiscUtilsGroup.iter_util__startswith_any (0 ms)
[ RUN      ] MiscUtilsGroup.contains
[       OK ] MiscUtilsGroup.contains (0 ms)
[ RUN      ] MiscUtilsGroup.getFontMisc
[       OK ] MiscUtilsGroup.getFontMisc (0 ms)
[ RUN      ] MiscUtilsGroup.set_rgb24str_from_rgb24int
[       OK ] MiscUtilsGroup.set_rgb24str_from_rgb24int (0 ms)
[ RUN      ] MiscUtilsGroup.get_rgb24int_from_rgb24str
[       OK ] MiscUtilsGroup.get_rgb24int_from_rgb24str (0 ms)
[ RUN      ] MiscUtilsGroup.set_rgb24str_from_str_any
[       OK ] MiscUtilsGroup.set_rgb24str_from_str_any (0 ms)
[ RUN      ] MiscUtilsGroup.get_rgb24int_from_str_any
[       OK ] MiscUtilsGroup.get_rgb24int_from_str_any (0 ms)
[ RUN      ] MiscUtilsGroup.natural_compare
[       OK ] MiscUtilsGroup.natural_compare (0 ms)
[ RUN      ] MiscUtilsGroup.str__startswith
[       OK ] MiscUtilsGroup.str__startswith (0 ms)
[ RUN      ] MiscUtilsGroup.str__startswith_any
[       OK ] MiscUtilsGroup.str__startswith_any (0 ms)
[ RUN      ] MiscUtilsGroup.str__endswith
[       OK ] MiscUtilsGroup.str__endswith (0 ms)
[ RUN      ] MiscUtilsGroup.str__indexOf
[       OK ] MiscUtilsGroup.str__indexOf (0 ms)
[ RUN      ] MiscUtilsGroup.str__xml_escape
[       OK ] MiscUtilsGroup.str__xml_escape (0 ms)
[ RUN      ] MiscUtilsGroup.str__join
[       OK ] MiscUtilsGroup.str__join (0 ms)
[ RUN      ] MiscUtilsGroup.str__join_numbers
[       OK ] MiscUtilsGroup.str__join_numbers (0 ms)
[ RUN      ] MiscUtilsGroup.str__swapcase
[       OK ] MiscUtilsGroup.str__swapcase (0 ms)
[ RUN      ] MiscUtilsGroup.str__repeat
[       OK ] MiscUtilsGroup.str__repeat (0 ms)
[ RUN      ] MiscUtilsGroup.vec_remove
[       OK ] MiscUtilsGroup.vec_remove (0 ms)
[ RUN      ] MiscUtilsGroup.vec_extend
[       OK ] MiscUtilsGroup.vec_extend (0 ms)
[ RUN      ] MiscUtilsGroup.get__uri_type
[       OK ] MiscUtilsGroup.get__uri_type (0 ms)
[ RUN      ] MiscUtilsGroup.mime__type_contains
[       OK ] MiscUtilsGroup.mime__type_contains (1 ms)
[ RUN      ] MiscUtilsGroup.text_file_set_contents_add_cr_on_win
[       OK ] MiscUtilsGroup.text_file_set_contents_add_cr_on_win (3 ms)
[ RUN      ] MiscUtilsGroup.parallel_for
[       OK ] MiscUtilsGroup.parallel_for (85 ms)
[ RUN      ] MiscUtilsGroup.get_link_entry
[       OK ] MiscUtilsGroup.get_link_entry (0 ms)
[ RUN      ] MiscUtilsGroup.get_is_camel_case
[       OK ] MiscUtilsGroup.get_is_camel_case (0 ms)
[----------] 36 tests from MiscUtilsGroup (103 ms total)

[----------] 3 tests from TmpP7zipGroup
[ RUN      ] TmpP7zipGroup.CTTmp_misc
[       OK ] TmpP7zipGroup.CTTmp_misc (0 ms)
[ RUN      ] TmpP7zipGroup.P7zaIfaceMisc
[       OK ] TmpP7zipGroup.P7zaIfaceMisc (271 ms)
[ RUN      ] TmpP7zipGroup.P7zaExtravtWrongPasswd
[       OK ] TmpP7zipGroup.P7zaExtravtWrongPasswd (184 ms)
[----------] 3 tests from TmpP7zipGroup (456 ms total)

[----------] 6 tests from TestTypesGroup
[ RUN      ] TestTypesGroup.ctMaxSizedList
[       OK ] TestTypesGroup.ctMaxSizedList (0 ms)
[ RUN      ] TestTypesGroup.scope_guard
[       OK ] TestTypesGroup.scope_guard (0 ms)
[ RUN      ] TestTypesGroup.ThreadSafeDEQueue_TwoThreadsHandshake
[       OK ] TestTypesGroup.ThreadSafeDEQueue_TwoThreadsHandshake (0 ms)
[ RUN      ] TestTypesGroup.ThreadSafeDEQueue_TwoThreadsPushOneThreadPop
[       OK ] TestTypesGroup.ThreadSafeDEQueue_TwoThreadsPushOneThreadPop (7 ms)
[ RUN      ] TestTypesGroup.ThreadSafeDEQueue_MaxElements
[       OK ] TestTypesGroup.ThreadSafeDEQueue_MaxElements (0 ms)
[ RUN      ] TestTypesGroup.ctScalableTag
[       OK ] TestTypesGroup.ctScalableTag (0 ms)
[----------] 6 tests from TestTypesGroup (7 ms total)

[----------] Global test environment tear-down
[==========] 63 tests from 6 test suites ran. (578 ms total)
[  PASSED  ] 63 tests.
[70/71] Linking CXX executable run_tests_with_x_1
FAILED: run_tests_with_x_1 tests/run_tests_with_x_1[1]_tests.cmake /home/flex/cherrytree-separator/cherrytree/build/tests/run_tests_with_x_1[1]_tests.cmake 
: && /usr/bin/g++ -g -rdynamic tests/CMakeFiles/run_tests_with_x_1.dir/tests_main.cpp.o tests/CMakeFiles/run_tests_with_x_1.dir/tests_exports.cpp.o tests/CMakeFiles/run_tests_with_x_1.dir/__/src/ct/icons.gresource.cc.o -o run_tests_with_x_1  lib/libgtestd.a  lib/libgmockd.a  lib/libgtest_maind.a  src/ct/libcherrytree_shared.a  lib/libgtestd.a  -lpthread  -lgtkmm-3.0  -latkmm-1.6  -lgdkmm-3.0  -lgiomm-2.4  -lgtk-3  -lgdk-3  -lz  -latk-1.0  -lcairo-gobject  -lgio-2.0  -lpangomm-1.4  -lcairomm-1.0  -lpangocairo-1.0  -lpango-1.0  -lharfbuzz  -lcairo  -lgdk_pixbuf-2.0  -lgtksourceviewmm-3.0  -lgtksourceview-3.0  -lgspell-1  -lgtkmm-3.0  -latkmm-1.6  -lgdkmm-3.0  -lgiomm-2.4  -lgtk-3  -lgdk-3  -lz  -latk-1.0  -lcairo-gobject  -lgio-2.0  -lpangomm-1.4  -lcairomm-1.0  -lpangocairo-1.0  -lpango-1.0  -lharfbuzz  -lcairo  -lgdk_pixbuf-2.0  -lgtksourceviewmm-3.0  -lgtksourceview-3.0  -lgspell-1  -lenchant-2  -lxml++-2.6  -lxml2  -lsqlite3  -lcurl  -luchardet  -lpthread  src/7za/lib7za_static.a  -lglibmm-2.4  -lgobject-2.0  -lglib-2.0  -lsigc-2.0  -lfmt  -lspdlog  -lfmt  -lspdlog && cd /home/flex/cherrytree-separator/cherrytree/build/tests && /usr/bin/cmake -D TEST_TARGET=run_tests_with_x_1 -D TEST_EXECUTABLE=/home/flex/cherrytree-separator/cherrytree/build/run_tests_with_x_1 -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/home/flex/cherrytree-separator/cherrytree/build/tests -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES=VS_DEBUGGER_WORKING_DIRECTORY -D TEST_PREFIX= -D TEST_SUFFIX= -D TEST_FILTER= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D TEST_LIST=run_tests_with_x_1_TESTS -D CTEST_FILE=/home/flex/cherrytree-separator/cherrytree/build/tests/run_tests_with_x_1[1]_tests.cmake -D TEST_DISCOVERY_TIMEOUT=5 -D TEST_XML_OUTPUT_DIR= -P /usr/share/cmake/Modules/GoogleTestAddTests.cmake && cd /home/flex/cherrytree-separator/cherrytree/build/tests && /home/flex/cherrytree-separator/cherrytree/build/run_tests_with_x_1
[==========] Running 6 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 6 tests from ExportsTests/ExportsMultipleParametersTests
[ RUN      ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/0
[       OK ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/0 (323 ms)
[ RUN      ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/1
[       OK ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/1 (180 ms)
[ RUN      ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/2
[       OK ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/2 (794 ms)
[ RUN      ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/3
[       OK ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/3 (631 ms)
[ RUN      ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/4
/home/flex/cherrytree-separator/cherrytree/tests/tests_exports.cpp:122: Failure
Expected equality of these values:
  expectHtml.size()
    Which is: 3884
  resultHtml.size()
    Which is: 3986
[  FAILED  ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/4, where GetParam() = ("/home/flex/cherrytree-separator/cherrytree/tests/data_\xD0\xB4\xD0\xB0\xD0\xBD\xD0\xBD\xD1\x8B\xD0\xB5/test_\xD0\xB4\xD0\xBE\xD0\xBA\xD1\x83\xD0\xBC\xD0\xB5\xD0\xBD\xD1\x82.ctb"
    As Text: "/home/flex/cherrytree-separator/cherrytree/tests/data_данные/test_документ.ctb", "--export_to_html_dir") (556 ms)
[ RUN      ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/5
/home/flex/cherrytree-separator/cherrytree/tests/tests_exports.cpp:122: Failure
Expected equality of these values:
  expectHtml.size()
    Which is: 3884
  resultHtml.size()
    Which is: 3986
[  FAILED  ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/5, where GetParam() = ("/home/flex/cherrytree-separator/cherrytree/tests/data_\xD0\xB4\xD0\xB0\xD0\xBD\xD0\xBD\xD1\x8B\xD0\xB5/test_\xD0\xB4\xD0\xBE\xD0\xBA\xD1\x83\xD0\xBC\xD0\xB5\xD0\xBD\xD1\x82.ctd"
    As Text: "/home/flex/cherrytree-separator/cherrytree/tests/data_данные/test_документ.ctd", "--export_to_html_dir") (581 ms)
[----------] 6 tests from ExportsTests/ExportsMultipleParametersTests (3068 ms total)

[----------] Global test environment tear-down
[==========] 6 tests from 1 test suite ran. (3068 ms total)
[  PASSED  ] 4 tests.
[  FAILED  ] 2 tests, listed below:
[  FAILED  ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/4, where GetParam() = ("/home/flex/cherrytree-separator/cherrytree/tests/data_\xD0\xB4\xD0\xB0\xD0\xBD\xD0\xBD\xD1\x8B\xD0\xB5/test_\xD0\xB4\xD0\xBE\xD0\xBA\xD1\x83\xD0\xBC\xD0\xB5\xD0\xBD\xD1\x82.ctb"
    As Text: "/home/flex/cherrytree-separator/cherrytree/tests/data_данные/test_документ.ctb", "--export_to_html_dir")
[  FAILED  ] ExportsTests/ExportsMultipleParametersTests.ChecksExports/5, where GetParam() = ("/home/flex/cherrytree-separator/cherrytree/tests/data_\xD0\xB4\xD0\xB0\xD0\xBD\xD0\xBD\xD1\x8B\xD0\xB5/test_\xD0\xB4\xD0\xBE\xD0\xBA\xD1\x83\xD0\xBC\xD0\xB5\xD0\xBD\xD1\x82.ctd"
    As Text: "/home/flex/cherrytree-separator/cherrytree/tests/data_данные/test_документ.ctd", "--export_to_html_dir")

 2 FAILED TESTS
[71/71] Linking CXX executable run_tests_with_x_2
[==========] Running 16 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 16 tests from ReadWriteTests/ReadWriteMultipleParametersTests
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/0
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/0 (391 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/1
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/1 (284 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/2
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/2 (502 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/3
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/3 (286 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/4
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/4 (292 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/5
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/5 (303 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/6
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/6 (321 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/7
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/7 (306 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/8
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/8 (399 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/9
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/9 (322 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/10
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/10 (322 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/11
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/11 (323 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/12
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/12 (342 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/13
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/13 (319 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/14
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/14 (333 ms)
[ RUN      ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/15
[       OK ] ReadWriteTests/ReadWriteMultipleParametersTests.ChecksReadWrite/15 (365 ms)
[----------] 16 tests from ReadWriteTests/ReadWriteMultipleParametersTests (5420 ms total)

[----------] Global test environment tear-down
[==========] 16 tests from 1 test suite ran. (5420 ms total)
[  PASSED  ] 16 tests.
ninja: build stopped: subcommand failed.
[flex@inspiron7520 cherrytree]$

Thank you so much for your time and effort with CherryTree Giuseppe. You helped me switch from Windows to Linux as my daily driver OS since I was previously tied to MS Office OneNote for note taking.

Cheers,

Flex

giuspen commented 2 years ago

Thanks, it is now on master and will be in 0.99.46