CudaText is a fantastic editor, thank you. I found and fixed a bug in this version: CudaText 1.215.0.2, linux-x86_64-gtk2, fpc 3.2.3. Python 3.12.4 introduced an issue with pydantic:
https://github.com/pydantic/pydantic/issues/9609
On launch, with Python 3.12.4 as system Python, CudaText emits the recursion_guard Python error. Fixing is simple. Replate the entire pydantic folder at
"${XDG_CONFIG_HOME}/cudatext/py/cuda_lsp/lsp_modules/pydantic"
with pydantic "1.10.X-fixes" branch from
https://github.com/pydantic/pydantic/tree/1.10.X-fixes
No make or install is needed. Just copy the pydantic subfolder from this branch to the lsp_modules folder above.
I puzzle how CudaText uses Python. Is it a venv? If not, how is it configured? Does it use "pip"? I fished around but got lost. Nonetheless I fixed a bug by hand. In a venv I might have used "pip" to update pydantic. Actually, I prefer micromamba over pip. Micromamba is nearing a fresh 2.0.0 release, too.
An AppImage for Linux would be really nice!
Thank you!
- Random
Pydantic Bugfix for Python 3.12.4
-
- Posts: 2265
- Joined: 25.08.2021 18:15
Re: Pydantic Bugfix for Python 3.12.4
I prefer the release version, not some fixes-branch. is release dir have the bug fixed?>with pydantic "1.10.X-fixes" branch from
no. it uses Python4Delphi fork in my github (named Python4Lazarus).>I puzzle how CudaText uses Python. Is it a venv? If not, how is it configured?
I don't plan it, so pls create it and publish it somewhere (Flatpak version was made and published by 3rd party).>An AppImage for Linux would be really nice!
-
- Posts: 2265
- Joined: 25.08.2021 18:15
Re: Pydantic Bugfix for Python 3.12.4
ok, updated Pydantic to 1.10-fixes in the LSP plugin, and published LSP. i hope it won't give us regressions.
-
- Posts: 22
- Joined: 13.07.2024 21:19
Re: Pydantic Bugfix for Python 3.12.4
Void Linux has an outdated version of Lazarus IDE and the package is orphaned. If Void would keep Lazarus fresh, an AppImage effort might be worth it for me. I could not find an AppImage of Lazarus, either, nor a generic Linux binary, just .debs and .rpms. I do not use Flatpaks. They have been far more trouble in my experience.
-
- Posts: 2265
- Joined: 25.08.2021 18:15
Re: Pydantic Bugfix for Python 3.12.4
I posted the GH issue about too old lazarus in Void:
https://github.com/void-linux/void-pack ... sues/51288
https://github.com/void-linux/void-pack ... sues/51288