lite-xl-plugins icon indicating copy to clipboard operation
lite-xl-plugins copied to clipboard

[2.1] bunch of problems with plugins

Open Not-a-web-Developer opened this issue 2 years ago • 14 comments

so the plugins for 2.1 have quite a few problems, and it was decided in the discord chat to list all the problems here.

so here goes nothing:

  • the spellcheck plugin breaks softwrap;
  • the minimap plugins also breaks softwrap;
  • lfautoinsert and smoothcaret cause an error that i'll paste a screenshot of, since the log is not giving an option to copy the log entry: Screenshot_20220325_234422

this is it for now, since it's late at night where i am right now; i would like it if other people test these plugins with the master-2.1 branch of lite-xl and report their findings here.

Not-a-web-Developer avatar Mar 25 '22 18:03 Not-a-web-Developer

I have not tried the other plugins, but the minimap plugin sure does cause an issue

astro-ray avatar Sep 27 '22 15:09 astro-ray

Dropped the plugins folder and got this error

~/lite-xl 
➜ ./lite-xl ~/Documents/development/agriboost.co.ke
Error: /home/forinda/.config/lite-xl/plugins/ipc.lua:869: attempt to index a boolean value (upvalue 'settings')
stack traceback:
	/home/forinda/lite-xl/data/core/init.lua:793: in function 'core.init'
	[string "local core..."]:8: in function <[string "local core..."]:2>
	[C]: in function 'xpcall'
	[string "local core..."]:2: in main chunk

~/lite-xl  took 16s
✖  


What could this mean

forinda avatar Dec 29 '22 10:12 forinda

Dropped the plugins folder and got this error

~/lite-xl 
➜ ./lite-xl ~/Documents/development/agriboost.co.ke
Error: /home/forinda/.config/lite-xl/plugins/ipc.lua:869: attempt to index a boolean value (upvalue 'settings')
stack traceback:
	/home/forinda/lite-xl/data/core/init.lua:793: in function 'core.init'
	[string "local core..."]:8: in function <[string "local core..."]:2>
	[C]: in function 'xpcall'
	[string "local core..."]:2: in main chunk

~/lite-xl  took 16s
✖  

What could this mean

The ipc plugin performed a check to load after the settings gui plugin and IIRC it failed if settings gui wasn't found, but I think I fixed that hard dependency already on latest version.

Are you using latest ipc plugin?

jgmdev avatar Dec 29 '22 14:12 jgmdev

Dropped the plugins folder and got this error

~/lite-xl 
➜ ./lite-xl ~/Documents/development/agriboost.co.ke
Error: /home/forinda/.config/lite-xl/plugins/ipc.lua:869: attempt to index a boolean value (upvalue 'settings')
stack traceback:
	/home/forinda/lite-xl/data/core/init.lua:793: in function 'core.init'
	[string "local core..."]:8: in function <[string "local core..."]:2>
	[C]: in function 'xpcall'
	[string "local core..."]:2: in main chunk

~/lite-xl  took 16s
✖  

What could this mean

The ipc plugin performed a check to load after the settings gui plugin and IIRC it failed if settings gui wasn't found, but I think I fixed that hard dependency already on latest version.

Are you using latest ipc plugin?

I just downloaded the whole plugins folder and plugged into the plugins folder

forinda avatar Dec 29 '22 17:12 forinda

Do you also have the widgets library installed? My recommendation would be to install lite-xl using one of the packages that include additional addons, it is easier to get started with: https://github.com/lite-xl/lite-xl/releases/tag/v2.1.1

jgmdev avatar Dec 29 '22 17:12 jgmdev

Do you also have the widgets library installed? My recommendation would be to install lite-xl using one of the packages that include additional addons, it is easier to get started with: https://github.com/lite-xl/lite-xl/releases/tag/v2.1.1

I'm on linux and Downloaded the latest binary

