Commit Graph

90 Commits

Author SHA1 Message Date
Techatrix
94ec3a0a86
Debugging utilities (#860)
* add debug printing for Ast and DocumentScope

* add optional failing allocator
2022-12-30 18:42:53 -05:00
Álan Crístoffer
c6d74dbca5
fix: tres not available in a nix environment. (#855) 2022-12-29 13:36:38 -05:00
Techatrix
61c0981294
Use zig-lsp-codegen (#850)
* add lsp.zig

* change references from types.zig to lsp.zig

* remove types.zig and requests.zig

* add tres as a submodule

* transition codebase from types.zig to lsp.zig

* update lsp.zig

* completely overhaul message handler

* fix memory errors

* partially transition tests to lsp.zig

* update lsp.zig

* more test fixes

* disable failing tests

* fix message handling bugs

* fix remaining tests

* access correct union in diff.applyTextEdits

* more message handler fixes

* run zig fmt

* update tres submodule

* fix memory access to freed memory

* simplify initialize_msg for testing

* check if publishDiagnostics is supported
2022-12-27 01:47:57 -05:00
Steven Kabbes
23ef018521 build: bump zig min version 2022-12-18 18:05:51 -07:00
nullptrdevs
3526f5fb84
Zig @call changes (#822)
First parameter is now a `std.builtin.CallModifier`.
2022-12-14 20:58:38 -05:00
Lee Cannon
878464ea72
Merge pull request #816 from alexnask/ascii-deprecated-removed
Use new versions of now removed std.ascii declarations
2022-12-12 00:18:23 +00:00
Techatrix
1ae341850e
automatically generate config associated files (#813) 2022-12-11 13:10:48 +02:00
Alexandros Naskos
e322ca4fb5
Fix build.zig comment 2022-12-10 23:23:39 +02:00
Alexandros Naskos
3cac23f8a1
Fix references to now removed, previously deprecated std.ascii declarations 2022-12-10 23:21:55 +02:00
Auguste Rame
1e99692d5c
Enable stage2 (#810) 2022-12-07 11:39:46 -05:00
Auguste Rame
580469cd32
Fix rogue resize, bump minimum version (#805) 2022-12-03 21:35:51 -05:00
Alexandros Naskos
56a65f42bf
Added tuple type support, fixed compilation with zig master branch (#786)
* Added tuple type support, fixed compilation with zig master branch

* Removed unneeded comment

* Bumped up minimum zig version required to build zls
2022-11-26 12:22:16 -05:00
Auguste Rame
369b851dc7
Revert "move to stage2 (#781)" (#783)
This reverts commit 29679ee6f8.
2022-11-25 19:18:32 -05:00
Techatrix
29679ee6f8
move to stage2 (#781) 2022-11-25 16:31:27 -05:00
Auguste Rame
411e74d364
Add param type resolution & stop using stage2, still a bit broken :( 2022-11-09 23:17:21 -05:00
Auguste Rame
c6ab7e8a0f
Casts++, compileLog, pointers 2022-11-08 14:42:40 -05:00
Auguste Rame
e6b691e447
More builtins, use stage2 because we can 2022-11-08 14:42:33 -05:00
Meghan
bb727d263b
update minimum zig version
followup to 886cfeacb5
2022-11-01 22:30:16 -07:00
Meghan
7aa8f839f1
ci fix 2022-10-13 09:49:09 -07:00
Meghan
e1c86158cc
fix CI oops 2022-10-13 09:47:22 -07:00
Meghan
b434197fe8
build.zig: ensure user zig matches program minimum 2022-10-13 09:44:25 -07:00
Techatrix
4b866a416b support generating test coverage with kcov 2022-09-21 20:11:04 +02:00
Techatrix
7f4f002380
Testing improvements (#662) 2022-09-18 22:47:06 +00:00
Techatrix
6933e1598a move updated units_test.zig into tests directory 2022-09-11 00:07:01 +02:00
Techatrix
38210d3e91 embedFile build_runner.zig in executable 2022-09-04 21:44:07 +02:00
Techatrix
4fe609e4c6 fallback when failing to run git describe 2022-09-02 22:21:55 +02:00
Techatrix
9dc694df24 report version just like zig 2022-09-02 20:10:05 +02:00
Techatrix
66b35d62b2 report zls version using git describe 2022-09-01 15:42:15 +02:00
Techatrix
f6082e837d prepare testing framework
- allow source files from tests as a package
- use `tests/tests.zig` as the entry point
- add `Context.requestAlloc`
2022-08-26 16:45:22 +02:00
Lee Cannon
ea138bc231
set use_stage1 in build.zig 2022-08-20 12:15:33 +01:00
Techatrix
805148125c revive session tests 2022-07-31 23:39:33 +02:00
Techatrix
75570aef3c add writer interface to Server & move main to main.zig 2022-07-31 23:38:27 +02:00
LeRoyce Pearson
542f49087e Add known-folders as a flake input
This allows the flake to work without passing in `?submodules=1`, which
makes it easy to include in other flakes.

This commit also makes it possible to override the path to the
`known-folders` package like so:

```
zig build -Dknown-folders=/path/to/known-folders.zig
```

This allows `flake.nix` to pass in the nix store path.
2022-07-18 14:35:00 -06:00
Auguste Rame
1d910ed973
Start refactoring main -> Server's globals 2022-07-17 12:00:29 +02:00
Auguste Rame
6f19772c17
Fix config source of truth problems, refactor some more 2022-07-15 18:06:18 +02:00
Sepruko
8d27b172aa Fix build.zig typo for enable_tracy using better wording 2022-07-09 05:24:22 -04:00
Auguste Rame
29d2dd6802 Add tracy 2022-06-06 00:28:52 -04:00
Auguste Rame
ebc6de9673 Remove zinput dependency 2022-06-05 13:36:43 -04:00
Lee Cannon
dcc125e115
use provided target for tests 2022-05-29 18:19:30 +01:00
Suirad
a78ccc8ccf update build.zig for recent zig changes 2022-05-27 23:41:44 -05:00
Meghan Denny
3fdab6c2fa add a default option for import(builtin) 2021-12-29 19:35:16 -08:00
Omar Alhammadi
5bae50bcfe changed default from .warn to .info 2021-11-02 22:13:53 -04:00
Omar Alhammadi
3531237afe Added build option log_level to allow the user to set the default log level for release builds. 2021-11-02 22:13:53 -04:00
Meghan Denny
8d46ceff07 use an enum for zig version 2021-10-19 19:26:57 -07:00
Meghan Denny
94acedfde3 build.zig- use std.builtin for better autocomplete 2021-10-19 19:26:57 -07:00
Meghan Denny
dc8affe122 add builtin data for 0.8.0 and 0.8.1 2021-09-30 17:53:14 -07:00
Meghan Denny
8390aaa70b use zinput as a package 2021-09-30 17:52:15 -07:00
Meghan Denny
6b3d4d7bd3 build.zig- use local builder 2021-09-30 17:46:10 -07:00
Michał Łępicki
ff23ea7c94 Fix build options for zig f30aa25cb 2021-08-28 17:22:41 +02:00
Lee Cannon
0eee9dcd9f
Update to new std.build changes
A few functions now take `std.build.FileSource`
2021-06-12 22:52:51 +01:00