I am editing C programs with about 2,000 LOC. There seems to be an intermittent past corruption error. It may happen on "Find and Replace" or "Copy" (Ctrl-C) and then "Paste" (Ctrl-V) elsewhere.
The corrupting text seems to be randomly sprayed in a few places. I find out it happened when I attempt to recompile my code and gcc complains. The corrupting text can land in comments, blank lines, in varaible names, you name it.
So now, if I am pasting anything, I save the file, end Geany, and bring it back up.
I am running on a Raspberry Pi 3B+, Raspbian OS. The only package I believe I downloaded is gcc. The Geany version is "Gorgon", (built on or after 2018-04-16). I am not aware of having any Geany plugins.
The editor is great and works 95% of the time. I just keep hitting the corruption errors if I stay in it too long.
Any help is appreciated.
This is a recorded message, please always provide the version of Geany, Glib and GTK and the operating system and version you are using (see lines near the top of Help->Debug Messages).
I too keep hitting this bug on a Gigabit NUC i3, 4GB RAM and also on a Fujitsu laptop i3, 4GB, both with xubuntu 20.04, when editing perl files of about 500 lines. The files can be on local storage or a NAS. I did think it was misbehaving with pastes (^V) but yesterday I had this:
Load Chrome and do a google search. geany autobackup.pl I ONLY selected a position in the file, deleted 4 characters and then saved ^s and quit ^q. The perl compiler then glitched because there were 4 or 5 copies of the google search text sprinkled throughout the code. I think this exonerates the paste operation and I think hardware too. I have tried to see whether the load or the save is the culprit but unfortunately, reproducing the fault is difficult. Here is some diagnostic infofrom the laptop but if more is needed please ask. Phil
phil@phil-LIFEBOOK-AH532:~$ uname -srvmio Linux 5.15.0-41-generic #44~20.04.1-Ubuntu SMP Fri Jun 24 13:27:29 UTC 2022 x86_64 x86_64 GNU/Linux
phil@phil-LIFEBOOK-AH532:~$ geany -V geany 1.36 (built on 2020-03-22 with GTK 3.24.14, GLib 2.64.1)
phil@phil-LIFEBOOK-AH532:~$ geany -v Geany-INFO: 18:49:45.238: Geany 1.36, en_GB.UTF-8 Geany-INFO: 18:49:45.238: GTK 3.24.20, GLib 2.64.6 Geany-INFO: 18:49:45.238: System data dir: /usr/share/geany Geany-INFO: 18:49:45.238: User config dir: /home/phil/.config/geany (geany:1857): GLib-GIO-DEBUG: 18:49:45.249: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’ Geany-INFO: 18:49:45.469: Loaded GTK+ CSS theme '/usr/share/geany/geany.css' Geany-INFO: 18:49:45.470: Loaded GTK+ CSS theme '/usr/share/geany/geany-3.20.css' Geany-INFO: 18:49:45.477: System plugin path: /usr/lib/x86_64-linux-gnu/geany Geany-INFO: 18:49:45.489: Added filetype Scala (61). Geany-INFO: 18:49:45.489: Added filetype CUDA (62). Geany-INFO: 18:49:45.489: Added filetype Swift (63). Geany-INFO: 18:49:45.489: Added filetype Graphviz (64). Geany-INFO: 18:49:45.489: Added filetype Groovy (65). Geany-INFO: 18:49:45.489: Added filetype Nim (66). Geany-INFO: 18:49:45.489: Added filetype Clojure (67). Geany-INFO: 18:49:45.489: Added filetype Cython (68). Geany-INFO: 18:49:45.489: Added filetype Genie (69). Geany-INFO: 18:49:45.489: Added filetype JSON (70). Geany-INFO: 18:49:45.489: Added filetype TypeScript (71). Geany-INFO: 18:49:45.489: Added filetype Arduino (72). Geany-INFO: 18:49:45.489: Added filetype Kotlin (73). Geany-INFO: 18:49:45.507: Loaded libvte from libvte-2.91.so.0 Geany-INFO: 18:49:45.565: /home/phil/geanybug/autobackup.pl : Perl (UTF-8) Geany-INFO: 18:49:48.322: Quitting...
phil@phil-LIFEBOOK-AH532:~$ cat /home/phil/.config/geany/geany.conf [geany] default_open_path= cmdline_new_files=true notebook_double_click_hides_widgets=false tab_close_switch_to_mru=false tab_pos_sidebar=2 sidebar_pos=0 symbols_sort_mode=0 msgwin_orientation=1 highlighting_invert_all=false pref_main_search_use_current_word=true check_detect_indent=false detect_indent_width=false use_tab_to_indent=true pref_editor_tab_width=4 indent_mode=2 indent_type=1 virtualspace=1 autocomplete_doc_words=false completion_drops_rest_of_word=false autocompletion_max_entries=30 autocompletion_update_freq=250 color_scheme= scroll_lines_around_cursor=0 mru_length=10 disk_check_timeout=30 show_editor_scrollbars=true brace_match_ltgt=false use_gtk_word_boundaries=true complete_snippets_whilst_editing=false indent_hard_tab_width=8 editor_ime_interaction=0 use_atomic_file_saving=false gio_unsafe_save_backup=false use_gio_unsafe_file_saving=true keep_edit_history_on_reload=true show_keep_edit_history_on_reload_msg=true reload_clean_doc_on_file_change=false extract_filetype_regex=-\*-\s*([^\s]+)\s*-\*- allow_always_save=false find_selection_type=0 replace_and_find_by_default=true show_symbol_list_expanders=true compiler_tab_autoscroll=true statusbar_template=line: %l / %L col: %c sel: %s %w %t %mmode: %M encoding: %e filetype: %f scope: %S new_document_after_close=false msgwin_status_visible=true msgwin_compiler_visible=true msgwin_messages_visible=true msgwin_scribble_visible=true documents_show_paths=true sidebar_page=0 pref_main_load_session=true pref_main_project_session=true pref_main_project_file_in_basedir=false pref_main_save_winpos=true pref_main_save_wingeom=true pref_main_confirm_exit=false pref_main_suppress_status_messages=false switch_msgwin_pages=false beep_on_errors=true auto_focus=false sidebar_symbol_visible=true sidebar_openfiles_visible=true editor_font=Monospace 10 tagbar_font=Sans 9 msgwin_font=Monospace 9 show_notebook_tabs=true show_tab_cross=true tab_order_ltr=true tab_order_beside=false tab_pos_editor=2 tab_pos_msgwin=0 use_native_windows_dialogs=false show_indent_guide=false show_white_space=false show_line_endings=false show_markers_margin=true show_linenumber_margin=true long_line_enabled=true long_line_type=0 long_line_column=72 long_line_color=#C2EBC2 symbolcompletion_max_height=10 symbolcompletion_min_chars=4 use_folding=true unfold_all_children=false use_indicators=true line_wrapping=false auto_close_xml_tags=true complete_snippets=true auto_complete_symbols=true pref_editor_disable_dnd=false pref_editor_smart_home_key=true pref_editor_newline_strip=false line_break_column=72 auto_continue_multiline=true comment_toggle_mark=~ scroll_stop_at_last_line=true autoclose_chars=0 pref_editor_default_new_encoding=UTF-8 pref_editor_default_open_encoding=none default_eol_character=2 pref_editor_new_line=true pref_editor_ensure_convert_line_endings=false pref_editor_replace_tabs=false pref_editor_trail_space=false pref_toolbar_show=true pref_toolbar_append_to_menu=false pref_toolbar_use_gtk_default_style=true pref_toolbar_use_gtk_default_icon=true pref_toolbar_icon_style=0 pref_toolbar_icon_size=0 pref_template_developer=phil pref_template_company= pref_template_mail=phil@phil-LIFEBOOK-AH532 pref_template_initial=p pref_template_version=1.0 pref_template_year=%Y pref_template_date=%Y-%m-%d pref_template_datetime=%d.%m.%Y %H:%M:%S %Z context_action_cmd= sidebar_visible=true statusbar_visible=true msgwindow_visible=true fullscreen=false scribble_text=Type here what you want, use it as a notice/scratch board scribble_pos=57 treeview_position=156 msgwindow_position=611 geometry=0;25;1366;719;1; custom_date_format=
[build-menu] number_ft_menu_items=0 number_non_ft_menu_items=0 number_exec_menu_items=0
[search] pref_search_hide_find_dialog=false pref_search_always_wrap=false pref_search_current_file_dir=true find_all_expanded=false replace_all_expanded=false position_find_x=561 position_find_y=455 position_replace_x=417 position_replace_y=286 position_fif_x=-1 position_fif_y=-1 fif_regexp=false fif_case_sensitive=true fif_match_whole_word=false fif_invert_results=false fif_recursive=false fif_extra_options= fif_use_extra_options=false fif_files= fif_files_mode=0 find_regexp=false find_regexp_multiline=false find_case_sensitive=false find_escape_sequences=false find_match_whole_word=false find_match_word_start=false find_close_dialog=true replace_regexp=false replace_regexp_multiline=false replace_case_sensitive=false replace_escape_sequences=false replace_match_whole_word=false replace_match_word_start=false replace_search_backwards=false replace_close_dialog=true
[plugins] load_plugins=true custom_plugin_path= active_plugins=;
[VTE] send_cmd_prefix= send_selection_unsafe=false load_vte=true font=Monospace 10 scroll_on_key=true scroll_on_out=true enable_bash_keys=true ignore_menu_bar_accel=false follow_path=false run_in_vte=false skip_run_script=false cursor_blinks=false scrollback_lines=500 shell=/bin/bash colour_fore=#FFFFFF colour_back=#000000 last_dir=/home/phil
[tools] terminal_cmd=x-terminal-emulator -e "/bin/sh %c" browser_cmd=sensible-browser grep_cmd=grep
[printing] print_cmd=lpr '%f' use_gtk_printing=true print_line_numbers=true print_page_numbers=true print_page_header=true page_header_basename=false page_header_datefmt=%c
[project] session_file= project_file_path=/home/phil/projects
[files] recent_files=/home/phil/geanybug/report;/home/phil/geanybug/autobackup.pl;/home/phil/newapi/scan_database.pm;/home/phil/newapi/apicommebt;/home/phil/forum;/home/phil/recfilm/film.pl;/home/phil/remotetrigger/dst.pl;/etc/perl/scan_database.pm;/home/phil/newapi/wikibit;/home/phil/newapi/chedit2.pl; recent_projects= current_page=1 FILE_NAME_0=211;Perl;0;EUTF-8;1;1;0;%2Fhome%2Fphil%2Fgeanybug%2Fautobackup.pl;0;4 FILE_NAME_1=1827;None;0;EUTF-8;1;1;0;%2Fhome%2Fphil%2Fgeanybug%2Freport;0;4
@PBrady43 please try with a current Geany version, 1.36 is very old.
github-comments@lists.geany.org