Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build zls from zig master #1448

Closed
dmbfm opened this issue Sep 17, 2023 · 3 comments
Closed

Can't build zls from zig master #1448

dmbfm opened this issue Sep 17, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@dmbfm
Copy link

dmbfm commented Sep 17, 2023

Zig Version

0.12.0-dev.396+55f0d8b41

Zig Language Server Version

d013781

Steps to Reproduce

Just clone the repo and build with

zig build -Doptimize=ReleaseSafe

Expected Behavior

Build zls correctly

Actual Behavior

I get this output:

zig build-exe zls ReleaseSafe native: error: the following command failed with 16 compilation errors:
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/zig build-exe /Users/dfortes/Developer/Sources/zls/src/main.zig -OReleaseSafe --cache-dir /Users/dfortes/Developer/Sources/zls/zig-cache --global-cache-dir /Users/dfortes/.cache/zig --name zls --mod binned_allocator::/Users/dfortes/.cache/zig/p/1220363c7e27b2d3f39de6ff6e90f9537a0634199860fea237a55ddb1e1717f5d6a5/binned_allocator.zig --mod known-folders::/Users/dfortes/.cache/zig/p/122048992ca58a78318b6eba4f65c692564be5af3b30fbef50cd4abeda981b2e7fa5/known-folders.zig --mod build_options::/Users/dfortes/Developer/Sources/zls/zig-cache/c/da9474b2d62028807b330d8cfb036345/options.zig --mod version_data::/Users/dfortes/Developer/Sources/zls/zig-cache/o/df44e44e1cc66ae382d9249c6e4a0098/version_data_master_19617.zig --mod diffz::/Users/dfortes/.cache/zig/p/122089a8247a693cad53beb161bde6c30f71376cd4298798d45b32740c3581405864/DiffMatchPatch.zig --deps build_options,known-folders,diffz,binned_allocator,version_data --listen=- 
Build Summary: 3/6 steps succeeded; 1 failed (disable with --summary none)
install transitive failure
└─ install zls transitive failure
   └─ zig build-exe zls ReleaseSafe native 16 errors
