We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.59.4
macOS
Server access only
macOS Monterey 12.6.3
A race condition exists in the SQL console, between changes being pushed to the backend, and the request for a query to be executed.
This mostly happens when I am actively modifying the query and then quickly press Ctrl+Enter. In the screenshots below, I:
SELECT ''
asd
''
'asd'
Looking at the request timeline in developer tools, it is clear the race condition is present:
No response
The text was updated successfully, but these errors were encountered:
A quick look at the code suggests the Entrypoints:runActiveNoteCommand function is where a change should be made:
Entrypoints:runActiveNoteCommand
trilium/src/public/app/components/entrypoints.js
Lines 170 to 173 in 6f16b4c
By forcing another save using a command like this:
trilium/src/public/app/widgets/note_detail.js
Line 86 in 6f16b4c
But I'm not sure about the cleanest way of doing it.
Sorry, something went wrong.
fix race condition between script execution and saving, closes #4028
74400da
fixed
No branches or pull requests
Trilium Version
0.59.4
What operating system are you using?
macOS
What is your setup?
Server access only
Operating System Version
macOS Monterey 12.6.3
Description
A race condition exists in the SQL console, between changes being pushed to the backend, and the request for a query to be executed.
This mostly happens when I am actively modifying the query and then quickly press Ctrl+Enter. In the screenshots below, I:
SELECT ''
and wait for the note to be savedasd
into the single quotes, and then quickly press Ctrl+Enter''
and not'asd'
as expected.Looking at the request timeline in developer tools, it is clear the race condition is present:
Error logs
No response
The text was updated successfully, but these errors were encountered: