Techatrix
3500aa7a76
update to new std.json api ( #1191 )
...
* update lsp.zig
* update to new `std.json` api
* update min zig version
* fix json api
2023-05-18 20:46:22 -04:00
Techatrix
d3f127e78e
Update tracy to 0.9.1 ( #1182 )
...
* update tracy to 0.9.1
* set allocation and callstack tracing by default when tracy is enabled
2023-05-09 18:38:09 -04:00
Sage Hane
449788c0a2
build.zig: Update minimum Zig version
2023-05-09 18:21:02 +02:00
Sage Hane
71a202f12a
build.zig: Update minimum Zig version
...
Requires the minimum version to support https://github.com/ziglang/zig/pull/15278
2023-04-29 12:19:42 +02:00
nullptrdevs
30c49e11df
Update config_gen
and data
2023-04-26 00:42:38 -07:00
nullptrdevs
5519b3a2c0
Mem fixes
...
* `gpa.deinit()` now returns an enum
* avoid double free when `--config-path` is specified
* avoid leaking memory in `Server.create` if `configChanged` returns err
2023-04-22 06:47:36 -07:00
Jakub Konka
5457cec8da
update to latest zig: add c_char type ( #1124 )
...
* update to latest zig: add c_char type
* Bump version, add c_char to isTypeIdent
2023-04-13 22:02:18 -04:00
nullptrdevs
99cd67e183
Update build to the new zig build API
2023-04-12 23:16:25 +01:00
Techatrix
31e133a559
update build.zig
2023-03-20 20:30:51 +01:00
Auguste Rame
121f68b970
Fix build runner ( #1029 )
...
* Fix build runner
* Add zls module, bump version
* Fix path from root issue in modules (thanks daremakemyday from Twitch :))
* Libraryify
* remove build_runner backward compatibility
* Remove some `= undefined`s in Server.zig
Makes library use less dangerous
* Consistent mem model + custom build runner possible
* Add build runner utils for third-party tooling
* Make logs removable in libraries with zls_ prefix
* Fix build runner CI
* Expose references
* Use new addModule
2023-03-05 14:08:31 -05:00
Meghan
a78950ce82
update zig submodules to new builtin dependency system ( #1017 )
...
* build.zig: collapse exe_options
* build.zig: convert zig submodules to new dependency system
* update minimum version so that package manager hashes work cross-platform
2023-03-03 01:26:15 -05:00
Techatrix
0f77fd5b0e
add multi object for loop support ( #1011 )
...
* run `zig fmt`
* add support for multi object for loops
* add completion tests on multi object for loops
* update minimum zig build version
* use multi object for loops in codebase
* Update tres to latest version
* fix panics when generating document scope on invalid for loops
2023-02-21 17:11:35 -05:00
Orhun Parmaksız
b635317e2a
build: add PIE (Position Independent Executable) option ( #1013 )
...
* build: add PIE (Position Independent Executable) option
2023-02-20 16:40:05 -05:00
Techarix
2dffa9ef25
Merge branch 'master' into intern-pool
2023-02-14 23:48:57 +01:00
travisstaloch
2071db440d
sync build.zig with latest std.build API changes ( #999 )
...
fixes build.zig now that b.path_root changed from a `[]const u8` to a
`std.build.Cache.Directory`.
2023-02-14 03:07:25 -05:00
Auguste Rame
bf19ed3ea9
Switch to Diff Match Patch (diffz) ( #982 )
...
* Add tests, note about correctness issue
* Use diffz (DiffMatchPatch)
2023-02-11 14:21:10 -05:00
Techarix
6278880f42
Merge branch 'master' into intern-pool
2023-02-08 20:10:17 +01:00
nullptrdevs
62068ae828
zig build system changes (modules) ( #976 )
2023-02-05 02:15:42 -05:00
nullptrdevs
bd539ae989
[std.zig.
] parse(alloc, src)
-> Ast.parse(alloc, src, Ast.Mode)
( #966 )
...
* Work in Zig's breaking changes (build sys apis)
* [`std.zig.`] `parse(alloc, src)` -> `Ast.parse(alloc, src, Ast.Mode)`
2023-02-04 18:19:24 +00:00
Techarix
ef0cfadf8a
Merge branch 'master' into intern-pool
2023-02-03 23:19:40 +01:00
nullptrdevs
6297536d7b
Work in Zig's breaking changes (build sys apis) ( #955 )
2023-02-03 17:06:57 -05:00
Techatrix
ca644d67c1
Merge branch 'master' into intern-pool
2023-01-26 16:16:40 +01:00
Techatrix
fe54fb7cfa
Use new ast helper functions ( #939 )
...
* use new ast helper functions
* use new ast helper functions
* update min build version
* fix merge conflicts
2023-01-24 18:55:38 -05:00
Techatrix
db97a19233
add test filter to src tests
2023-01-22 21:57:40 +01:00
Techatrix
ba42fd2bb9
Merge branch 'master' into intern-pool
2023-01-20 22:23:44 +01:00
Techatrix
06fcfcb3db
add internpool to test steps
2023-01-20 17:04:59 +01:00
Techatrix
fa5828496e
Generate data files in config_gen.zig ( #903 )
...
* generate data files in config_gen.zig
* remove trailing comma from config.json
* update README.md
* run zig build gen
* handle some unclosed tags
* update data file header
* generate new data files
* remove old data file generators
2023-01-19 01:46:42 -05:00
Alex Kladov
6949989ece
Allow setting test filter in zig build test
( #909 )
...
Example usage:
$ zig build test -Dtest-filter=definition
2023-01-17 12:40:26 -05:00
Techatrix
bbbd54498d
check submodules in build.zig ( #904 )
2023-01-10 13:36:28 +01:00
Techatrix
2717b0fba1
Verify minimum zig version at comptime ( #885 )
...
* verify minimum zig version at comptime
* run zig fmt
2023-01-06 13:59:58 -05:00
Techatrix
417bf9bd0a
add vscode config generation to zig build gen
( #862 )
...
* add vscode config generation to `zig build gen`
* correctly handle removing configs in config_gen.zig
* update log messages in config_gen.zig
2022-12-30 18:45:31 -05:00
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