Hi,
while I am trying to find my way around the Unit Module, I noticed the following unexpected behavior.
0. Using the test example from https://docs.basex.org/wiki/Unit_Module#Query in the GUI 1. changes that are not saved to disk do not get respected - as opposed to other queries 2. pressing the default button for running queries executes the most recent query which is open in another tab
While 1 might not be a bug , 2 feels like one (a query fires that is not displayed on the current tab)
BaseX 10.3
Bye, Daniel
Sorry, Daniel, I overlooked your questions:
- changes that are not saved to disk do not get respected - as opposed to other queries
True, this feels confusing. Maybe it would be better to disable the test icon if the current file has not been saved?
If you prefer to, you can enable the option »Save before executing files« in the Preferences Dialog. This way, opened files will automatically be saved before a query is run.
- pressing the default button for running queries executes the most recent query which is open in another tab
This is actually meant to be a feature: If lots of library modules are opened in the editor, it can save a lot of time if you can execute the main module that has been executed most recently.
Best, Christian
- changes that are not saved to disk do not get respected - as
opposed to other queries
True, this feels confusing. Maybe it would be better to disable the test icon if the current file has not been saved?
Yes that would be less confusing (to me).
If you prefer to, you can enable the option »Save before executing files« in the Preferences Dialog. This way, opened files will automatically be saved before a query is run.
Thanks, I did not know that.
- pressing the default button for running queries executes the most
recent query which is open in another tab
This is actually meant to be a feature: If lots of library modules are opened in the editor, it can save a lot of time if you can execute the main module that has been executed most recently.
Ah - I can see the value - I always thought there is no other context for the play button than the current tab.
Thanks, Daniel
basex-talk@mailman.uni-konstanz.de