-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Find references is currently broken on 1.10 #257
Comments
This might be considered a bug in Elixir 1.10, so if someone can reproduce the bug in |
I tried master build and running on 1.10 as well as 0.4 build on 1.7 and running on 1.10 and in both combinations it worked. |
Hmmm, I'll do some more investigation to see if there's a different root cause. |
I'm using
@lukaszsamson what do we need to do regarding elixir-lsp/elixir_sense#80 to make it feasible? As far as I remember, it requires a stateful tracer, right? If that's the case, I don't think we'll have a choice but creating a stateful application for ElixirSense. Editors that don't use Unfortunately, we can't keep using deprecated API any longer, IMO. Besides, using the tracer will allow us to gradually simplify some of the most complex logic we have, making the code less sensitive to Elixir updates. Also, having a stateful process around opens new possibilities for optimization and new features that might require access to previously fetched information (e.g. the list of all loaded modules, etc.) @axelson WDTY? |
Yes, but it doesn't necessarily be managed by elixir_sense, it may be managed by elixir-ls and injected. The bigger problem is that it requires elixir >= 1.10 and I'm not sure it will even work when compiled with 1.7.
A few modules could use a cache |
Hmmm, it's seeming like I was wrong about this issue. Since we can't reproduce it I'm going to go ahead and close it, perhaps there was some other issue that was since fixed. If we can reproduce it in the future we can re-visit. Regarding elixir-lsp/elixir_sense#80 the issue is (as Łukasz mentioned) that it requires elixir 1.10+ and it's too early to require Elixir 1.10. And it most likely be a significant undertaking to maintain dual implementations where we'd use compiler tracing if it is available, but ignore it if it is not available (and we'd have to solve the packaging problem (#115) as well, or at least have end-users automatically compile ElixirLS). |
textDocument/references
is currently broken when running on 1.10. This is most likely related to xref changes when compiler tracing was implemented in Elixir. Still need to test if compiling elixir-ls on 1.10 will have an impact.The text was updated successfully, but these errors were encountered: