7
0

9 Commits

Author SHA256 Message Date
c72aff841b switch from *.obscpio to *.tar.gz for the upstream source
Saving 60MB per release is just too much to ignore.
2025-07-22 18:07:20 +02:00
8495e0424b Update to 3.15.0: - [fix] Linux debugging server not starting by @jpeletier - feat: support hex color with # by @seblyng - Fix gcc15 build by @CppCXY - docs: add missing locale. by @qwertycxz - Support Custom Addons Path for Enhanced Editor Flexibility by @IronBlood - Prevent class methods from triggering missing fields diagnostics (Fixes #3175) by @CWood-sdf - fix: large unions no longer erroneously fail to match later variants by @DoubleThoughtTheProgrammer - Traditional Chinese translation by @AlexCai2019 2025-07-22 18:02:21 +02:00
b9c9b07faa update to 3.14.0 2025-07-22 17:55:10 +02:00
48a9b283c3 update to 3.13.9 2025-03-26 21:42:49 +01:00
0786afb475 Accepting request 1251280 from devel:languages:lua
OBS-URL: https://build.opensuse.org/request/show/1251280
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua-language-server?expand=0&rev=19
2025-03-08 16:52:50 +00:00
4ee1674563 - fix wrapper script to launch the server
- install a missing file, otherwise the server doesn't start

OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-language-server?expand=0&rev=41
2025-03-07 23:16:39 +00:00
dff1793b25 Accepting request 1248784 from devel:languages:lua
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1248784
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua-language-server?expand=0&rev=18
2025-02-27 13:50:47 +00:00
3e5864030a - Add missing Source for README.suse-maint.md.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-language-server?expand=0&rev=39
2025-02-19 18:07:48 +00:00
7b7205ab2c Accepting request 1247013 from home:rrahl0
- update to 3.13.6:
  * Exit 1 when check error
  * Send the correct insertTextFormat
  * Fixed the error that the configuration file pointed to by the --configpath
    option was not read and loaded
  * unittest: support test specify unit test
  * Improve generic pattern to support "T.*-"
  * Mark function completion items as snippets
  * Basic partial class support
  * Fix typo in doc exporter
  * LuaDoc. Fixed the start position of the comment first symbol in docs
  * Improve generic pattern to support optional, union, array. Fixed regression.
  * fix: bind variables with @class using tail comments
  * Mark postfix completions as snippets
  * Avoid truncating output in ---doc mode
  * feat: add --check_format=json|pretty
  * feat: add variable substitution support for vscode's ${workspaceFolder:x}
  * fix: missing field completion for generic class object
- update to 3.13.5:
  * fix: incorrect infer of function array annotation on tables
  * add settingLua.hint.awaitPropagate
  * Add serverInfo.version to initialize response
- update to 3.13.4:
  * hover supports detail level
  * pass tests
  * Can adjust the level of detail of Hover
- update to 3.13.3:
  * Update Love2d version
  * Fix missing-fields diagnostic not warning about missing inherited fields
  * Added support for arrays in meta build tool

OBS-URL: https://build.opensuse.org/request/show/1247013
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-language-server?expand=0&rev=38
2025-02-19 11:03:26 +00:00
10 changed files with 323 additions and 74 deletions

5
.gitignore vendored
View File

@@ -1 +1,6 @@
.osc
_scmsync.obsinfo
_buildconfig-*
_buildinfo-*.xml
lua-language-server-*-build/
lua-language-server/

View File

@@ -1,17 +1,17 @@
# How to update the lua-language-server package
## Prerequisites:
You need the `tar_scm` and `download_url` obs service installed:
zypper in obs-service-tar_scm obs-service-download_url
## Updating to a new version from upstream
Edit the `_service` and `spec` file and update the version variable.
Download the new source file by running:
osc service disabledrun
Update the changelog file with the upstream release notes.
-# How to update the lua-language-server package
-
-## Prerequisites:
-
-You need the `obs_scm` obs service installed:
-
- zypper in obs-service-obs_scm
-
-## Updating to a new version from upstream
-
-Edit the `_service` file and update the version variable.
-
-Download the new source file by running:
-
- osc service manualrun
-
-Update the changelog file with the upstream release notes.

