Skip to content

codegen: InputOutput Error #2152

@jcalabro

Description

@jcalabro

Zig Version

0.14.0-dev.2577+271452d22

ZLS Version

0.14.0-dev (specifically 9fc45ca)

Client / Code Editor / Extensions

helix 25.1

Steps to Reproduce and Observed Behavior

Hi all, I'm getting an error unable to codegen: InputOutput on this line of the debugger. This just started happening the other day because I ran 0.13.0 for a long time, and just upgraded both zig and zls.

Not 100% if this is a zig or a zls bug, but the program builds and runs just fine, and countNumberOfDigits isn't dead code; it's used all over this file.

Expected Behavior

I expect zls to be able to handle the linked zig file and give me appropriate suggestions without giving me warnings or errors.

Relevant log output

2025-01-26T18:59:14.142 helix_view::document [ERROR] Formatter error: <stdin>:98:10: error: expected '=', found '('

2025-01-26T18:59:17.026 helix_view::document [ERROR] Formatter error: <stdin>:97:10: error: expected '=', found '('

2025-01-26T19:00:06.410 helix_lsp::transport [ERROR] zls err: <- StreamClosed
2025-01-26T19:12:44.862 helix_view::document [ERROR] Formatter error: <stdin>:2428:17: error: expected ';' after statement

2025-01-26T19:19:03.492 helix_view::document [ERROR] Formatter error: <stdin>:2416:49: error: expected '}', found ')'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions