I was trying to regenerate the PKGBUILD schema but failed due to a couple of issues:
- It seems that the keywords are extracted from the PKGBUILD man page through the lsp_tree_sitter.misc module. However, it uses the
platformdirs package and its site_data_path("man") function, which gives /usr/local/share/man on Arch Linux. However, the true location is /usr/share/man.
- The
init_schema function tries to read licenses from /usr/share/licenses/common:
|
+ os.listdir("/usr/share/licenses/common") |
This directory does not exist anymore on Arch Linux so it fails with FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/licenses/common'
I was trying to regenerate the PKGBUILD schema but failed due to a couple of issues:
platformdirspackage and its site_data_path("man") function, which gives/usr/local/share/manon Arch Linux. However, the true location is/usr/share/man.init_schemafunction tries to read licenses from/usr/share/licenses/common:termux-language-server/src/termux_language_server/misc/pkgbuild.py
Line 212 in 9cab023
This directory does not exist anymore on Arch Linux so it fails with
FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/licenses/common'