profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/zigtools/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
ZigTools zigtools Tools for every Ziguana! Not affiliated with the ZSF :)

zigtools/zls 580

Zig LSP implementation + Zig Language Server

zigtools/zpm 35

Package dependency generator; WIP

zigtools/zls-vscode 34

ZLS Client for VSCode

zigtools/zpm-server 5

Open API Server providing a filterable list of curated Zig packages

zigtools/zpm-frontend 4

Svelte frontend for zpm

issue commentzigtools/zls

crashes in Emacs

That second crash also happens for me.

If it helps, I can reproduce it reliably with the default main.zig from zig init-exe.

Running on Linux.

My zls config is

{
  "zig_exe_path": "<REDACTED>",
  "enable_snippets": true,
  "warn_style": true,
  "enable_semantic_tokens": true,
  "operator_completions": true,
  "include_at_in_builtins": false,
  "max_detail_length": 1048576
}
q60

comment created time in 2 days

issue openedzigtools/zls

Feature Request: workspace_symbol

I very much like fuzzy finding with workspace_symbol in telescope, but I get "LSP: server does not support workspace_symbol".

The protocol details.

created time in 3 days

startedzigtools/zls

started time in 4 days

push eventzigtools/zls

pyxel

commit sha 03f70be32a8bba7d16eb894a97779c7525a5ddfc

refactor: update ast with addrspace changes

view details

push time in 5 days

PR merged zigtools/zls

Update AST to include addrspace changes

This adds support the new addrspace_node property on zig.Ast.full.PtrType.Components which was added in ziglang/zig@ccc7f99.

+4 -0

0 comment

1 changed file

xpyxel

pr closed time in 5 days

startedzigtools/zls

started time in 5 days

PR opened zigtools/zls

Update AST to include addrspace changes

This adds support the new addrspace_node property on zig.Ast.full.PtrType.Components which was added in ziglang/zig@ccc7f99.

+4 -0

0 comment

1 changed file

pr created time in 5 days

fork xpyxel/zls

Zig LSP implementation + Zig Language Server

fork in 5 days

issue openedzigtools/zls

Building from Zig master results in compile error: missing field: 'addrspace_node'

Hi,

I cloned ZLS and downloaded the latest version of Zig master. Trying to compile ZLS from source resulted in the following compile error:

$ ../zig-macos-x86_64-0.9.0-dev/zig build -Drelease-safe

./src/ast.zig:65:31: error: missing field: 'addrspace_node'
    return fullPtrType(tree, .{
                              ^
./src/ast.zig:91:31: error: missing field: 'addrspace_node'
    return fullPtrType(tree, .{
                              ^
./src/ast.zig:105:31: error: missing field: 'addrspace_node'
    return fullPtrType(tree, .{
                              ^
./src/ast.zig:78:31: error: missing field: 'addrspace_node'
    return fullPtrType(tree, .{
                              ^

I was able to get it to compile by just going in and adding .addrspace_node = 0 to each of the error locations. I have no idea if that's the right thing to do, so I'm not going to submit a PR.

This is on MacOS with the Zig compiler named zig-macos-x86_64-0.9.0-dev.1133+d722f0cc6.tar.xz from the main Zig downloads page.

created time in 5 days

startedzigtools/zls

started time in 6 days

startedzigtools/zls

started time in 7 days

startedzigtools/zls

started time in 7 days

startedzigtools/zls

started time in 9 days

startedzigtools/zls

started time in 9 days

issue closedzigtools/zls

std-os-reorg breaks ZLS

https://github.com/ziglang/zig/pull/9618 breaks ZLS.

closed time in 11 days

sagehane

issue commentzigtools/zls

std-os-reorg breaks ZLS

Resolved as of https://github.com/zigtools/zls/commit/c5414796a49dd5115a3ec398ed6ce6363ac6a8c8.

sagehane

comment created time in 11 days

startedzigtools/zls

started time in 11 days

issue commentzigtools/zls

Build fails

#392 was merged

Yep built succeeds now! Thx

haffla

comment created time in 11 days

issue closedzigtools/zls

Build fails

Hi,

I am trying to build zls following the instructions in the README.

My zig version is 0.9.0-dev.927+eb5e4ac49.

But the build step fails with

/Users/.../zls/src/main.zig:953:21: error: use of undeclared identifier 'ast'
fn hasComment(tree: ast.Tree, start_token: ast.TokenIndex, end_token: ast.TokenIndex) bool {

Any idea?

(New to zig... Trying to make my editor work with zig first)

closed time in 11 days

haffla

startedzigtools/zls

started time in 12 days

issue commentzigtools/zls

Build fails

#392 was merged

haffla

comment created time in 12 days

startedzigtools/zls

started time in 12 days

startedzigtools/zls

started time in 13 days

issue commentzigtools/zls

Missing symbols in the MacOS build?

same issue. (btw, I'm on a M1 chip)

Also tried building from source, got this:

$ zig build -Drelease-safe
 build -Drelease-safe
./build.zig:12:26: error: no member named 'addOptions' in struct 'std.build.Builder'
    const exe_options = b.addOptions();
                         ^
/opt/homebrew/Cellar/zig/0.8.1/lib/zig/std/special/build_runner.zig:170:24: note: referenced here
        .ErrorUnion => try root.build(builder),
                       ^

$ zig version
0.8.1
InterplanetaryEngineer

comment created time in 14 days

issue openedzigtools/zls

autocompletion and jump to definition don't work for packages with generated files

Using Windows. Ran into this problem using vulkan-zig, which generates a vk.zig file in the zig-cache directory and adds it as a package. Autocompletion/jump to definition does not work at all with this package.

Here's an example of a build script which also causes this problem: https://zigbin.io/bd15a1. Autocompletion/jump to definition work again when hi.zig is moved to the build directory, so zls might be confused about where it is.

created time in 15 days

startedzigtools/zls

started time in 15 days

startedzigtools/zls

started time in 16 days