-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Support for RSpec let
definitions
#325
Comments
Variables defined in RSpec's There's a |
Is using a 'convention' a matter of configuration, then? If so, where can I learn more? |
The current RSpec convention: https://github.com/castwide/solargraph/blob/master/lib/solargraph/convention/rspec.rb Conventions are undergoing an upgrade for version 0.40.0, which I expect to release in June. The API will change slightly and it will be possible to add custom conventions through plugins. When it's ready, I'll also release a |
@castwide is this covered in the latest versions of SG now? I'm trying to set up my existing project with the solargraph-rails plugin and finding that I need more work to support the rspec/rake DSLs. As you have advised in other threads, I'm not setting a global domain for all my files, but I would like to know what kind of domains I might need to use to get my expects, lets and describes working properly # @!domain RSpec::Matchers
# @!parse extend RSpec::Core
# @!parse extend RSpec::Core::MemoizedHelpers Using: ---
include:
- "**/*.rb"
exclude:
- "spec/**/*.rb"
- spec/**/*
- test/**/*
- vendor/**/*
- ".bundle/**/*"
require:
- actioncable
- actionmailbox
- actionmailer
- actionpack
- actiontext
- actionview
- activejob
- activemodel
- activerecord
- activestorage
- activesupport
- administrate
- aws-sdk-core
- bullet
- devise
- factory_bot
- factory_bot_rails
- graphiti
- graphiti-rails
- rails
- rspec
- rspec-core
- rspec-expectations
- rspec-mocks
- rspec-rails
- rspec-snapshot
- rspec-support
domains: []
reporters:
- rubocop
- require_not_found
- typecheck:strict
formatter:
rubocop:
cops: safe
except: []
only: []
extra_args: []
require_paths: []
plugins:
- solargraph-rails
max_files: 5000
|
Any progress on this? |
@clmay @liarokapisv Please see: #683 (comment). Right now does not support the return type inference of Looking forward to your feedback! |
That's great news, thank you for following up @lekemula ! |
Hey folks,
Is there any way to get the go-to-definition feature working with variables bound RSpec's
let
construct?Suppose I have:
If I click
get
and go-to-definition, it says no definition found. But, if instead I have:Then go-to-definition will work just fine. Thoughts?
The text was updated successfully, but these errors were encountered: