Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: LuaLS/lua-language-server-rust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3.13.1
Choose a base ref
...
head repository: LuaLS/lua-language-server-rust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3.13.2
Choose a head ref
  • 8 commits
  • 7 files changed
  • 1 contributor

Commits on Nov 22, 2024

  1. try add zig build

    CppCXY committed Nov 22, 2024
    Copy the full SHA
    475891a View commit details
  2. try build

    CppCXY committed Nov 22, 2024
    Copy the full SHA
    78a1369 View commit details
  3. try fix zig build

    CppCXY committed Nov 22, 2024
    Copy the full SHA
    2a685c6 View commit details
  4. install ziglang

    CppCXY committed Nov 22, 2024
    Copy the full SHA
    36cdb2e View commit details
  5. add linux-arm64-glibc.2.17

    CppCXY committed Nov 22, 2024
    Copy the full SHA
    ce9573f View commit details
  6. try fix bsd

    CppCXY committed Nov 22, 2024
    Copy the full SHA
    1cea3f6 View commit details
  7. try build

    CppCXY committed Nov 22, 2024
    Copy the full SHA
    5871cd6 View commit details

Commits on Nov 29, 2024

  1. update to 3.13.2

    CppCXY committed Nov 29, 2024
    Copy the full SHA
    143e2ec View commit details
Showing with 197 additions and 201 deletions.
  1. +25 −4 .github/workflows/build.yml
  2. +3 −2 README.md
  3. +6 −5 locale/zh-cn/meta.lua
  4. +156 −163 locale/zh-cn/script.lua
  5. +1 −1 publish/workflow_copy_files.py
  6. +6 −4 script/vm/type.lua
  7. +0 −22 script/workspace/require-path.lua
29 changes: 25 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -17,7 +17,8 @@ jobs:
matrix:
include:
- { os: ubuntu-20.04, target: x86_64-unknown-linux-gnu, platform: linux-x64, cross: general }
- { os: ubuntu-22.04, target: aarch64-unknown-linux-gnu, platform: linux-arm64, cross: no_format }
- { os: ubuntu-22.04, target: x86_64-unknown-linux-gnu, platform: linux-x64, cross: zigbuild, glibc: 2.17 }
- { os: ubuntu-22.04, target: aarch64-unknown-linux-gnu, platform: linux-arm64, cross: zigbuild, glibc: 2.17 }
- { os: ubuntu-20.04, target: x86_64-unknown-linux-musl, platform: linux-musl, cross: cross }
- { os: ubuntu-22.04, target: x86_64-unknown-freebsd, platform: linux-bsd, cross: no_format }
- { os: macos-latest, target: x86_64-apple-darwin, platform: darwin-x64, cross: general }
@@ -47,6 +48,13 @@ jobs:
run: |
cargo install cross
cross build --release --target ${{ matrix.target }} --features no_format -p luals
- name: Build -zigbuild
if: ${{ matrix.cross == 'zigbuild' }}
run: |
rustup target add ${{ matrix.target }}
cargo install --locked cargo-zigbuild
pip3 install ziglang
cargo zigbuild --release --target ${{ matrix.target }}.${{ matrix.glibc }} -p luals
- name: package-uninx
if: ${{ matrix.os != 'windows-latest' }}
run: |
@@ -61,10 +69,17 @@ jobs:
Copy-Item -Path ${{ github.workspace }}\target\${{ matrix.target }}\release\lua-language-server.exe -Destination ${{ github.workspace }}\artifact\bin
shell: pwsh
- name: Upload
if: ${{ matrix.cross != 'zigbuild' }}
uses: actions/upload-artifact@v3
with:
name: lua-language-server-${{ matrix.platform }}
path: ${{ github.workspace }}/artifact/
- name: Upload zigbuild
if: ${{ matrix.cross == 'zigbuild' }}
uses: actions/upload-artifact@v3
with:
name: lua-language-server-${{ matrix.platform }}-glibc.${{ matrix.glibc }}
path: ${{ github.workspace }}/artifact/
release:
needs: build
runs-on: ubuntu-latest
@@ -86,10 +101,14 @@ jobs:
run: |
chmod +x lua-language-server-linux-x64/bin/lua-language-server
tar -czf lua-language-server-linux-x64.tar.gz -C lua-language-server-linux-x64 .
chmod +x lua-language-server-linux-arm64/bin/lua-language-server
tar -czf lua-language-server-linux-aarch64.tar.gz -C lua-language-server-linux-arm64 .
chmod +x lua-language-server-linux-x64-glibc.2.17/bin/lua-language-server
tar -czf lua-language-server-linux-x64-glibc.2.17.tar.gz -C lua-language-server-linux-x64-glibc.2.17 .
chmod +x lua-language-server-linux-arm64-glibc.2.17/bin/lua-language-server
tar -czf lua-language-server-linux-aarch64-glibc.2.17.tar.gz -C lua-language-server-linux-arm64-glibc.2.17 .
chmod +x lua-language-server-linux-musl/bin/lua-language-server
tar -czf lua-language-server-linux-musl.tar.gz -C lua-language-server-linux-musl .
chmod +x lua-language-server-linux-bsd/bin/lua-language-server
tar -czf lua-language-server-linux-bsd.tar.gz -C lua-language-server-linux-bsd .
chmod +x lua-language-server-darwin-x64/bin/lua-language-server
tar -czf lua-language-server-darwin-x64.tar.gz -C lua-language-server-darwin-x64 .
chmod +x lua-language-server-darwin-arm64/bin/lua-language-server
@@ -105,8 +124,10 @@ jobs:
lua-language-server-win32-ia32.zip
lua-language-server-win32-arm64.zip
lua-language-server-linux-x64.tar.gz
lua-language-server-linux-aarch64.tar.gz
lua-language-server-linux-x64-glibc.2.17.tar.gz
lua-language-server-linux-aarch64-glibc.2.17.tar.gz
lua-language-server-linux-musl.tar.gz
lua-language-server-linux-bsd.tar.gz
lua-language-server-darwin-x64.tar.gz
lua-language-server-darwin-arm64.tar.gz
token: ${{ secrets.RELEASE }}
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -10,15 +10,16 @@ The current default runtime is 5.4

