Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.4k stars 167 forks source link

Can't install HTML_Beautify #5462

Closed pintassilgo closed 2 months ago

pintassilgo commented 2 months ago

I have CudaFormatter since I started using Cuda, but with just JavaScript_JSON formatter. Now I needed one for HTML. so I tried installing HTML_Beautify, but installing fails:

ERROR: Exception in CudaText for do_install_addon: Stream write error ERROR: Exception in CudaText for cuda_hilite_occurrences.on_scroll: SystemError: unknown opcode ERROR: Exception in CudaText for on_scroll: Access violation ERROR: Exception in CudaText for cuda_lsp.on_scroll: SystemError: unknown opcode ERROR: Exception in CudaText for on_scroll: Access violation ERROR: Exception in CudaText for cuda_hilite_occurrences.on_scroll: SystemError: unknown opcode ERROR: Exception in CudaText for on_scroll: Access violation ERROR: Exception in CudaText for cuda_lsp.on_scroll: SystemError: unknown opcode ERROR: Exception in CudaText for on_scroll: Access violation ERROR: Exception in CudaText for on_mouse_stop: SystemError: unknown opcode ERROR: Exception in CudaText for cuda_hilite_occurrences.on_scroll: SystemError: unknown opcode ERROR: Exception in CudaText for on_scroll: Access violation ERROR: Exception in CudaText for cuda_lsp.on_scroll: SystemError: unknown opcode ERROR: Exception in CudaText for on_scroll: Access violation ERROR: Exception in CudaText for cuda_hilite_occurrences.on_scroll: SystemError: unknown opcode ERROR: Exception in CudaText for on_scroll: Access violation ERROR: Exception in CudaText for cuda_lsp.on_scroll: SystemError: unknown opcode ERROR: Exception in CudaText for on_scroll: Access violation ERROR: Exception in CudaText for on_mouse_stop: SystemError: unknown opcode ERROR: Exception in CudaText for on_mouse_stop: SystemError: unknown opcode ERROR: Exception in CudaText for on_mouse_stop: SystemError: unknown opcode ERROR: Exception in CudaText for on_app_deactivate: Access violation ERROR: Exception in CudaText for cuda_lsp.on_app_deactivate: SystemError: unknown opcode Saved session: "history session.json", 9 file(s) + 6 untitled, by timer at 00:23:52 ERROR: Exception in CudaText for on_app_deactivate: Access violation ERROR: Exception in CudaText for cuda_lsp.on_app_deactivate: SystemError: unknown opcode ERROR: Exception in CudaText for on_app_deactivate: Access violation ERROR: Exception in CudaText for cuda_lsp.on_app_deactivate: SystemError: unknown opcode

Alexey-T commented 2 months ago

Did you get the last update from yesterday, 1.212.1.4? can you reproduce errors on clean Cud?

Alexey-T commented 2 months ago

But 'SystemError: unknown opcode' means that CPU code is bad, strange... do you have x64 build?

pintassilgo commented 2 months ago

Did you get the last update from yesterday, 1.212.1.4?

No, Git releases page says latest version is 1.212.1.3, which is what I'm using. I'll try 1.212.1.4.

https://github.com/Alexey-T/CudaText/releases

pintassilgo commented 2 months ago

Looks like the new version fixed it.

But it's still weird the package wasn't listed here:

image

I know the plugin was installed because after I dismissed this popup a new one showed up suggesting to see readme and history.

Alexey-T commented 2 months ago

It is normal - empty window with listbox. Nothing to put in the listbox.

pintassilgo commented 2 months ago

Shouldn't it display the package formatter: HTML_Beautify 2020.08.10 was installed?

There's no purpose on displaying an empty listbox.

Alexey-T commented 2 months ago

Yes, I improved it now, it will show line(s) for formatters:

Screenshot from 2024-04-08 07-30-08

pintassilgo commented 2 months ago

OK, I think we can close this one.

Alexey-T commented 2 months ago

You may also complain that for LINTERS this listbox is empty. for formatters install.inf has

[info]
title=Formatter for C/C++/C#/ObjC/Java, using AStyle
desc=Formats code for lexers: C, C++, C#, Objective-C, Java; using AStyle library
type=cudatext-plugin
subdir=cuda_fmt_astyle
homepage=https://github.com/CudaText-addons/cuda_fmt_astyle

[fmt1]
caption=AStyle (C)
method=do_format
lexers=C
config=cuda_astyle_format.cfg

[fmt2]
caption=AStyle (C++)
method=do_format
lexers=C++

but for linters - inf file has only

[info]
title=Linter for AutoIt, using 'Au3Check.exe -q'
desc=Linter for CudaLint, adds support for AutoIt lexer, using 'Au3Check.exe -q'
type=cudatext-plugin
subdir=cuda_lint_autoit
homepage=https://github.com/TomBraider42/cuda_lint_autoit

so it is hard to get info about linter from INF file.

pintassilgo commented 2 months ago

https://github.com/Alexey-T/CudaText/releases must be updated to show actual latest version: 1.212.1.4, not 1.212.1.3.

pintassilgo commented 2 months ago

so it is hard to get info about linter from INF file.

If it's too hard to fix that, maybe you should retrieve from the same way Cuda gets plugin name in Install dialog. image

The limitation in this method is it's restricted to indexed plugins.

Alexey-T commented 2 months ago

https://github.com/Alexey-T/CudaText/releases must be updated to show actual latest version: 1.212.1.4, not 1.212.1.3.

Done

Alexey-T commented 2 months ago

so it is hard to get info about linter from INF file.

If it's too hard to fix that, maybe you should retrieve from the same way Cuda gets plugin name in Install dialog.

I can of course show the line

Linter for AutoIt, using 'Au3Check.exe -q'

from INF file

[info]
title=Linter for AutoIt, using 'Au3Check.exe -q'
desc=Linter for CudaLint, adds support for AutoIt lexer, using 'Au3Check.exe -q'
type=cudatext-plugin
subdir=cuda_lint_autoit
homepage=https://github.com/TomBraider42/cuda_lint_autoit

but it is not good: it is duplication of info from previous shown dialog (prompt to install Zip).

Alexey-T commented 2 months ago

For LINTERS we really don't have much info from INF file: no additional sections. linter is like a usual plugin w/o sections [items1].