Comments (1)
I'm also running into this issue using 0.13.0-dev.29+bb19bee
. It looks like zls is ignoring the initialization accesses to the struct's fields when it searches for references as part of the renaming request. These references are also missing when using the server's textDocument/reference
capability. I'm not super familiar with the language/ zls code base yet, but after a bit of poking around it looks like the references are missed here:
zls/src/features/references.zig
Lines 95 to 135 in 93b7bbd
If I add a Nevermind, definitely not .assign_destructure
arm to the switch block, it looks like that matches up with the missing references to the field initializations (I'm still not 100% confident, though). Still working on how to properly add the appropriate information to the references builder, but hopefully this helps narrow down the issue :).assign_destructure
.
Related #1700
from zls.
Related Issues (20)
- Raylib autocomplete doesn't work
- ZLS fails to handle linking with steps that install generated headers
- Struct skeleton with pointer to element in a slice not found HOT 3
- Building ZLS failing: "error: DownloadFailed" HOT 1
- Fails to build on 0.13.0-dev.46+3648d7df1 HOT 2
- Fix build under NetBSD/posix
- Release missing tar.gz HOT 2
- build fails when inside other git repo HOT 1
- VSCode constantly freezes with `Saving 'file.zig': Running 'Zig Language' Formatter` HOT 5
- semicolon autofix sometimes results in invalid code HOT 4
- Inlay hints do not recognize the self parameter
- Confusing inlay hints with arrays of unknown types
- ZLS intellisense suggests duplicate declarations in complex namespace types HOT 1
- array_list.insertSlice API change in zig std library breaks build for all zls 0.13.x commits HOT 10
- Structs not folding in VS Code HOT 2
- Annotations are incorrect HOT 5
- autofix with catch discard is broken
- Auto completion of c functions does not work with the latest zls. HOT 2
- Preserve documentation in C imports HOT 2
- Remove `main` snippet HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zls.