Skip to content

Commit 16a7b50

Browse files
Updated module versions and README (#52)
* updating rockspec for new versions/release * removing macos build * Update README.md
1 parent 52431ad commit 16a7b50

File tree

5 files changed

+59
-49
lines changed

5 files changed

+59
-49
lines changed

.github/workflows/create-binaries.yml

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,32 @@ on:
77
pull_request:
88

99
jobs:
10-
macos:
11-
strategy:
12-
fail-fast: false
13-
matrix:
14-
os: [macos, macos-arm64]
15-
include:
16-
- os: macos
17-
runner: macos-13
18-
- os: macos-arm64
19-
runner: macos-latest
20-
name: ${{ matrix.os }}
21-
runs-on: ${{ matrix.runner }}
22-
steps:
23-
# Checks-out the repository under $GITHUB_WORKSPACE.
24-
- uses: actions/checkout@v4
25-
- name: Build teal-language-server (${{ matrix.os }})
26-
shell: bash
27-
run: |
28-
./scripts/create_binary.sh
29-
- uses: actions/upload-artifact@v4
30-
if: always()
31-
with:
32-
name: tls-${{matrix.os}}
33-
path: "./tls"
10+
# Not doing macos for now, we can get back to it in https://github.com/teal-language/teal-language-server/issues/53
11+
# macos:
12+
# strategy:
13+
# fail-fast: false
14+
# matrix:
15+
# os: [macos, macos-arm64]
16+
# include:
17+
# - os: macos
18+
# runner: macos-13
19+
# - os: macos-arm64
20+
# runner: macos-latest
21+
# name: ${{ matrix.os }}
22+
# runs-on: ${{ matrix.runner }}
23+
# steps:
24+
# # Checks-out the repository under $GITHUB_WORKSPACE.
25+
# - uses: actions/checkout@v4
26+
# - name: Build teal-language-server (${{ matrix.os }})
27+
# shell: bash
28+
# run: |
29+
# ./scripts/create_binary.sh
30+
# codesign -s - "./tls/bin/lua"
31+
# - uses: actions/upload-artifact@v4
32+
# if: always()
33+
# with:
34+
# name: tls-${{matrix.os}}
35+
# path: "./tls"
3436

3537
windows:
3638
strategy:
@@ -40,7 +42,7 @@ jobs:
4042
# waiting on new luarocks release for fix, so we don't need to install via choco
4143
- name: install tree-sitter-cli
4244
run: |
43-
choco install tree-sitter --version 0.24.4
45+
choco install tree-sitter --version 0.24.7
4446
- name: verify tree-sitter-cli is installed on path
4547
run: tree-sitter --version
4648

@@ -51,7 +53,7 @@ jobs:
5153
- uses: luarocks/gh-actions-luarocks@v5
5254

5355
- name: luarocks workaround for tree-sitter
54-
run: luarocks config --lua-version 5.4 rocks_provided.tree-sitter-cli 0.24.4-2
56+
run: luarocks config --lua-version 5.4 rocks_provided.tree-sitter-cli 0.24.7-2
5557

5658
- name: Build teal-language-server
5759
run: |

README.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1+
[![test](https://github.com/teal-language/teal-language-server/actions/workflows/test.yml/badge.svg)](https://github.com/teal-language/teal-language-server/actions/workflows/test.yml)
12

23
# Teal Language Server
34

45
A language server for the [Teal language](https://github.com/teal-language/tl)
56

6-
[![test](https://github.com/teal-language/teal-language-server/actions/workflows/test.yml/badge.svg)](https://github.com/teal-language/teal-language-server/actions/workflows/test.yml)
77

8-
# Installation
8+
## Installation
99

10-
### From luarocks
10+
### From luarocks (Linux and macOS)
1111

1212
* `luarocks install teal-language-server`
13-
* `teal-language-server`
13+
* The `teal-language-server` program should be installed
1414

15-
Tested on Windows, Linux and macOS
15+
Tested on Linux and macOS. It's currently a bit of a struggle to install via LuaRocks on Windows. We recommend using the binaries from the release on Windows.
16+
17+
### From GitHub Release Binaries (Windows)
18+
We provide binaries for Windows on our [GitHub Release](https://github.com/teal-language/teal-language-server/releases) page. You should be able to download and extract the the latest version from there.
1619

1720
### From source
1821

@@ -21,14 +24,14 @@ Tested on Windows, Linux and macOS
2124
* `scripts/setup_local_luarocks`
2225
* `./lua_modules/bin/teal-language-server`
2326

24-
# Features
27+
## Features
2528

2629
* Go to definition (`textDocument/definition`)
2730
* Linting (`textDocument/publishDiagnostics`)
2831
* Intellisense (`textDocument/completion`)
2932
* Hover (`textDocument/hover`)
3033

31-
# Editor Setup
34+
## Editor Setup
3235

3336
### Neovim
3437

@@ -37,10 +40,14 @@ Install the [lspconfig plugin](https://github.com/neovim/nvim-lspconfig) and put
3740
```lua
3841
local lspconfig = require("lspconfig")
3942

43+
-- as long as teal-language-server is in your PATH this should work
4044
lspconfig.teal_ls.setup {}
45+
46+
-- if it's not in your path, you can specify where teal-languag-server is by setting cmd. For example on Windows:
47+
-- lspconfig.teal_ls.setup({cmd = { 'C:\\opt\\tls-windows\\bin\\teal-language-server.bat' },})
4148
```
4249

43-
# Usage
50+
## Usage
4451

4552
```
4653
teal-language-server [--verbose=true] [--log-mode=none|by_proj_path|by_date]
@@ -50,5 +57,5 @@ Note:
5057

5158
* All args are optional
5259
* By default, logging is 'none' which disables logging completely
53-
* When logging is set to by_proj_path or by_date, the log is output to `[User Home Directory]/.cache/teal-language-server`
60+
* When logging is set to `by_proj_path` or `by_date`, the log is output to `[User Home Directory]/.cache/teal-language-server`
5461

luarocks.lock

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
return {
22
build_dependencies = {
33
luafilesystem = "1.8.0-1",
4-
["luarocks-build-tree-sitter-cli"] = "0.0.2-1",
54
["luarocks-build-treesitter-parser"] = "6.0.0-1"
65
},
76
dependencies = {
87
argparse = "0.7.1-1",
98
compat53 = "0.14.4-1",
109
inspect = "3.1.3-0",
11-
["ltreesitter-ts"] = "0.0.1-1",
10+
ltreesitter = "0.1.0-1",
1211
["lua-cjson"] = "2.1.0.10-1",
1312
luafilesystem = "1.8.0-1",
1413
lusc_luv = "4.0.1-1",
15-
luv = "1.50.0-1",
16-
tl = "0.24.4-1",
17-
["tree-sitter-cli"] = "0.24.4-2",
18-
["tree-sitter-teal"] = "0.0.33-1"
14+
luv = "1.51.0-0",
15+
tl = "0.24.5-1",
16+
["tree-sitter-cli"] = "0.24.7-2",
17+
["tree-sitter-teal"] = "0.0.34-1"
1918
},
2019
}

scripts/create_binary.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ hererocks -l "@v5.4.7" -r "@v3.11.1" tls
1313
source tls/bin/activate
1414
luarocks make
1515

16-
# TODO: see if we can just make this a build dependency?
16+
# tree-sitter-cli can't be added temporarily (as like a build dep),
17+
# so we can just remove it since we don't need it after the fact
1718
luarocks remove --force tree-sitter-cli
1819

1920
rm -f ./tls/bin/activate* ./tls/bin/get_deactivated_path.lua
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
rockspec_format = "3.0"
22

33
package = "teal-language-server"
4-
version = "0.1.1-1"
4+
version = "0.1.2-1"
55

66
source = {
77
url = "git+https://github.com/teal-language/teal-language-server.git",
8-
tag = "0.1.1"
8+
tag = "0.1.2"
99
}
1010

1111
description = {
@@ -21,15 +21,16 @@ build_dependencies = {
2121

2222
dependencies = {
2323
"luafilesystem",
24-
"tl == 0.24.4",
24+
"tl == 0.24.5",
2525
"lua-cjson",
2626
"argparse",
2727
"inspect",
28-
"luv ~> 1",
28+
"luv == 1.51.0",
2929
"lusc_luv >= 4.0",
30-
"ltreesitter-ts == 0.0.1", -- can be removed when ltreesitter updates
31-
"tree-sitter-cli == 0.24.4",
32-
"tree-sitter-teal == 0.0.33",
30+
"ltreesitter == 0.1.0",
31+
-- can update tree-sitter-cli version once tree-sitter-teal gets a new release
32+
"tree-sitter-cli == 0.24.7", -- can't really be a build dep, even though it's uneeded after install
33+
"tree-sitter-teal == 0.0.34",
3334
}
3435

3536
test_dependencies = { "busted~>2" }

0 commit comments

Comments
 (0)