- [x] win32-x64
- [x] win32-ia32
- [x] linux-aarch64 not format
- [x] win32-arm64
- [x] linux-aarch64
- [x] linux-x64
- [x] linux-musl
- [x] linux-bsd not format.
- [x] darwin-x64
- [x] darwin-arm64

NOTE:
1. The linux-aarch64 and linux-bsd are not format, because there are some build problems.
1. The linux-bsd are not format, because there are some build problems.

# Build

11 changes: 6 additions & 5 deletions locale/zh-cn/meta.lua
Original file line number Diff line number Diff line change
@@ -704,18 +704,19 @@ table.foreachi =
'遍历数组中的每一个元素,并以索引号index和value执行回调函数。如果回调函数返回一个非nil值则循环终止,并且返回这个值。该函数等同ipair(list),比ipair(list)更慢。不推荐使用'
table.getn =
'返回表的长度。该函数等价于#list。'
table.new = -- TODO: need translate!
[[This creates a pre-sized table, just like the C API equivalent `lua_createtable()`. This is useful for big tables if the final table size is known and automatic table resizing is too expensive. `narray` parameter specifies the number of array-like items, and `nhash` parameter specifies the number of hash-like items. The function needs to be required before use.
table.new =
[[创建一个有初始容量的表,就像 C API 等价于 `lua_createtable()`。对于数据量庞大的表,如果最终的容量是已知的,这将十分有用,因为动态对表进行扩容是十分昂贵的。`narray` 参数指定类数组成员的数量,`nhash` 参数指定类哈希成员的数量。在使用前需要先引入。
```lua
require("table.new")
```
]]
table.clear = -- TODO: need translate!
[[This clears all keys and values from a table, but preserves the allocated array/hash sizes. This is useful when a table, which is linked from multiple places, needs to be cleared and/or when recycling a table for use by the same context. This avoids managing backlinks, saves an allocation and the overhead of incremental array/hash part growth. The function needs to be required before use.
table.clear =
[[清除表中所有的键值对,但是保留已经分配的数组或哈希的大小。当需要清除从多个位置链接的表和/或回收表供同一上下文使用时,这将十分有用。这避免了管理反向链接,节省了分配和增量数组或哈希部分增长的开销。在使用前需要先引入。
```lua
require("table.clear").
```
Please note this function is meant for very specific situations. In most cases it's better to replace the (usually single) link with a new table and let the GC do its work.
请注意,此功能用于非常特殊的情况。在大多数情况下,最好用新表替换(通常是单个)链接,GC 完成回收工作。
]]

utf8 =
Loading