-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
No intellisense when using query dsl #3876
Comments
Duplicate of rust-lang/rust-analyzer#14607 (It's a rust-analyzer bug, not a diesel issue.) |
@weiznich Is there a known workaround for this? Although it's an r-a issue, it's effect on diesel's DX is pretty big. Especially as a new user. |
@cloud303-cholden There is no known workaround for this but I would be open to accept PR's for fixing this in diesel as long as they do not require a major version bump. But given that even the rust-analyzer developers cannot say which part of diesel is problematic (at least other than "the trait bounds") it's quite unlikely that anyone comes up with something on diesels side. |
@weiznich Before I possibly waste a lot of time screwing with my r-a setup, I'm assuming some combination of changing r-a and/or diesel version would resolve the issue, correct? |
@cloud303-cholden Please don't ping me to ask this kind of questions, especially if that has already been answered before. |
@cloud303-cholden You can use Rust Rover as a "work around" as long as you don't mind using a different IDE. When it comes to this particular bit of code analysis Rust Rover does a better job than Rust Analyzer (at least for now). |
Setup
Versions
Feature Flags
Problem Description
When following the
getting started
guide everything works correctly. But, I get no intellisense when using the query dsl. For example: when querying the number of posts in the database, like thisvscode shows
{unknown}
when hovering over.limit(5)
and the return type ofresults
is also unknown. I'm using vscode version 1.85 with the latest rust-analyzer plugin.The text was updated successfully, but these errors were encountered: