Hi,
somewhere between BaseX 9 and 10 there was a change in the behaviour of the Find/XQuery window (which I use quite a lot for quick access to data):
* with 9.5, I can enter any valid XPath, and then delete it for a fresh start with another expression... * with 10.3, whenever I do the following: * place the cursor in the XQuery window * hit Strg-A to mark the line so I can start with a new query * enter a slash to my XPath, it jumps back to a random entry in the history, and does appends my slash to that entry. This does not make sense to me at all.
Is this a feature or a bug? Am I using it wrong? I find it quite irritating, because it takes away the possibility to fire a quick XPath (as a valid XQuery expression) on the currently opened database without having to open a fresh query tab.
Sorry if i am missing something obvious.
Thanks, Daniel
Hi Daniel,
I tried to reproduce the behavior:
- place the cursor in the XQuery window
Just to be sure: You are pointing to the (as we call it) input bar, containing the dropdown menu for the input mode and the text field, right [1]?
- hit Strg-A to mark the line so I can start with a new query
And just a note: When placing the cursor in this field, previously entered should automatically be highlighted. Maybe that depends on the OS, I’m not sure.
- enter a slash to my XPath, it jumps back to a random entry in the history, and does appends my slash to that entry. This does not make sense to me at all.
That doesn’t sounds reasonable. It seems to work on my system, though, and I cannot remember something has been changed.
Does it also happen with BaseX 9.7.3 or BaseX 10.0? Which OS and Java version are you using?
Thanks in advance Christian
[1] https://docs.basex.org/wiki/Graphical_User_Interface#Input_Bar
Just to be sure: You are pointing to the (as we call it) input bar, containing the dropdown menu for the input mode and the text field, right [1]?
right
- hit Strg-A to mark the line so I can start with a new query
And just a note: When placing the cursor in this field, previously entered should automatically be highlighted. Maybe that depends on the OS, I’m not sure.
ah yes, it is automatically highlighted directly after placing the cursor - no problem there. It is NOT highlighted when the cursor is still in place and I click again (at least on Windows). Sorry I was not specific about this - and not really a problem here.
- enter a slash to my XPath, it jumps back to a random entry in the history, and does appends my slash to that entry. This does not make sense to me at all.
That doesn’t sounds reasonable. It seems to work on my system, though, and I cannot remember something has been changed.
Thanks for the feedback. Now this is strange, I just restarted my GUI and the problem vanishes :-o (Usually the GUI will remain open for several days on my machine so I do not restart very often) Seems I have to look closer on what causes this behaviour. Glad to know it is not intended, though. I hope I can reproduce this soon.
Maybe I accidentally hit some shortcut to prompt this behaviour? It is strange, because it happens so often I thought this had changed. I am on Windows 10 with Java 19.0.1 (plus JTattoo-1.6.13)- this might be some odd Windows thing I accidentally trigger regularly, it seems. For the moment, I just cannot tell how.
Thanks, Daniel
basex-talk@mailman.uni-konstanz.de