Closed iftheshoefritz closed 2 years ago
I found that generating the YARD docs as one file per class being reflected fixed this for me. Interested to know why that might be.
The other issues (how my editor reloads things) must be an Emacs problem, because VSCode handles it perfectly.
A bit of offtopic, but @iftheshoefritz is it possible to look at your init.el
to learn from your experience?
@arbox I'm using Spacemacs, and pretty close to vanilla at that. Check out the LSP layer here: https://github.com/syl20bnr/spacemacs/tree/develop/layers/%2Btools/lsp
Closing this as presumed resolved in solargraph-rails
. Please feel free to open a new issue if necessary.
I wrote this rake task to generate YARD docs for model attributes in a Rails 6 app. It's working for some models (attributes are present in autocomplete) but not others. Wondering if there are any glaringly obvious issues you can tell me about:
Two problems occur:
(exactly what I want) from this generated config:
but no luck on another model:
with what looks like the same config:
Here I'm expecting to see the
id
attribute as an option in auto-complete. Unfortunately it and all other attributes defined in this config are missing.Is it possible that I'm generating broken config that prevents the completion?
I guess that asking for certainty on emacs behaviour is difficult. I'm just wondering what needs to happen with the solargraph process - is there a hot reload, do I need to kill and restart it... or what?