View File

@@ -1,24 +1,16 @@
<?xml version="1.0" ?>
<services>
<service name="obs_scm" mode="disabled">
<param name="url">https://github.com/LuaLS/lua-language-server</param>
<param name="versionformat">@PARENT_TAG@</param>
<service name="obs_scm" mode="manual">
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="revision">3.7.4</param>
<param name="versionrewrite-pattern">(.*)</param>
<param name="versionrewrite-replacement">\1</param>
<param name="url">https://github.com/LuaLS/lua-language-server</param>
<param name="revision">refs/tags/3.15.0</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="submodules">enable</param>
</service>
<service name="download_url" mode="disabled">
<param name="protocol">https</param>
<param name="host">github.com</param>
<param name="path">LuaLS/lua-language-server/releases/download/3.7.4/lua-language-server-3.7.4-submodules.zip</param>
</service>
<service name="tar" mode="disabled" />
<service name="recompress" mode="disabled">
<service name="set_version" mode="manual" />
<service name="tar" mode="manual" />
<service name="recompress" mode="manual">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
<service name="set_version" mode="disabled">
<param name="basename">lua-language-server</param>
</service>
</services>

BIN
lua-language-server-3.15.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
lua-language-server-3.7.4-submodules.zip (Stored with Git LFS)

Binary file not shown.