src/ast.zig:365:18: error: switch must handle all possibilities
    while (true) switch (tags[n]) {
                 ^~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:3036:9: note: unhandled enumeration value: 'assign_destructure'
        assign_destructure,
        ^~~~~~~~~~~~~~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:2936:21: note: enum 'zig.Ast.Node.Tag' declared here
    pub const Tag = enum {
                    ^~~~
referenced by:
    nodeToLoc: src/offsets.zig:293:56
    getDiagnosticsFromZir: src/features/diagnostics.zig:532:43
    remaining reference traces hidden; use '-freference-trace' to see all reference traces
src/features/semantic_tokens.zig:275:5: error: switch must handle all possibilities
    switch (tag) {
    ^~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:3036:9: note: unhandled enumeration value: 'assign_destructure'
        assign_destructure,
        ^~~~~~~~~~~~~~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:2936:21: note: enum 'zig.Ast.Node.Tag' declared here
    pub const Tag = enum {
                    ^~~~
src/ast.zig:1245:5: error: switch must handle all possibilities
    switch (tag) {
    ^~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:3036:9: note: unhandled enumeration value: 'assign_destructure'
        assign_destructure,
        ^~~~~~~~~~~~~~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:2936:21: note: enum 'zig.Ast.Node.Tag' declared here
    pub const Tag = enum {
                    ^~~~
src/ast.zig:1245:5: error: switch must handle all possibilities
    switch (tag) {
    ^~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:3036:9: note: unhandled enumeration value: 'assign_destructure'
        assign_destructure,
        ^~~~~~~~~~~~~~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:2936:21: note: enum 'zig.Ast.Node.Tag' declared here
    pub const Tag = enum {
                    ^~~~
src/ast.zig:1245:5: error: switch must handle all possibilities
    switch (tag) {
    ^~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:3036:9: note: unhandled enumeration value: 'assign_destructure'
        assign_destructure,
        ^~~~~~~~~~~~~~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:2936:21: note: enum 'zig.Ast.Node.Tag' declared here
    pub const Tag = enum {
                    ^~~~
src/ast.zig:1245:5: error: switch must handle all possibilities
    switch (tag) {
    ^~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:3036:9: note: unhandled enumeration value: 'assign_destructure'
        assign_destructure,
        ^~~~~~~~~~~~~~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:2936:21: note: enum 'zig.Ast.Node.Tag' declared here
    pub const Tag = enum {
                    ^~~~
src/ast.zig:1245:5: error: switch must handle all possibilities
    switch (tag) {
    ^~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:3036:9: note: unhandled enumeration value: 'assign_destructure'
        assign_destructure,
        ^~~~~~~~~~~~~~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:2936:21: note: enum 'zig.Ast.Node.Tag' declared here
    pub const Tag = enum {
                    ^~~~
src/ast.zig:1245:5: error: switch must handle all possibilities
    switch (tag) {
    ^~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:3036:9: note: unhandled enumeration value: 'assign_destructure'
        assign_destructure,
        ^~~~~~~~~~~~~~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:2936:21: note: enum 'zig.Ast.Node.Tag' declared here
    pub const Tag = enum {
                    ^~~~
src/stage2/AstGen.zig:9859:9: error: switch must handle all possibilities
        switch (node_tags[node]) {
        ^~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:3036:9: note: unhandled enumeration value: 'assign_destructure'
        assign_destructure,
        ^~~~~~~~~~~~~~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:2936:21: note: enum 'zig.Ast.Node.Tag' declared here
    pub const Tag = enum {
                    ^~~~
src/stage2/AstGen.zig:10105:9: error: switch must handle all possibilities
        switch (node_tags[node]) {
        ^~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:3036:9: note: unhandled enumeration value: 'assign_destructure'
        assign_destructure,
        ^~~~~~~~~~~~~~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:2936:21: note: enum 'zig.Ast.Node.Tag' declared here
    pub const Tag = enum {
                    ^~~~
src/stage2/AstGen.zig:656:5: error: switch must handle all possibilities
    switch (node_tags[node]) {
    ^~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:3036:9: note: unhandled enumeration value: 'assign_destructure'
        assign_destructure,
        ^~~~~~~~~~~~~~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:2936:21: note: enum 'zig.Ast.Node.Tag' declared here
    pub const Tag = enum {
                    ^~~~
src/ast.zig:1245:5: error: switch must handle all possibilities
    switch (tag) {
    ^~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:3036:9: note: unhandled enumeration value: 'assign_destructure'
        assign_destructure,
        ^~~~~~~~~~~~~~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:2936:21: note: enum 'zig.Ast.Node.Tag' declared here
    pub const Tag = enum {
                    ^~~~
src/ast.zig:1245:5: error: switch must handle all possibilities
    switch (tag) {
    ^~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:3036:9: note: unhandled enumeration value: 'assign_destructure'
        assign_destructure,
        ^~~~~~~~~~~~~~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:2936:21: note: enum 'zig.Ast.Node.Tag' declared here
    pub const Tag = enum {
                    ^~~~
src/stage2/AstGen.zig:447:5: error: switch must handle all possibilities
    switch (node_tags[node]) {
    ^~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:3036:9: note: unhandled enumeration value: 'assign_destructure'
        assign_destructure,
        ^~~~~~~~~~~~~~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:2936:21: note: enum 'zig.Ast.Node.Tag' declared here
    pub const Tag = enum {
                    ^~~~
src/stage2/AstGen.zig:9374:9: error: switch must handle all possibilities
        switch (node_tags[node]) {
        ^~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:3036:9: note: unhandled enumeration value: 'assign_destructure'
        assign_destructure,
        ^~~~~~~~~~~~~~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:2936:21: note: enum 'zig.Ast.Node.Tag' declared here
    pub const Tag = enum {
                    ^~~~
src/stage2/AstGen.zig:9645:9: error: switch must handle all possibilities
        switch (node_tags[node]) {
        ^~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:3036:9: note: unhandled enumeration value: 'assign_destructure'
        assign_destructure,
        ^~~~~~~~~~~~~~~~~~
/Users/dfortes/zig/0.12.0-dev.396+55f0d8b41/files/lib/std/zig/Ast.zig:2936:21: note: enum 'zig.Ast.Node.Tag' declared here
    pub const Tag = enum {
                    ^~~~
@dmbfm dmbfm added the bug Something isn't working label Sep 17, 2023
@dmbfm dmbfm changed the title Can't build zls Can't build zls from zig master Sep 17, 2023
@dmbfm
Copy link
Author

dmbfm commented Sep 17, 2023

Seems to be an issue with my zig install.

@dmbfm dmbfm closed this as completed Sep 17, 2023
@Techatrix
Copy link
Member

this is not your fault. #1447 will fix this issue

@dmbfm
Copy link
Author

dmbfm commented Sep 17, 2023

Got it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants