Skip to content
New issue

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

Race condition in plugin_manager install/uninstall handling #65

Open
Guldoman opened this issue Jan 26, 2024 · 0 comments
Open

Race condition in plugin_manager install/uninstall handling #65

Guldoman opened this issue Jan 26, 2024 · 0 comments

Comments

@Guldoman
Copy link
Member

Is some cases it's possible to get an error like:

Fri Jan 26 23:55:17 2024 [ERROR] error running .../.config/lite-xl/lpm/bottles/bb3ede91839ca81b555fa2338de14fb3d7ec12ad9512d1155f0ec5e2a3c5770d/user/plugins/plugin_manager/lpm.x86_64-linux uninstall cold_lime --json --mod-version=3 --quiet --progress --userdir=.../.config/lite-xl/lpm/bottles/bb3ede91839ca81b555fa2338de14fb3d7ec12ad9512d1155f0ec5e2a3c5770d/user --datadir=.../.config/lite-xl/lpm/bottles/bb3ede91839ca81b555fa2338de14fb3d7ec12ad9512d1155f0ec5e2a3c5770d/data --binary=.../.config/lite-xl/lpm/bottles/bb3ede91839ca81b555fa2338de14fb3d7ec12ad9512d1155f0ec5e2a3c5770d/lite-xl --assume-yes: {"actions":[],"error":"addon cold_lime not installed","warnings":[]}
 at ...1155f0ec5e2a3c5770d/user/plugins/plugin_manager/init.lua:125

stack traceback:
...1155f0ec5e2a3c5770d/user/plugins/plugin_manager/init.lua:125: in function <...1155f0ec5e2a3c5770d/user/plugins/plugin_manager/init.lua:98>
[C]: in function 'xpcall'
...14fb3d7ec12ad9512d1155f0ec5e2a3c5770d/data/core/init.lua:1226: in function 'core.try'
(...tail calls...)


Fri Jan 26 23:59:47 2024 [ERROR] error running .../.config/lite-xl/lpm/bottles/bb3ede91839ca81b555fa2338de14fb3d7ec12ad9512d1155f0ec5e2a3c5770d/user/plugins/plugin_manager/lpm.x86_64-linux uninstall lorem --json --mod-version=3 --quiet --progress --userdir=.../.config/lite-xl/lpm/bottles/bb3ede91839ca81b555fa2338de14fb3d7ec12ad9512d1155f0ec5e2a3c5770d/user --datadir=.../.config/lite-xl/lpm/bottles/bb3ede91839ca81b555fa2338de14fb3d7ec12ad9512d1155f0ec5e2a3c5770d/data --binary=.../.config/lite-xl/lpm/bottles/bb3ede91839ca81b555fa2338de14fb3d7ec12ad9512d1155f0ec5e2a3c5770d/lite-xl --assume-yes: {"warnings":["waiting for lpm global lock to be released (only one instance of lpm can be run at once)","codeplus stub on https://github.com/lite-xl/lite-xl-plugins.git:master has differing version from remote (1.0 vs 0.1); may lead to install being inconsistent","gitblame stub on https://github.com/lite-xl/lite-xl-plugins.git:master has differing version from remote (0.2 vs 0.1); may lead to install being inconsistent","widget stub on https://github.com/lite-xl/lite-xl-plugins.git:master has differing version from remote (0.2.1 vs 0.2); may lead to install being inconsistent"],"actions":[],"error":"addon lorem not installed"}
 at ...1155f0ec5e2a3c5770d/user/plugins/plugin_manager/init.lua:125

stack traceback:
...1155f0ec5e2a3c5770d/user/plugins/plugin_manager/init.lua:125: in function <...1155f0ec5e2a3c5770d/user/plugins/plugin_manager/init.lua:98>
[C]: in function 'xpcall'
...14fb3d7ec12ad9512d1155f0ec5e2a3c5770d/data/core/init.lua:1226: in function 'core.try'
(...tail calls...)

This can happen for example on triple clicks, or with right click->uninstall, then immediately followed by double clicking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant