Giter Club home page Giter Club logo

Comments (3)

HolonProduction avatar HolonProduction commented on July 3, 2024 2

#85224 should have fixed that but I made an oversight. We use the analyzer logic to test whether the assigned type is compatible. The analyzer allows assigning variant types to everything, and pick_random returns a variant which for the analyzer is compatible with PackedScene (though unsave). So we end up with the type of the assigned expression but a variant doesn't has much value for autocompletion.

Edit: Just to clarify this any icon is used for all local variables at the moment. The type of the variable has no influence on it. I consider the scope of this issue to be the not working autocompletion. It might make sense to create a separate issue to request a better icon for local variables though.

from godot.

Joseph-D-Bradshaw avatar Joseph-D-Bradshaw commented on July 3, 2024

Not sure if related, but I realise that type hints are not working (also giving me "any", which I see is not an issue here).

But for example.

var mesh: MeshInstance3D = get_child(0)
mesh.get_surface_override_material(0)  # this gives no autocompletion

I find that I am needing to use the as keyword a lot to get autocompletion to work.

from godot.

HolonProduction avatar HolonProduction commented on July 3, 2024

Not sure if related, but I realise that type hints are not working (also giving me "any", which I see is not an issue here).

As long as you are still on 4.2 no need to worry, #85224 should've fixed that. If you are using 4.3 please open an issue with an MRP about it.

from godot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.