Techatrix
51356517a9
Self hosted fixes ( #682 )
...
* fix compiler errors when using self-hosted
* move parameters into builder struct
* simplify code when using self hosted
* fix stage2 error `cast discards const qualifier`
* correctly return after finding method
* fix position context tests on self hosted
* remove unnecessary comptime in position context tests
2022-09-30 00:04:55 -04:00
Matt Knight
6ec6d4ea36
Revamp bulid.zig discovery ( #688 )
...
* walk down tree instead of up for build.zig discovery
* account for windows URIs in tests
2022-09-28 23:12:34 -04:00
J.C. Moyer
295669297a
Remove unnecessary indirection
2022-09-28 10:10:27 -04:00
J.C. Moyer
cbc6feeb76
Allocate build_runner args directly
2022-09-28 08:33:48 -04:00
J.C. Moyer
399fa7fd09
Move build options out of parse result instead of copying
2022-09-28 08:32:19 -04:00
J.C. Moyer
0b0e6a7cb9
Support for user-configurable build options
2022-09-28 04:14:49 -04:00
Lee Cannon
137edcd527
use StringArrayHashMap
to remove duplicate include paths
2022-09-26 22:01:00 +01:00
Techatrix
e9e9571fe5
avoid config copy for document store ( #669 )
2022-09-21 21:31:48 -04:00
Techatrix
cf52fd8190
report cImport failure using textDocument/publishDiagnostics
2022-09-19 19:53:41 +02:00
Techatrix
e28549fa7d
Completely overhaul offsets.zig ( #643 )
...
* completely overhaul offsets.zig
2022-09-16 00:33:49 +00:00
Techatrix
e6238e3354
improve width of log prefix ( #649 )
2022-09-13 16:12:32 -04:00
nullptrdevs
481903e72a
fix: fix an attempt to use null value in DocumentStore.resolveImport
...
caused by missing files or weird file path starting
e.g.
```
pub const abc = @import(".////abc.zig");
```
2022-08-25 15:52:07 -07:00
Techatrix
dc3199cffa
unmanage all the code
2022-08-23 12:44:26 +02:00
Lee Cannon
eb60f75413
workaround zig tarball bug ( #599 )
2022-08-23 00:01:44 +02:00
Techatrix
333b1bad8c
fix Path <-> Uri mismatch
2022-08-22 16:54:56 +02:00
Techatrix
f543659e31
correctly handle path to uri conversion
2022-08-20 15:34:36 +02:00
Techatrix
d57f8e3a64
add basic cImport support
2022-08-19 00:00:46 +02:00
Techatrix
0436b05b80
rename build_runner_cache_path
to global_cache_path
2022-08-18 23:14:32 +02:00
Techatrix
1859afd4c5
emit JSON formatted packages & include dirs in build_runner.zig
2022-08-18 22:56:03 +02:00
Techatrix
c9d41650da
fix 'Cannot resolve std library import'
2022-08-05 13:01:39 +02:00
Techatrix
ae5da361bf
Merge branch 'zigtools:master' into session-tests
2022-08-03 21:11:43 +00:00
Lee Cannon
d83e37d99a
provide build_runner command on failure ( #569 )
2022-08-03 13:43:34 -04:00
Techatrix
75570aef3c
add writer interface to Server & move main to main.zig
2022-07-31 23:38:27 +02:00
haze
528fd26a13
update format specifiers for optional strings ( #564 )
2022-07-27 09:41:45 -04:00
Auguste Rame
6f19772c17
Fix config source of truth problems, refactor some more
2022-07-15 18:06:18 +02:00
Auguste Rame
4507f4a275
Add Discord link, DocumentStore now uses the config source of truth!
2022-07-15 14:51:36 +02:00
Yuri Pieters
178e823d77
Ease debugging package loading from build_runner
2022-06-24 16:15:01 -04:00
Auguste Rame
29d2dd6802
Add tracy
2022-06-06 00:28:52 -04:00
Hugo Machet
fa946526c2
builtin_uri: Fix typo in log message
2022-01-28 12:04:20 +01:00
Meghan Denny
54d8f3273c
builtin_path might not be set if zig_exe_path isnt found
2021-12-29 21:17:44 -08:00
Meghan Denny
9006584835
uriFromImportStr expects a uri not a path
2021-12-29 21:08:13 -08:00
Meghan Denny
3fdab6c2fa
add a default option for import(builtin)
2021-12-29 19:35:16 -08:00
Marten Ringwelski
abe82f6069
build_runner: Require some paths to be given ( #369 )
...
We now require the following to ge given in the cli args:
- zig_exe
- build_root
- cache_root
- global_cache_root
This fixes the path for packages that use one or more from the above to place
their files.
2021-12-11 12:42:18 -05:00
maxxnino
5fd35f7efe
Fix zigtools/zls#389
2021-12-03 11:49:41 -05:00
Matt Knight
f9133ffdec
allocgate defeated
2021-12-03 08:00:22 -05:00
MineBill
e469d8171f
Fixes errors that are caused by using deprecated functions
2021-11-30 16:24:37 -05:00
Benjamin Feng
0f65093812
Fix off-by-one deinit on DocumentStore
2021-10-24 01:02:52 -04:00
Meghan Denny
aae82d29bd
fix capitalization of top level fields structs
2021-10-19 19:26:57 -07:00