Open sanikolaev opened 1 year ago
@sanikolaev I reproduced it, but if I install plugin locally from source, it works, can you help me find the problem? I don't know what happens after installing the plugin via
create plugin utfcube/buddy-plugin-update-text type 'buddy' version 'dev-main';
In buddy logs I got
[BUDDY] New connection from tcp://127.0.0.1:60356
[BUDDY] [8_2270883554] request data: {"type":"unknown sql request","error":"P01: syntax error, unexpected identifier, expecting VARIABLES near 'buddy plugins'","version":1,"user":"root","message":{"path_query":"","body":"show buddy plugins"}}
[BUDDY] [8_2270883554] Plugin: Plugin
[BUDDY] metric: add ["plugin",1]
[BUDDY] [8_2270883554] Plugin payload:
[BUDDY] [8_2270883554] response data: {"version":1,"type":"sql response","message":[{"total":13,"error":"","warning":"","columns":[{"Package":{"type":"string"}},{"Plugin":{"type":"string"}},{"Version":{"type":"string"}},{"Type":{"type":"string"}}],"data":[{"Package":"manticoresoftware\/buddy-plugin-empty-string","Plugin":"empty-string","Version":"dev-main","Type":"core"},{"Package":"manticoresoftware\/buddy-plugin-backup","Plugin":"backup","Version":"dev-main","Type":"core"},{"Package":"manticoresoftware\/buddy-plugin-emulate-elastic","Plugin":"emulate-elastic","Version":"dev-main","Type":"core"},{"Package":"manticoresoftware\/buddy-plugin-insert","Plugin":"insert","Version":"dev-main","Type":"core"},{"Package":"manticoresoftware\/buddy-plugin-lock-tables","Plugin":"lock-tables","Version":"dev-main","Type":"core"},{"Package":"manticoresoftware\/buddy-plugin-unlock-tables","Plugin":"unlock-tables","Version":"dev-main","Type":"core"},{"Package":"manticoresoftware\/budd
[BUDDY] [8_2270883554] process time: 13082µs
btw how can I delete plugin after install it via CREATE command? This doesn't work:
DROP PLUGIN utfcube/buddy-plugin-update-text type 'buddy';
if I install plugin locally from source, it works, can you help me find the problem?
Calling @donhardman
btw how can I delete plugin after install it via CREATE command? This doesn't work:
Please try this:
btw how can I delete plugin after install it via CREATE command? This doesn't work:
Please try this:
it works, thanks
We have special bin tools that are already available in this GitHub repository. I highly recommend using them to validate the code.
bin/codestyle
– Validates adherence to our style guide; for external plugins, it's optional but recommended.bin/codeanalyze
– An important validator that uses PHPStan to check for various errors (I manually checked the code, and this tool will likely show things that are crucial to fix first).bin/codestyle-fix
– A small helper to fix issues from 1.It's also possible to install all of these on git commit
as a hook by using pre-commit install
.
All these tools are installed into CI, so you can view the results of their executions here – https://github.com/UtfCube/buddy-plugin-update-text/actions
The most important one is codeanalyze, which can show critical errors in the code.
if I install plugin locally from source, it works, can you help me find the problem?
Perhaps caused by a dependency in the plugin and may be an issue in Buddy itself. We'll look into that.
@sanikolaev did something clear up?
if I install plugin locally from source, it works, can you help me find the problem?
Perhaps caused by a dependency in the plugin and may be an issue in Buddy itself. We'll look into that.
@UtfCube we are still working on improving it.
@UtfCube we are still working on improving it.
Thanks, i really appreciate it
Hello.
We have resolved the issue in the latest version, and it is available to try from the repositories. You can find the pull request here: https://github.com/manticoresoftware/manticoresearch-buddy/pull/142
We are currently working on the final touches, and it will likely be merged into the main branch soon.
Please test this version of the code and let us know if it works or not.
I can't reproduce the issue with the new version anymore.
@UtfCube Hi
Please test this version of the code and let us know if it works or not
Is there any news on this?
update t set f='def' where id = 1
fails like this:How to reproduce:
Install the plugin:
Make sure the plugin is installed:
Then execute the above.