forinda avatar Dec 29 '22 18:12 forinda

Do you also have the widgets library installed? My recommendation would be to install lite-xl using one of the packages that include additional addons, it is easier to get started with: https://github.com/lite-xl/lite-xl/releases/tag/v2.1.1

I'm on linux and Downloaded the latest binary

this-or-that

jgmdev avatar Dec 29 '22 18:12 jgmdev

Do you also have the widgets library installed? My recommendation would be to install lite-xl using one of the packages that include additional addons, it is easier to get started with: https://github.com/lite-xl/lite-xl/releases/tag/v2.1.1

I'm on linux and Downloaded the latest binary

this-or-that

The lower one

forinda avatar Dec 29 '22 18:12 forinda

use the upper one

jgmdev avatar Dec 29 '22 18:12 jgmdev

use the upper one

Error: /home/forinda/.config/lite-xl/plugins/minimap.lua:467: attempt to index a nil value (local 'color')
stack traceback:
	/home/forinda/lite-xl/data/core/docview.lua:561: in upvalue 'old_draw'
	/home/forinda/lite-xl/data/plugins/linewrapping.lua:522: in upvalue 'draw'
	/home/forinda/.config/lite-xl/plugins/motiontrail.lua:51: in function 'core.docview.draw'
	/home/forinda/lite-xl/data/core/node.lua:592: in function 'core.node.draw'
	/home/forinda/lite-xl/data/core/node.lua:32: in function 'core.node.propagate'
	/home/forinda/lite-xl/data/core/node.lua:597: in function 'core.node.draw'
	/home/forinda/lite-xl/data/core/node.lua:31: in function 'core.node.propagate'
	/home/forinda/lite-xl/data/core/node.lua:597: in function 'core.node.draw'
	/home/forinda/lite-xl/data/core/node.lua:32: in function 'core.node.propagate'
	/home/forinda/lite-xl/data/core/node.lua:597: in function 'core.node.draw'
	...	(skipping 3 levels)
	/home/forinda/lite-xl/data/plugins/autocomplete.lua:571: in upvalue 'root_view_draw'
	/home/forinda/lite-xl/data/plugins/treeview.lua:498: in upvalue 'root_view_draw'
	/home/forinda/lite-xl/data/plugins/contextmenu.lua:31: in function 'core.rootview.draw'
	/home/forinda/lite-xl/data/core/init.lua:1344: in function 'core.step'
	/home/forinda/lite-xl/data/core/init.lua:1388: in upvalue 'core_run'
	/home/forinda/.config/lite-xl/plugins/profiler/init.lua:78: in upvalue 'core_run'
	/home/forinda/.config/lite-xl/plugins/settings.lua:1867: in upvalue 'core_run'
	/home/forinda/.config/lite-xl/plugins/ipc.lua:858: in function 'core.run'
	(...tail calls...)
	[string "local core..."]:9: in function <[string "local core..."]:2>
	[C]: in function 'xpcall'
	[string "local core..."]:2: in main chunk
malloc(): unaligned fastbin chunk detected
[1]    8031 IOT instruction (core dumped)  ./lite-xl ~/Documents/development/agriboost.co.ke

forinda avatar Dec 29 '22 18:12 forinda

rm /home/forinda/.config/lite-xl/plugins/minimap.lua

jgmdev avatar Dec 29 '22 18:12 jgmdev

I have removed the plugins and Syntax highlighing is on. Can I just import the plugins to the data folder?

forinda avatar Dec 29 '22 18:12 forinda

I have removed the plugins and Syntax highlighing is on. Can I just import the plugins to the data folder?

yes, that should work

jgmdev avatar Dec 29 '22 19:12 jgmdev

I have removed the plugins and Syntax highlighing is on. Can I just import the plugins to the data folder?

yes, that should work

Thanks. It works well. Just strugggling to make autocomplete work

forinda avatar Dec 29 '22 21:12 forinda