Skip to content

LiteXL crashes when installing plugin on flatpak package #4

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

Open
RobusTetus opened this issue Feb 28, 2025 · 6 comments
Open

LiteXL crashes when installing plugin on flatpak package #4

RobusTetus opened this issue Feb 28, 2025 · 6 comments

Comments

@RobusTetus
Copy link

Installed flatpak repo of litexl and opened my python project. Installed python-ide plugin, produced following error.
LiteXL flatpak is running with SDL_VIDEODRIVER=wayland, LITE_SCALE=1.5 and has access to my ~/Projects directory.

Error: Error creating child process: No such file or directory

stack traceback:
	[C]: in function 'process.start'
	...te_xl.LiteXL/config/lite-xl/plugins/scm/backend/init.lua:164: in function 'plugins.scm.backend.execute'
	...ite_xl.LiteXL/config/lite-xl/plugins/scm/backend/git.lua:101: in function 'plugins.scm.backend.git.get_branch'
	...p/com.lite_xl.LiteXL/config/lite-xl/plugins/scm/init.lua:91: in metamethod 'index'
	...p/com.lite_xl.LiteXL/config/lite-xl/plugins/scm/init.lua:768: in field 'get_item'
	/app/share/lite-xl/core/statusview.lua:779: in function 'core.statusview.update_active_items'
	/app/share/lite-xl/core/statusview.lua:1081: in function 'core.statusview.update'
	/app/share/lite-xl/core/node.lua:483: in function 'core.node.update'
	/app/share/lite-xl/core/node.lua:491: in function 'core.node.update'
	/app/share/lite-xl/core/node.lua:491: in function 'core.node.update'
	...	(skipping 3 levels)
	/app/share/lite-xl/plugins/plugin_manager/plugin_view.lua:59: in upvalue 'update'
	/app/share/lite-xl/plugins/autocomplete.lua:578: in upvalue 'root_view_update'
	/app/share/lite-xl/plugins/contextmenu.lua:27: in upvalue 'root_view_update'
	/app/share/lite-xl/plugins/treeview.lua:493: in upvalue 'root_view_update'
	...om.lite_xl.LiteXL/config/lite-xl/plugins/lsp/listbox.lua:488: in function 'core.rootview.update'
	/app/share/lite-xl/core/init.lua:1317: in function 'core.step'
	/app/share/lite-xl/core/init.lua:1401: in upvalue 'core_run'
	...p/com.lite_xl.LiteXL/config/lite-xl/plugins/settings.lua:1896: in function 'core.run'
	(...tail calls...)
	[string "local core..."]:14: in function <[string "local core..."]:6>
	[C]: in function 'xpcall'
	[string "local core..."]:6: in main chunk
@Guldoman Guldoman transferred this issue from lite-xl/lite-xl Feb 28, 2025
@Guldoman
Copy link
Member

Guldoman commented Feb 28, 2025

Do you have git installed?

EDIT:
Well, I guess the flatpak runtime we use doesn't have it.

@RobusTetus
Copy link
Author

Do you have git installed?

EDIT: Well, I guess the flatpak runtime we use doesn't have it.

I guess solution would be add it and build it as a dependency in the .json file in the flatpak repo or switch to freedesktop sdk as the runtime, but that would probably make the resulting app much bigger than just adding git.

@Guldoman
Copy link
Member

The plugin should automatically "install" it, so that users don't need to have it at all in their system. Or just use libgit2 instead.

In any case, it really shouldn't just crash if git isn't installed...

@RobusTetus
Copy link
Author

The plugin should automatically "install" it, so that users don't need to have it at all in their system. Or just use libgit2 instead.

In any case, it really shouldn't just crash if git isn't installed...

I just reinstalled LiteXL, cleared data using flatsweep. So fresh environment and went through the setup. I assume you mean that git gets installed when clicking the Install Addons Package button on the main screen when the editor is first opened. Once the process finished. I opened bash in the environment using flatpak enter com.lite_xl.LiteXL bash and running git returned command not found, I even tried looking for the git executable using the find command which also yielded no results. So perhaps the plugin fails to install it in the flatpak environment?

@Guldoman
Copy link
Member

I assume you mean that git gets installed

Nono, I mean that that is what we should make it do, not what it is supposed to do now.

@RobusTetus
Copy link
Author

I assume you mean that git gets installed

Nono, I mean that that is what we should make it do, not what it is supposed to do now.

I see, my bad.

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

2 participants