Nick Treleaven wrote:
On 08/11/06 05:08:44, Rowan Lewis wrote:
Nick Treleaven wrote:
On 05/11/06 00:31:58, Rowan Lewis wrote:
Right! 30 seconds after posting the last bug, I noticed this: When "Load files from the last session" is enabled, and you close geany then open it again, the files from the last session are not open.
First of all Geany only loads the last session for the first instance of Geany, because for more than one instance there is usually no need to have the same files open in each instance.
IME, the session loading works fine, except if one file is unsaved when quitting and Cancel is chosen; then some files may have been closed and only the remaining open files will be loaded at next startup. I guess this could be improved to check modifications for all files before closing all at once.
I'm guessing it's one of these things that you experienced - so can you give more information to reproduce this - e.g. what you did from starting just one instance of Geany until closing it.
Regards, Nick _______________________________________________ Geany mailing list Geany@uvena.de http://uvena.de/cgi-bin/mailman/listinfo/geany
Ok, this is a pretty clear bug, what I did:
- Opened geany (the first instance).
- Opened a file and edited it, saved.
- Closed geany and opened it again.
The file/files I'd previously been working on where not re-opened. I also looked at the output in the console, only a few notices:
rowan@pixelcarnage:~$ geany geany: /home/rowan/mono/lib/libpng12.so.0: no version information available (required by /usr/lib/libcairo.so.2) ** INFO: debug mode built in (can't be disabled) ** INFO: GTK+ runtime version: 2.8.20 ** INFO: /home/rowan/Projects/Unuke/Working/Unuke/Apps/Discussions/Discussions.fe : Ferite (UTF-8) ** INFO: /home/rowan/Projects/Unuke/Working/Unuke/Apps/Discussions/Discussions.fe : Ferite (UTF-8) ** INFO: Quitting... rowan@pixelcarnage:~$ geany: /home/rowan/mono/lib/libpng12.so.0: no version information available (required by /usr/lib/libcairo.so.2) ** INFO: debug mode built in (can't be disabled) ** INFO: GTK+ runtime version: 2.8.20 ** INFO: Quitting... rowan@pixelcarnage:~$
OK, could you send your ~/.geany/geany.conf please? It may help with debugging.
A few other questions, to try to nail down the problem: When opening files, do you mean from the open dialog? Does opening files from the command-line open files in an existing first instance of Geany? (i.e. does the socket code work?) Also what distro/OS are you running Geany on? Does the session restoring work for different files/at all?
Also, I made the changes to check modifications for all files before closing all at once when quitting, and removed a filename limit of ~256 chars (but this might not affect your problem with session loading).
Regards, Nick _______________________________________________ Geany mailing list Geany@uvena.de http://uvena.de/cgi-bin/mailman/listinfo/geany
Right, first the questions:
1. Either from the open dialog or recent files menu. 2. Yep, opening from the command line opens in the first instance. 3. Running on Ubuntu 6.06 in Gnome. 4. It doesn't work for any of the files that I've edited. 5. None of the files I've worked on have a path over 256 characters.
I've attatched the config file, hope it helps.
Thanks, Rowan Lewis.
#geany configuration file, edit as you need [geany] treeview_position=156 msgwindow_position=453 mru_length=10 long_line_type=0 tab_pos_editor=2 tab_pos_msgwin=0 tab_pos_sidebar=2 autocompletion_max_height=10 long_line_column=72 long_line_color=#C2EBC2 beep_on_errors=true sidebar_symbol_visible=true sidebar_openfiles_visible=true sidebar_visible=false msgwindow_visible=false use_folding=false use_auto_indention=true use_indicators=true show_indent_guide=false show_white_space=false show_markers_margin=true show_linenumber_margin=true line_breaking=false show_line_endings=false fullscreen=false tab_order_ltr=false show_notebook_tabs=true brace_match_ltgt=false switch_msgwin_pages=false auto_close_xml_tags=true auto_complete_constructs=true custom_date_format= editor_font=Monospace 10 tagbar_font=Sans 9 msgwin_font=Sans 9 scribble_text=Type here what you want, use it as a notice/scratch board geometry=0;24;1024;719; pref_editor_tab_width=4 pref_main_confirm_exit=true pref_main_load_session=true pref_main_save_winpos=true pref_toolbar_show=true pref_toolbar_show_search=true pref_toolbar_show_goto=true pref_toolbar_show_zoom=false pref_toolbar_show_undo=false pref_toolbar_show_compile=true pref_toolbar_show_colour=true pref_toolbar_show_fileops=true pref_toolbar_show_quit=true pref_toolbar_icon_style=0 pref_toolbar_icon_size=3 pref_editor_new_line=true pref_editor_replace_tabs=false pref_editor_trail_space=false pref_editor_default_encoding=UTF-8 pref_template_developer=Rowan Lewis pref_template_company= pref_template_mail=rowan@pixelcarnage pref_template_initial=RL pref_template_version=1.0 [VTE] load_vte=true emulation=xterm font=Monospace 10 scroll_on_key=true scroll_on_out=true ignore_menu_bar_accel=false follow_path=false scrollback_lines=500 shell=/bin/bash colour_fore=#FFFFFF colour_back=#000000 last_dir=/home/rowan [tools] make_cmd=/usr/bin/make term_cmd=/usr/bin/xterm browser_cmd=/usr/bin/mozilla print_cmd=/usr/bin/lpr %f grep_cmd=/bin/grep [files] recent_files=/home/rowan/Dump/bench.fe;/home/rowan/Projects/Unuke/Working/Unuke/Hands/Node.fe;/home/rowan/Projects/Unuke/Working/Unuke/Apps/Pastes/Nodes/Paste.fe;/home/rowan/Projects/Unuke/Working/Unuke/Hands/Server.fe;/home/rowan/Projects/Unuke/Working/Unuke/Hands/View.fe;/home/rowan/Projects/Unuke/Working/Unuke/Views/Participate.xsl;/home/rowan/Projects/Unuke/Working/Unuke/Apps/Member/Nodes/Member.fe;/home/rowan/Projects/Unuke/Working/Unuke/Apps/Discussions/Nodes/Discussion.fe;/home/rowan/Projects/Unuke/Working/Unuke/Apps/Discussions/Nodes/Comment.fe;/home/rowan/Projects/Unuke/Working/Discussions.Administrate.fe;