termux / termux-language-server Goto Github PK
View Code? Open in Web Editor NEW๐ ๏ธ A language server for some specific bash scripts
Home Page: https://termux-language-server.readthedocs.io/
License: GNU General Public License v3.0
๐ ๏ธ A language server for some specific bash scripts
Home Page: https://termux-language-server.readthedocs.io/
License: GNU General Public License v3.0
An error occurs everytime so that the programme does not work at all. I assume the same error repreats. This should be a single instance of it appearing:
Ignoring notification for unknown method "workspace/didChangeConfiguration"
Failed to handle user defined notification "textDocument/didOpen": (DidOpenTextDocumentParams(text_document=TextDocumentItem(uri='file:///home/matheus/aur/cli11/PKGBUILD', language_id='PKGBUILD', version=1, text='#!/usr/bin/env bash\n# shellcheck disable=SC2034\n# shellcheck disable=SC2154\n# The PKGBUILD for Inja.\n# Maintainer: Matheus <[email protected]>\n# Contributor: Matheus <[email protected]>\n\ndeclare -r _tag="17eb440d6792960c1a56d2b8832b9edd23eadab3"\n\npkgname="inja"\npkgver="3.4.0"\npkgrel="1"\npkgdesc="A template engine for modern C++."\narch=("any")\nurl="https://github.com/Spixmaster/${pkgname}"\nlicense=("MIT")\ndepends=("nlohmann-json")\nmakedepends=("cmake" "doxygen")\ncheckdepends=("doctest")\nsource=("${pkgname}::git+${url}.git#tag=${_tag}")\nsha512sums=("SKIP")\n\nbuild()\n{\n for status in "OFF" "ON"; do\n cmake -B "${srcdir}"/"${pkgname}"/build/ -D BUILD_BENCHMARK=OFF -D BUILD_TESTING="${status}" -D CMAKE_BUILD_TYPE=None -D CMAKE_INSTALL_PREFIX=/usr/ -D COVERALLS=OFF -D INJA_BUILD_TESTS="${status}" -D INJA_EXPORT=ON -D INJA_INSTALL=ON -D INJA_INSTALL_SINGLE_HEADER=ON -D INJA_USE_EMBEDDED_JSON=OFF -S "${srcdir}"/"${pkgname}"/ -Wno-dev\n cmake --build "${srcdir}"/"${pkgname}"/build/\n done\n}\n\ncheck()\n{\n cd "${srcdir}"/"${pkgname}"/build/ || exit 1\n ./inja_test\n ./single_inja_test\n}\n\npackage()\n{\n # Assure that the directories exist.\n mkdir -p "${pkgdir}"/usr/share/doc/"${pkgname}"/\n mkdir -p "${pkgdir}"/usr/share/licenses/"${pkgname}"/\n\n # Install the software.\n DESTDIR="${pkgdir}"/ cmake --install "${srcdir}"/"${pkgname}"/build/\n\n # Install the documentation.\n install -Dm644 "${srcdir}"/"${pkgname}"/README.md "${pkgdir}"/usr/share/doc/"${pkgname}"/\n\n cd "${srcdir}"/"${pkgname}"/doc/ || exit 1\n doxygen Doxyfile\n cp -r "${srcdir}"/"${pkgname}"/doc/* "${pkgdir}"/usr/share/doc/"${pkgname}"/\n\n find "${pkgdir}"/usr/share/doc/"${pkgname}"/ -type d -exec chmod 755 {} +\n find "${pkgdir}"/usr/share/doc/"${pkgname}"/ -type f -exec chmod 644 {} +\n\n # Install the license.\n install -Dm644 "${srcdir}"/"${pkgname}"/LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/\n}\n')),)
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/pygls/protocol/lsp_meta.py", line 21, in decorator
self._execute_notification(user_func, *args, **kwargs)
File "/usr/lib/python3.11/site-packages/pygls/protocol/json_rpc.py", line 153, in _execute_notification
handler(*params)
File "/usr/lib/python3.11/site-packages/termux_language_server/server.py", line 81, in did_change
diagnostics = get_diagnostics(
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/lsp_tree_sitter/diagnose.py", line 64, in get_diagnostics
uri, tree, finders + [cls(filetype) for cls in finder_classes]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/lsp_tree_sitter/diagnose.py", line 64, in <listcomp>
uri, tree, finders + [cls(filetype) for cls in finder_classes]
^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/termux_language_server/finders.py", line 42, in __init__
self.validator = self.schema2validator(get_schema(filetype))
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/termux_language_server/utils.py", line 59, in get_schema
SCHEMAS[filetype] = json.load(f)
^^^^^^^^^^^^
File "/usr/lib/python3.11/json/__init__.py", line 293, in load
return loads(fp.read(),
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/json/decoder.py", line 353, in raw_decode
obj, end = self.scan_once(s, idx)
^^^^^^^^^^^^^^^^^^^^^^
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 725 column 5 (char 26919)
As per https://wiki.archlinux.org/title/PKGBUILD#source, it says .install files are recognized automatically by makepkg and should not be included in the source array.
Could that be checked?
As per https://wiki.archlinux.org/title/PKGBUILD#provides, it says Do not add pkgname to the provides array, as it is done automatically.
. Could that be checked?
As per https://wiki.archlinux.org/title/PKGBUILD#Dependencies, packages part of base-devel should not be part of makedepends
or checkdepends
. This is not checked. Could that be programmed? This would be really helpful.
The following line arch=("x86_64")
in my PKGBUILD creates the error '"x86_64"' is not one of ['any', 'i686', 'x86_64', 'arm', 'aarch64']
.
There is no correct handling of the double quotes.
Thank @Grimler91 for hosting this repo here.
Is there some one who have accounts of https://readthedocs.org, https://pypi.org/ or https://aur.archlinux.org/ and want to be added to maintainers by those accounts? It should can increase bus factor.
gh repo clone adi1090x/termux-style
if you want to use the GitHub CLI)- git clone https://github.com/adi1090x/termux-style # Change to termux-style dir - cd termux-style # To install it, run - ./install # And follow the steps, it'll be installed on your system.If there needs to be multiple times "SKIP" in the hash array, an error message like ['SKIP', 'SKIP', 'SKIP', 'SKIP', 'SKIP', 'SKIP', 'SKIP', 'SKIP', 'SKIP', 'SKIP', 'SKIP', 'SKIP', 'SKIP', 'SKIP', 'SKIP', 'SKIP', 'SKIP', 'SKIP', 'SKIP', 'SKIP', '3802c7aae4c26cf23a61c48fedabe1d4bb516bbc07e42573cdb8cdfd19a556cc0b65941eae03ce b1c9cbf3eff2d40742e01eea12f3b420ae0d277c3582368b34'] has non-unique elements
occurs. This should probably not be the case for "SKIP" but for all other hashes.
This line arch=("x86_64")
results in the following error:
'"' is not one of ['any', 'pentium4', 'i486', 'i686', 'x86_64', 'x86_64_v3', 'arm', 'armv6h', 'armv7h', 'armv8', 'aarch64']
This happens for all Bash arrays. The quotes are recognised as own elements.
license=("MIT")
errors with '"' is not one of ['AGPL3', 'Apache', ...
.
This bug was probably introduced with a fix for #4.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.