BIN
lua-language-server-3.7.4.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@@ -1,3 +1,257 @@
-------------------------------------------------------------------
Tue Jul 22 12:27:33 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Update to 3.15.0:
- [fix] Linux debugging server not starting by @jpeletier
- feat: support hex color with # by @seblyng
- Fix gcc15 build by @CppCXY
- docs: add missing locale. by @qwertycxz
- Support Custom Addons Path for Enhanced Editor Flexibility by
@IronBlood
- Prevent class methods from triggering missing fields
diagnostics (Fixes #3175) by @CWood-sdf
- fix: large unions no longer erroneously fail to match later
variants by @DoubleThoughtTheProgrammer
- Traditional Chinese translation by @AlexCai2019
- Switch to storing upstream soruces as a tarball … saving 60MB
on each version is just too much to overlook.
-------------------------------------------------------------------
Mon Apr 14 06:27:26 UTC 2025 - Richard Rahl <rrahl0@opensuse.org>
- update to 3.14.0:
* feat: provide ES localisation
* Diagnostics for unnecessary assert
* fix: return empty response to textDocument/formatting if no changes
* fix: return empty response to textDocument/completion if completion
disabled
- move tests to a bcond_with condition, as they are very flaky, even
on x86_64, most of the time it runs on second try, sometimes 5+
-------------------------------------------------------------------
Wed Mar 26 20:37:12 UTC 2025 - Richard Rahl <rrahl0@opensuse.org>
- update to 3.13.9:
* remove the limit for analyzing the literal table
- update to 3.13.8:
* fix: respect ignoreDir in --check CLI
* Merge branch 'master' into fix-ignore-in-check
* Chore: Update help messages
* limit 100 items for performance reason
- update to 3.13.7:
* Fix changelog links
* fix: incorrect arg skip pattern for --check_out_path=
* fix: incorrect file names in doc.json
* fix: reimplement section luals.config in doc.json
* fix: use fs.canonical() instead of fs.absolute()
* fix: incorrect error message for --doc-update.
* chore: refactoring
* fix: default path for --doc_out_path is the current directory
* fix: remove extra ./ prefix in check report when using --check=.
* fix_doc_config
* fix_doc_defaultpath
* fix: osdate is not allowed in os.time
* fix: another regression related to type narrow and generic since v3.10.1
* fix: fix type annotations for bit module
* fix: correct pattern links for string methods
* Correct version for math.type and math.ult
* Update changelog.md
* fix: type narrowing bugs with literal fields
* feat: add --help
-------------------------------------------------------------------
Tue Mar 4 13:23:11 UTC 2025 - Richard Rahl <rrahl0@opensuse.org>
- fix wrapper script to launch the server
- install a missing file, otherwise the server doesn't start
-------------------------------------------------------------------
Wed Feb 19 18:07:29 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Add missing Source for README.suse-maint.md.
-------------------------------------------------------------------
Wed Feb 19 09:24:52 UTC 2025 - Richard Rahl <rrahl0@opensuse.org>
- update to 3.13.6:
* Exit 1 when check error
* Send the correct insertTextFormat
* Fixed the error that the configuration file pointed to by the --configpath
option was not read and loaded
* unittest: support test specify unit test
* Improve generic pattern to support "T.*-"
* Mark function completion items as snippets
* Basic partial class support
* Fix typo in doc exporter
* LuaDoc. Fixed the start position of the comment first symbol in docs
* Improve generic pattern to support optional, union, array. Fixed regression.
* fix: bind variables with @class using tail comments
* Mark postfix completions as snippets
* Avoid truncating output in ---doc mode
* feat: add --check_format=json|pretty
* feat: add variable substitution support for vscode's ${workspaceFolder:x}
* fix: missing field completion for generic class object
- update to 3.13.5:
* fix: incorrect infer of function array annotation on tables
* add settingLua.hint.awaitPropagate
* Add serverInfo.version to initialize response
- update to 3.13.4:
* hover supports detail level
* pass tests
* Can adjust the level of detail of Hover
- update to 3.13.3:
* Update Love2d version
* Fix missing-fields diagnostic not warning about missing inherited fields
* Added support for arrays in meta build tool
- update to 3.13.2:
* doc: fulfill translations of zh-cn
* fix: add missing errs ~= nil checks to script/vm/type checkTableShape
- update to 3.13.0:
* Fix table array infer
* fix: improve type narrow with literal alias param during completion and
signature help
* config: add custom repository support for addonManager
* add translate bot
* feat: infer function param when the function is passed as call arg
- update to 3.12.0:
* fix: regression related to type narrow and generic since v3.10.1
* Fix vararg indices being unknown when iterated
* [reference] Check also in tablefield
* fix: parse storage path
* Imports in Quick Fix are now allowed
- update to 3.11.1:
* update format 1.5.6
* Fix syntax errors in the Japanese locale
* Add storagePath handling and memoization to resolvePathPlaceholders
* Return markdown from getFunctionComment to temporarily preserve trailing
newlines
- update to 3.11.0:
* Add Japanese translations
* Remove luamake install from make.sh and make.bat
* Use string.format to fix floating point error in test output
* Infer function parameter types when overriding the same-named class
function in an instance of that class
* feat: type narrow types with literal fields
* add: placeholder for ${addons} for paths
* lint: cleanup unused code and redefined locals
* Support using ---@class on rawset(_G, ...) to annotate the created global variable
* fix: type narrow on fields with multiple literals
- update to 3.10.6:
* custom luadoc generation
* Fix setfenv definition
* Fix VM plugins
* fix: improve function type narrow by checking params' literal identical
* Fix incorrect function params' type infer when there is only @overload
* Fix correctly display enums for function overload arguments
* Only call workspace/configuration when available
* fix(completion): remove logic causing wrong text edits
* Fixed injects into child classes
- update to 3.10.4:
* FIX: Changed hello param to valid JSONRPC
* fix(hint): attempt to index a nil value
* fix: improve textDocument/definition ordering
* Fix lua-language-server --check
* Revert "fix: improve textDocument/definition ordering"
* check that the shape of the table corresponds to the class
- update to 3.10.3:
* fix memory leak with ---@enum
- update to 3.10.2:
* feat: flip binary operator check if failed
- update to 3.10.1:
* Disable indentation fixing for Non-VSCode
- update to 3.10.0:
* Fix plugin arg arrays when paths contain numbers passing along only one argument
* Add postfix snippet for unpack
* Add support for lambda-style functions
* fix: default severity in CLI with partial 'diagnostics.severity' config
* Perf: Improve performance of multithreaded --check and undefined-field diagnostic
* fix: respect showParams config for local function completion
* update format
* Remove nodiscard from string.gsub
* Align inlay hint spacing with other LSPs
* fix: add a missing check for 'inject-field' diagnostics
* added lua regular expression support for Lua.doc.Name
* fix a specific case for getVisibleType
* Fixed wholeMatch function
* fix: inconsistent type narrow due to outdated node caches of call.args
* Fix typos in annotation descriptions
* fix: incorrect CompletionItemKind for postfix snippets
* improve the missing-fields logic to be able to correctly handle classes
defined several times
- update to 3.9.3:
* FIX Sometimes providing incorrect autocompletion when chaining calls
- update to 3.9.2:
* Disable await.delay() when running --check
* Update love2d-api to 11.5
* add: workflow to assert changelog updates
* Add schema link to .luarc.json
* Bump EmmyLuaCodeStyle
* add: resolve links to symbols in markdown descriptions
* Throttle calls to await.delay() in some diagnostics
* don't do diagnostics when workspace is not ready
- update to 3.9.1:
* Add globalsRegex to diagnostics
* Add multi-process support to --check
* Fix linux-arm64 build
* add: load ENV variables as args
* fix: convert ENV value to bool
- update to 3.9.0:
* Fix linux-arm64 build
* Add multi-process support to --check
* Add setting to find globals using regex
* add: load ENV variables as args
- update to 3.8.3:
* update bee
- update to 3.8.0:
* bit meta: tohex returns a string
* Pad return type annotations when required
* plugin: add OnTransformAst interface
* update format 1.4.3
* astHelper: addParamTypeDoc
* support multi plugins
* Automatic derivation function param type
* Never sematic virtual ast and comment
* fix guide.getParams
* Plugin on node compile function param
* Add table.move() to LuaJIT compatibility
* Add --visualize command that outputs the AST of a given file as graphviz
* Add group param for luadoc generated by plugins
* Added 'desc' and 'rawdesc' keys for variables in JSON output
* Added 'visible' key (public, protected, ...) in JSON output
* CLI option --doc_out_path
* support tuple type
* Enable plugins during --check
* update format 1.5.0
* Desc/rawdesc for vararg expressions in JSON output
* Add "deprecated" key in JSON output
* add infer function param type
* update test
* Add "async" key in JSON output
* Revert "Add "async" key in JSON output."
* Revert "Add "deprecated" key in JSON output."
* Add "async" and "deprecated" key to JSON output
* Only load files in workspace for --check (skip libraries)
* Add CLI option to trust all plugins
* Flush stdout in check progress indicator
* Update doc.json
* Fix potential crash issues on Windows
* doc param support generic pattern
* update format 1.5.2
* Fix typo in config.json
* Allow plugins to resolve require paths
* Update compiler.lua
* Detect discard-returns in all block types
* meta: improve typing for unpack
* Run diagnostics on unopened files when explicitly requested by the user
* Output more details while running --check
- rewrite the _service file, so we can include the submodules, and move to
manual service runs, as disabled is going to be deprecated
- write the wrapper so we can have multiple instances
- remove limitations on the buildarches, as they build fine (outside of the tests)
- test only on x86_64, as the other arches too flaky (while x86_64 also quite often flakes)
- update README.suse-maint.md file to reflect how to update the package
- use newer upstream url
-------------------------------------------------------------------
Fri Jan 5 07:30:11 UTC 2024 - Kyle Scheuing <kyle@kylescheuing.com>

View File

@@ -0,0 +1,4 @@
name: lua-language-server
version: 3.15.0
mtime: 1750844709
commit: 32fec3cc99af8b9a1e45c2455a8c3bd0d3e38f66

View File

@@ -1,7 +1,7 @@
#
# spec file for package lua-language-server
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2021 Andreas Schneider <asn@cryptomilk.org>
#
# All modifications and additions to the file contributed by third parties
@@ -17,43 +17,37 @@
#
%bcond_with tests
Name: lua-language-server
Version: 3.7.4
Version: 3.15.0
Release: 0
Summary: Lua Language Server coded by Lua
License: MIT
URL: https://github.com/LuaLS/lua-language-server
Source0: %{url}/releases/download/%{version}/%{name}-%{version}-submodules.zip
Source1: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
Source2: lua-lsp-launcher.sh
Source3: README.suse-maint.md
# PATCH-FIX-UPSTREAM time_includes.patch gh#sumneko/lua-language-server#1377 mcepl@suse.com
# Add missing #include
# Patch0: time_includes.patch
BuildRequires: fdupes
BuildRequires: gcc-c++
Source0: %{name}-%{version}.tar.gz
Source1: lua-lsp-launcher.sh
Source99: README.suse-maint.md
BuildRequires: c++_compiler
BuildRequires: ninja
BuildRequires: unzip
ExcludeArch: s390x ppc64le ppc64
%description
This package provides a Language Server Protocol (LSP) implementation for Lua.
%prep
%autosetup -c
%autosetup -p1
install -m 644 %{SOURCE99} .
%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
ninja -C 3rd/luamake -f compile/ninja/linux.ninja
./3rd/luamake/luamake all
%install
install -d -m 0755 %{buildroot}%{_libexecdir}/%{name}
cp -av bin/* %{buildroot}%{_libexecdir}/%{name}
install -Dm0755 bin/%{name} %{buildroot}%{_libexecdir}/%{name}/%{name}
install -Dm0644 bin/main.lua %{buildroot}%{_libexecdir}/%{name}/main.lua
install -d -m 0755 %{buildroot}%{_datadir}/%{name}
install -d %{buildroot}%{_datadir}/%{name}
cp -av \
debugger.lua \
main.lua \
@@ -62,20 +56,21 @@ cp -av \
meta \
%{buildroot}%{_datadir}/%{name}/
install -d -m 0755 %{buildroot}%{_bindir}
sed -e 's#@LIBEXECDIR@#%{_libexecdir}#' %{SOURCE2} > %{buildroot}%{_bindir}/%{name}
install -d %{buildroot}%{_bindir}
sed -e 's#@LIBEXECDIR@#%{_libexecdir}#' %{SOURCE1} > %{buildroot}%{_bindir}/%{name}
chmod 0755 %{buildroot}%{_bindir}/%{name}
%fdupes %{buildroot}%{_libexecdir}/%{name} %{buildroot}%{_datadir}/%{name}
%if %{with tests}
#tests are very flaky on all arches
%check
./3rd/luamake/luamake bee-test unit-test
./3rd/luamake/luamake unit-test
%endif
%files
%license LICENSE
%doc README.md changelog.md
%doc README.md changelog.md README.suse-maint.md
%{_bindir}/%{name}
%{_libexecdir}/%{name}/
%{_datadir}/%{name}/
%{_libexecdir}/%{name}
%{_datadir}/%{name}
%changelog

View File

@@ -2,9 +2,11 @@
cd /usr/share/lua-language-server/ || exit 1
TMPPATH=$(mktemp -d "/tmp/lua-language-server.XXXX")
DEFAULT_LOGPATH="${TMPPATH}/log"
DEFAULT_METAPATH="${TMPPATH}/meta"
TMPPATH="/tmp/lua-language-server-$(id -u)"
install -dm0700 "${TMPPATH}"
INSTANCEPATH="$(mktemp -d "${TMPPATH}/instance-XXXXXX")"
DEFAULT_LOGPATH="${INSTANCEPATH}/log"
DEFAULT_METAPATH="${INSTANCEPATH}/meta"
exec @LIBEXECDIR@/lua-language-server/lua-language-server \
-E ./main.lua \