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: 0.4.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: main
Choose a head ref

Commits on Oct 20, 2024

  1. test build

    CppCXY committed Oct 20, 2024
    Copy the full SHA
    59678b8 View commit details
  2. test build

    CppCXY committed Oct 20, 2024
    Copy the full SHA
    80bb300 View commit details
  3. remove windows-arm

    CppCXY committed Oct 20, 2024
    Copy the full SHA
    d71dd53 View commit details
  4. rever to lua54

    CppCXY committed Oct 20, 2024
    Copy the full SHA
    9d556c3 View commit details
  5. fix build

    CppCXY committed Oct 20, 2024
    Copy the full SHA
    ec941f8 View commit details

Commits on Oct 30, 2024

  1. remove luajit

    CppCXY committed Oct 30, 2024
    Copy the full SHA
    257c63a View commit details
  2. add emmylua_parser test

    CppCXY committed Oct 30, 2024
    Copy the full SHA
    9362db1 View commit details

Commits on Oct 31, 2024

  1. add debugger

    CppCXY committed Oct 31, 2024
    Copy the full SHA
    c98e63d View commit details
  2. refactor project

    CppCXY committed Oct 31, 2024
    Copy the full SHA
    b3fc3cc View commit details
  3. test build

    CppCXY committed Oct 31, 2024
    Copy the full SHA
    f226339 View commit details
  4. fix build

    CppCXY committed Oct 31, 2024
    Copy the full SHA
    d410321 View commit details
  5. clear files

    CppCXY committed Oct 31, 2024
    Copy the full SHA
    beb5ecb View commit details
  6. fix build

    CppCXY committed Oct 31, 2024
    Copy the full SHA
    5d86470 View commit details
  7. fix build

    CppCXY committed Oct 31, 2024
    Copy the full SHA
    ab2404d View commit details
  8. add test launch config

    CppCXY committed Oct 31, 2024
    Copy the full SHA
    e76a64b View commit details

Commits on Nov 15, 2024

  1. update to 3.13

    CppCXY committed Nov 15, 2024
    Copy the full SHA
    2c3cea5 View commit details

Commits on Nov 22, 2024

  1. update

    CppCXY committed Nov 22, 2024
    Copy the full SHA
    c368dbf View commit details
  2. fix build

    CppCXY committed Nov 22, 2024
    Copy the full SHA
    9b16d1d View commit details
  3. try add zig build

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

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

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

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

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

    CppCXY committed Nov 22, 2024
    Copy the full SHA
    1cea3f6 View commit details
  9. 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
  2. build for linux riscv64

    CppCXY committed Nov 29, 2024
    Copy the full SHA
    6b3a18b View commit details
  3. try fix build

    CppCXY committed Nov 29, 2024
    Copy the full SHA
    5205afe View commit details
  4. add riscv64 to release

    CppCXY committed Nov 29, 2024
    Copy the full SHA
    f87a0cc View commit details
  5. fix build

    CppCXY committed Nov 29, 2024
    Copy the full SHA
    8f8be10 View commit details

Commits on Mar 23, 2025

  1. Fixed build on FreeBSD

    On FreeBSD and other systems bash is not always in /bin/bash.
    
    Further add the `-p` flag to the `mkdir` to not fail if the directory
    already exists.
    raphaelahrens committed Mar 23, 2025
    Copy the full SHA
    8db9e93 View commit details

Commits on May 20, 2025

  1. Merge pull request #6 from raphaelahrens/main

    Fixed build on FreeBSD
    CppCXY authored May 20, 2025
    Copy the full SHA
    790f083 View commit details
