It might be my fault, but I've been using nvim for some time now with Odin.
This is with the latest Odin and Ols branches, linux.
Reproduction Steps
- try to rename
window to test, from within shared.odin. It works, but misses the rename of thread_data.config.display.window.resolution.x in renderer.odin...window stays as just that. Expected it to get renamed
- Do the same in reverse, start the rename from within
renderer.odin and it will rename the upstream in shared.odin but not the ones in the file that initiated the rename.
- Same results when doing a search for files that have/use
window, it wont return the results in renderer.odin.
ose/renderer/renderer.odin
package renderer
import sdl "vendor:sdl3"
import "../engine"
import "../shared"
renderer_init :: proc(thread_data: ^engine.Thread_Data) {
width: = thread_data.config.display.window.resolution.x
height: = thread_data.config.display.window.resolution.y
}
ose/engine/types.odin
package engine
import "../shared"
Thread_Data :: struct {
config: shared.Config,
}
ose/shared/shared.odin
Window_Config :: struct {
resolution: Vector2i,
}
Display_Config :: struct {
window: Window_Config,
}
Config :: struct {
display: Display_Config,
}
It might be my fault, but I've been using nvim for some time now with Odin.
This is with the latest Odin and Ols branches, linux.
Reproduction Steps
windowtotest, from withinshared.odin. It works, but misses the rename ofthread_data.config.display.window.resolution.xinrenderer.odin...windowstays as just that. Expected it to get renamedrenderer.odinand it will rename the upstream inshared.odinbut not the ones in the file that initiated the rename.window, it wont return the results inrenderer.odin.ose/renderer/renderer.odinose/engine/types.odinose/shared/shared.odin