Comments (7)
@Bromeon I'm using Rust Analyzer, I'll doublecheck to see if there are any issues with a default install. It's been a while since I checked on my end.
from gdnative-book.
@bluenote10 I agree, that part of the FAQ appears to be outdated. Thanks for creating the issue!
I have noticed similar issues occurring with the recent changes to Rust Analyzer, a lot of the issues appear to be related to rust-analyzer's macro expansion, so I ended up disabling them for the time being. I haven't noticed too many issues with rust analyzer though. It would be good to see what other folks using Rust Analyzer experience as well.
from gdnative-book.
Does anyone who uses Rust-Analyzer have time to investigate this issue?
I can't say much about it as I'm on CLion.
3. If it turns out that it is fundamentally not working, the question may be if we can do something on library / macro side to improve it. Following the links posted by the rust-analyzer maintainer leads to a similar issue for
tokio-tracing
, caused by the usage ofsyn
and this proposal to solve it on their side. @Bromeon Is this proposal applicable to godot-rust as well?
You mean design the macros in a way that they don't fail hard but allow to handle the error? Maybe, but if syn
suffers from the same issue, it wouldn't help if we fixed anything on godot-rust side, would it?
from gdnative-book.
It should be noted that this big related tracking issue on rust-analyzer side rust-lang/rust-analyzer#11014 has been closed recently, so perhaps things are much better in the meantime (hope I can re-check as well soon).
from gdnative-book.
I re-checked this issue with default settings from Rust Analyzer and it doesn't seem to be impacting anything on my end anymore. @bluenote10 please feel free to re-open this issue if you see any issues.
from gdnative-book.
@jacobsky I finally had some time to experiment with more recent rust-analyzer versions, and it looks like the issue with everything being underlined in red is indeed gone now.
What still isn't working for me is if you have e.g. use gdnative::prelude::Object;
and you ctrl-click on Object
. In this case I always end up here:
Do you get redirected to the actual implementation?
from gdnative-book.
Reopen until clarified.
from gdnative-book.
Related Issues (20)
- FAQ: Is "How do I store a reference of Node?" outdated?
- Provide instructions on how to update `api.json` while using a custom Godot build HOT 2
- Mention the state of M1 support
- Unable to finish Setup of hello world HOT 2
- Missing examples for manually registering properties and methods HOT 3
- Code Autocompletion with Rust Analyzer appears out of date.
- Expose documentation tool for godot rust projects HOT 10
- Mention how to use a native class made in rust as a Reference by creating .gdnlib and .gdns files HOT 1
- Have subsections for FAQ/Code Questions HOT 3
- [FAQ Entry] How to implement polymorphic functions? HOT 10
- Deciding between `&T` and `TRef<T>` HOT 4
- Godot property hooks documentation is out of date HOT 1
- Nix install instructions use outdated/unsupported 1.52.1 compiler HOT 2
- FAQ: known limitations
- Commands in the WASM guide should use pinned versions of rustc and emsdk HOT 1
- Contributing link in README broken HOT 2
- Android NDK version >= 23 requires nightly toolchain HOT 1
- tokio recipe is still using a git dependency and the old method syntax
- gdext: API and code style guidelines
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdnative-book.