Steven Kabbes
23ef018521
build: bump zig min version
2022-12-18 18:05:51 -07:00
Steven Kabbes
427620742a
track builtin API changes from zig/master
...
see: https://github.com/ziglang/zig/pull/13930
In this PR, std.builtin.Type.field_type is renamed to type
And there is discussion that all Enum layouts are .Auto
2022-12-18 12:45:36 -07:00
Lee Cannon
e65d5c5c23
Merge pull request #834 from travisstaloch/fix-for-issues-754-832
...
analysis.zig getPositionContext() - check for null
2022-12-18 00:56:30 +00:00
Travis Staloch
e09c773005
analysis.zig getPositionContext() - check for null
...
closes #754 and #832
this pr just adds `.label => {}` to the switch as suggested by
@nullptrdevs, thereby preventing the null unwrap. i checked that zls no
longer crashes when positioning the cursor on Server.zig:2287:41 which
is this line:
`break :blk .{ .WorkspaceEdit = edits };`
^ cursor here previously crashed zls
2022-12-17 15:37:49 -08:00
Techatrix
375daba743
improve behavior if zig_exe_path is not set ( #830 )
2022-12-17 03:03:05 -05:00
Techatrix
d679b19676
remove old stage1 code artifacts ( #831 )
2022-12-17 03:02:31 -05:00
Techatrix
5d6f23b5f1
fix integer underflow in ast.fullPtrType
( #829 )
2022-12-16 15:24:25 -05:00
Techatrix
e1973afafc
fix cimport duplicate messages & crash ( #828 )
2022-12-16 15:24:03 -05:00
Techatrix
68ac6f9f30
remove ast.tokenSlice()
( #824 )
2022-12-15 17:01:42 -05:00
Techatrix
c39a4eb2ab
simplify & refactor analysis code ( #823 )
2022-12-15 13:03:09 -05:00
nullptrdevs
3526f5fb84
Zig @call changes ( #822 )
...
First parameter is now a `std.builtin.CallModifier`.
2022-12-14 20:58:38 -05:00
Auguste Rame
d43329a9ee
Fix labels for real this time ( #819 )
2022-12-14 05:51:01 -05:00
Auguste Rame
0ab34abc0f
Bug stream fixes ( #818 )
...
* Fix glaring inlay hint issue; thanks for the report Nameless
* Fix label references; closes #728
2022-12-13 22:07:36 -05:00
Lee Cannon
5dca821eb6
Merge pull request #807 from matklad/flake
...
update flake
2022-12-12 00:19:47 +00: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
Lee Cannon
974bdff6b3
fix missed reference on windows
2022-12-12 00:13:13 +00:00
Techarix
748cd7d6a9
Merge remote-tracking branch 'origin/master' into intern-pool
2022-12-11 19:02:24 +01: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
Lee Cannon
9e658cdbb6
update TracyAllocator for new Allocator changes ( #812 )
...
* update TracyAllocator for new Allocator changes
* Add build with Tracy to CI to catch regressions
* disable Tracy CI step on macos
2022-12-08 14:32:50 -05:00
nullptrdevs
ddf3ef1389
main ci: upload an artifact per arch ( #809 )
...
* main ci: upload an artifact per arch
* main ci: do deploy only if 'zigtools' is the owner
2022-12-07 20:12:27 -05:00
Auguste Rame
1e99692d5c
Enable stage2 ( #810 )
2022-12-07 11:39:46 -05:00
Joseph Stahl
887539ed1a
Allocator.resize() does not adjust size of string allocated for URI to file path conversion ( #806 )
...
* fix missing backslash
* fix: zls escaping colon to %3A on URIs
ZLS escapes a colon char ":" as "%3A" when encoding file paths to URIs
When decoding, need to make the target string 2 character shorter
to compensate for length decrease when replacing %3A with :
* add new failing test because of resize()
* revert changes to %3A handling - problem seems to be with allocator.resize
* switch to realloc
* Fix test failures, revert errdefer->defer
* platform-specific URI tests
URI parsing is highly platform-specific
run Unix-style (file:///home/main.zig) on non-Windows test runners,
run Windows-style (file://c%3A/main.zig) on Windows test runners
2022-12-04 16:44:22 -05:00
Aleksey Kladov
66092239c2
update flake
...
Current one is too old:
[matklad@Ishmael:~/p/tb/zls]$ zig build
thread 5181 panic: Your Zig version v0.11.0-dev.38+b40fc7018 does not meet the minimum build requirement of v0.11.0-dev.323+30eb2a175
2022-12-04 12:19:50 +00:00
Auguste Rame
580469cd32
Fix rogue resize, bump minimum version ( #805 )
2022-12-03 21:35:51 -05:00
Alex Kladov
cfb0b023ad
fix #801 , IOOB in foldingRanges ( #802 )
...
* Add smoke tests for folding ranges
* fix index out of bounds in foldingRanges
closes #801
For invalid syntax trees, zig's parser seems to return bogus data where
startToken > endToken, which then causes everything else to crash.
This seems like a deeper issue, which needs to be fixed "properly", but
let's just paper over it here.
2022-12-03 17:23:13 +02:00
Alexandros Naskos
3ab859a304
Make sure zig lib path retrieved from zig env
is absolute ( #799 )
2022-12-02 23:22:35 +02:00
Auguste Rame
6ab2c68355
Allocgate 2.0 slain ( #791 )
...
* Allocgate 2.0 slain
* Tests now compile, but they fail
* Temporary bruteforce
2022-12-02 15:14:58 -05:00
Mikkel Gravgaard
f6f0a0dca5
Add aarch64-linux to targets ( #795 )
2022-12-02 04:01:09 -05:00
Techatrix
4f180712bb
add initial intern pool implementation
2022-12-02 00:08:45 +01:00
Techatrix
784047d952
add a dummy cancelRequest implementation ( #790 )
2022-12-01 04:00:08 -05:00
Lee Cannon
c3256c00e7
pass correct zig-cache path ( #789 )
2022-11-29 17:50:09 -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
Lee Cannon
34621b7358
Merge pull request #784 from matklad/selectionRange
...
textDocument/selectionRange
2022-11-26 14:27:03 +00:00
Aleksey Kladov
8731a37d1f
textDocument/selectionRange
...
closes #777
2022-11-26 11:31:46 +00:00
Auguste Rame
369b851dc7
Revert "move to stage2 ( #781 )" ( #783 )
...
This reverts commit 29679ee6f8
.
2022-11-25 19:18:32 -05:00
Techatrix
aa14772cfe
use textDocument/willSaveWaitUntil for autofix ( #780 )
2022-11-25 16:32:08 -05:00
Techatrix
29679ee6f8
move to stage2 ( #781 )
2022-11-25 16:31:27 -05:00
Techatrix
1ced17266c
set TextDocumentSync to Incremental ( #776 )
2022-11-22 21:05:29 -05:00
Lee Cannon
8428652146
Merge pull request #774 from nullptrdevs/patch-1
...
Disable label references until #728 is resolved
2022-11-22 17:37:13 +00:00
nullptrdevs
4794f1e8d9
Disable label references until #728 is resolved
2022-11-22 02:08:43 -08:00
Techatrix
ea2caee3ad
correctly find last full text change in applyTextEdits ( #772 )
2022-11-21 13:21:24 -05:00
halting
5f3d58edeb
fix anytype snippet ( #769 )
...
i forgot that
2022-11-20 15:16:15 -05:00
halting
245e11e033
snippets for primitive types ( #767 )
2022-11-19 14:59:12 -05:00
Techatrix
f09ffb63db
don't format files with syntax errors ( #766 )
...
* don't format files with syntax errors
* Remove showMessage
Co-authored-by: Auguste Rame <19855629+SuperAuguste@users.noreply.github.com>
2022-11-18 18:49:59 -05:00
Auguste Rame
40167a5b52
Simplify install procedure ( #764 )
...
* Shrink the README, simplify install procedure
* Remove old assets, goodbye cute badge :(
* Remove wiki references
* Actually describe what this is
2022-11-18 14:33:24 -05:00
Lee Cannon
88ed500439
Merge pull request #763 from thalting/master
...
update snippets
2022-11-17 14:52:37 +00:00
halting
d1aeec4c41
update snippets
2022-11-17 11:24:00 -03:00
Auguste Rame
87aa4c09e1
Quick comptime interpreter fix, place it behind an option ( #761 )
...
* Quick fix
* Add config option
2022-11-16 19:28:01 -05:00