Skip to content

fix: import path resolution#3181

Merged
Techatrix merged 1 commit intozigtools:0.16.xfrom
thrombe:import-fix
Apr 20, 2026
Merged

fix: import path resolution#3181
Techatrix merged 1 commit intozigtools:0.16.xfrom
thrombe:import-fix

Conversation

@thrombe
Copy link
Copy Markdown

@thrombe thrombe commented Apr 18, 2026

this is a fix for some @cInclude resolution issues.

on helix, hitting goto definition on @cInclude was leading me to paths like /nix/store/h8z9vbggppvs1nnk43bmhqa8d7mciln4-python3-3.12.13-env/include/portaudio.h, which obviously did not make sense.
on debugging, i found that commit e1afcf7 introduced a bug in goto.zig:263

related issues:
#2593

minimal example: https://github.com/thrombe/zls/tree/import-bugs/examples/import_bug

@nektro
Copy link
Copy Markdown
Contributor

nektro commented Apr 18, 2026

#3179

@Techatrix
Copy link
Copy Markdown
Member

#3179

This change is may still be used for the 0.16.x branch in case a ZLS 0.16.1 release is made.

@Techatrix Techatrix changed the base branch from master to 0.16.x April 18, 2026 21:09
@Techatrix Techatrix merged commit 4d41bbb into zigtools:0.16.x Apr 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants