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

All of std should be fully auto-completable by tools like zls #14209

Closed
Jarred-Sumner opened this issue Jan 5, 2023 · 1 comment
Closed

All of std should be fully auto-completable by tools like zls #14209

Jarred-Sumner opened this issue Jan 5, 2023 · 1 comment
Labels
bug Observed behavior contradicts documented or intended behavior

Comments

@Jarred-Sumner
Copy link
Contributor

Zig Version

0.11.0-dev.1095+8bd734d60

Steps to Reproduce and Observed Behavior

  1. Type std.os.sockaddr
  2. No completions appear. Data types don't either. Go-to definition doesn't help

Video:

out.mp4

Expected Behavior

All of std should be fully auto-completable from the text editor.

When you use Rust, completions work relatively consistently. In-editor feedback reports when the wrong number of arguments are passed to a function. It doesn't take more than a second or two to update the red squiggly lines. This improves developer productivity.

Video:

socket.mp4

When you use Go, completions work too.

out.mp4
@Jarred-Sumner Jarred-Sumner added the bug Observed behavior contradicts documented or intended behavior label Jan 5, 2023
@ifreund
Copy link
Member

ifreund commented Jan 5, 2023

Closing as a duplicate of #615. Specific things that zls does not complete are zls bugs/limitations, likely due to zls not (yet?) implementing a complete comptime evaluation engine.

The only thing we can do on the Zig compiler side is to expose the analysis done by the compiler over some API to make things easier for zls and other completion engines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

2 participants