DanielGavin / ols

Language server for Odin
MIT License
375 stars 56 forks source link

Add symlinking resolution #344

Closed RaphGL closed 2 months ago

RaphGL commented 2 months ago

Since the Odin compiler expects all the included libraries to be in the same path, I've been symlinking it and using ODIN_ROOT as a fix. Decided to try and find how to resolve symlinks myself today, turns out odin resolves them for you when you use functions such as lstat, stat and abs. So I'm making paths absolute to resolve them.

This might potentially fix https://github.com/DanielGavin/ols/issues/325

I've tried it on my end and it's working for my use case at least. Decided to upstream it here.