zigtools / zls

A Zig language server supporting Zig developers with features like autocomplete and goto definition
MIT License
3.02k stars 299 forks source link

Config option 'zig_exe_path': expected file path but #2088

Open DendyGrobovshik opened 2 days ago

DendyGrobovshik commented 2 days ago

Zig Version

0.14.0-dev.2253+3a6a8b8aa

ZLS Version

0.13.0

Client / Code Editor / Extensions

vscode with Zig Language plugin

Steps to Reproduce and Observed Behavior

Provide zig path to folder with zig compiler also named zig, like /home/user/bin/zig/zig in vscode 'Zig: Path'. Then you'll get vscode warning config option 'zig_exe_path': expected file path but.

🛠️ Easiest way to fix it is to rename folder with compiler.

Expected Behavior

No warning if folder is named this way.

Relevant log output

No response

Techatrix commented 2 days ago

This is most likely unrelated to your issue but your Zig and ZLS versions are not compatible. Please visit the ZLS Installation Guide to install the appropriate ZLS version.