1. WEE gets files mixed up
- Posted by dcuny Jan 28, 2015
- 1779 views
I've got a use case where WEE displays the wrong file in a tab. Here's how it can be reproduced:
- Open WEE and save the following file as buggy.exw:
include std\error.e crash("Bogus", {})
- Press F5 to run the program. It will crash, and display a trace.
- Press Enter to close the console window.
- WEE opens a Goto Error dialog offering to open error.e. Choose "Yes".
- WEE opens error.e, and displays the error "Bogus" in a Goto Error dialog . Choose "OK" to dismiss the dialog.
- Now two files are open: buggy.exw and error.e.
- Open ex.err (to see the actual error), so now three files are open: main.exw, error.e and ex.err.
- Go to buggy.exw, and press F5 to run it again. It will crash, displaying a trace.
- Press Enter to close the console window.
- WEE will display the message "Bogus" in the Goto Error dialog. Choose "OK" to dismiss the dialog.
- WEE notices that ex.err has changed, and offers to reload it. Choose "Yes".
- Click the tab for error.e. Note the contents are actually those for ex.err.
Thanks!
- David
2. Re: WEE gets files mixed up
- Posted by PeteE Jan 28, 2015
- 1838 views
Thanks David.
Quick fix: in WEE.EXW, global procedure check_externally_modified_tabs(), change:
ui_select_tab(i)
to:
select_tab(i)
I hope you didn't lose anything. Did I mention there's no warranty?
3. Re: WEE gets files mixed up
- Posted by dcuny Jan 28, 2015
- 1718 views
Thanks! No data loss, I just closed the tabs that were obviously wrong and reloaded.
I'm treating this as alpha software. Really useful alpha software.
I'm just happy I was able to find a way to duplicate the bug so you could track it down.
- David
4. Re: WEE gets files mixed up
- Posted by dcuny Jan 29, 2015
- 1980 views
Yep, that solved it!
Thanks again!
- David