Showing 1,298 changed files with 1,040 additions and 169,099 deletions.
79 changes: 55 additions & 24 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -16,14 +16,17 @@ jobs:
fail-fast: false
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-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 }
- { os: macos-latest, target: aarch64-apple-darwin, platform: darwin-arm64, cross: general }
- { os: windows-latest, target: x86_64-pc-windows-msvc, platform: win32-x64, cross: general }
- { os: windows-latest, target: i686-pc-windows-msvc, platform: win32-ia32, cross: general }
- { os: ubuntu-20.04, target: x86_64-unknown-linux-gnu, platform: linux-x64, cross: general }
- { 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-22.04, target: riscv64gc-unknown-linux-gnu, platform: linux-riscv64, cross: cross }
- { 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 }
- { os: macos-latest, target: aarch64-apple-darwin, platform: darwin-arm64, cross: general }
- { os: windows-latest, target: x86_64-pc-windows-msvc, platform: win32-x64, cross: general }
- { os: windows-latest, target: i686-pc-windows-msvc, platform: win32-ia32, cross: general }
- { os: windows-latest, target: aarch64-pc-windows-msvc, platform: win32-arm64, cross: general }
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
@@ -46,25 +49,38 @@ jobs:
run: |
cargo install cross
cross build --release --target ${{ matrix.target }} --features no_format -p luals
- name: package-unix
if: ${{ matrix.os != 'windows-latest' }}
- name: Build -zigbuild
if: ${{ matrix.cross == 'zigbuild' }}
run: |
mkdir -p ${{ github.workspace }}/artifact
cp ${{ github.workspace }}/target/${{ matrix.target }}/release/lua-language-server ${{ github.workspace }}/artifact/
cp -r "${{ github.workspace }}/resources" "${{ github.workspace }}/artifact/"
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: |
python publish/workflow_copy_files.py . ${{ github.workspace }}/artifact
mkdir -p ${{ github.workspace }}/artifact/bin
cp ${{ github.workspace }}/target/${{ matrix.target }}/release/lua-language-server ${{ github.workspace }}/artifact/bin
- name: package-windows
if: ${{ matrix.os == 'windows-latest' }}
run: |
New-Item -ItemType Directory -Path "${{ github.workspace }}/artifact"
Copy-Item -Path ${{ github.workspace }}\target\${{ matrix.target }}\release\lua-language-server.exe -Destination ${{ github.workspace }}\artifact\
Copy-Item -Path ${{ github.workspace }}\resources -Destination ${{ github.workspace }}\artifact\ -Recurse
python publish/workflow_copy_files.py . "${{ github.workspace }}/artifact"
New-Item -ItemType Directory -Path "${{ github.workspace }}/artifact/bin"
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
@@ -82,17 +98,28 @@ jobs:
with:
filename: lua-language-server-win32-ia32.zip
path: lua-language-server-win32-ia32
- name: zip windows package win32-arm64
uses: TheDoctor0/zip-release@v0.2.1
with:
filename: lua-language-server-win32-arm64.zip
path: lua-language-server-win32-arm64
- name: tar unix
run: |
chmod +x lua-language-server-linux-x64/lua-language-server
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/lua-language-server
tar -czf lua-language-server-linux-aarch64.tar.gz -C lua-language-server-linux-arm64 .
chmod +x lua-language-server-linux-musl/lua-language-server
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-darwin-x64/lua-language-server
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-linux-riscv64/bin/lua-language-server
tar -czf lua-language-server-linux-riscv64.tar.gz -C lua-language-server-linux-riscv64 .
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/lua-language-server
chmod +x lua-language-server-darwin-arm64/bin/lua-language-server
tar -czf lua-language-server-darwin-arm64.tar.gz -C lua-language-server-darwin-arm64 .
- name: Release
uses: softprops/action-gh-release@v2
@@ -103,9 +130,13 @@ jobs:
files: |
lua-language-server-win32-x64.zip
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-linux-riscv64.tar.gz
lua-language-server-darwin-x64.tar.gz
lua-language-server-darwin-arm64.tar.gz
token: ${{ secrets.RELEASE }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -2,3 +2,5 @@
/dist
/resources/log
/log
/bin
/server
File renamed without changes.
64 changes: 43 additions & 21 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -7,41 +7,63 @@
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'luals-rust'",
"name": "Debug executable 'luals' rust part",
"cargo": {
"args": [
"build",
"--bin=lua-language-server",
"--package=luals-rust"
"--package=luals"
],
"filter": {
"name": "lua-language-server",
"kind": "bin"
}
},
"args": [

],
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'luals-rust'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=luals-rust",
"--package=luals-rust"
"name": "🍄attach",
"type": "lua",
"request": "attach",
"stopOnEntry": false,
"address": "127.0.0.1:11428",
"outputCapture": [],
"sourceFormat": "string",
"sourceMaps": [
[
"script/*",
"${workspaceFolder}/script/*"
]
],
"windows": {
"sourceMaps": [
[
"script\\*",
"${workspaceFolder}/script/*"
]
],
"filter": {
"name": "luals-rust",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
},
{
"name": "🍺test",
"type": "lua",
"request": "launch",
"stopOnEntry": false,
"luaexe": "${workspaceFolder}/bin/lua-language-server",
"program": "${workspaceFolder}/test.lua",
"luaVersion": "lua54",
"sourceCoding": "utf8",
"console": "integratedTerminal",
"address": "127.0.0.1:11428",
"internalConsoleOptions": "openOnSessionStart",
"outputCapture": [
"print",
"stderr",
],
"windows": {
"luaexe": "${workspaceFolder}/bin/lua-language-server.exe"
}
},
]
}
Loading