Custom Node added with add_custom_type() will not add documentary and functionality with ## comments
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 52/100
Línea de trabajo
Start at the editor's add_custom_type() entry point and trace how it exposes the custom Node's script description and ## comments; use the linked minimal reproduction project to reproduce the issue. Done means the custom Node displays its own description and documentation when added to a scene, while property-list comments continue to work.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Tested versions
Reproducable in:
- All Godot 4.x - 4.4 Dev versions
- All Redot 4.x - 4.3 Stable versions
System information
Linux Mint 22
Issue description
Whenever a custom Node is successfully added, using add_custom_type(), be it with a Plugin or with another Script, the custom Node will have no description and it'll have no functionality regarding ## comments, thus it won't also create a documentary for that custom Node.
(Exception is applied on the Property List, it uses the ## comments there.)
class_name alone does work as it's intended, however it'll make the custom Node have the script's name be placed next to it in parenthesizes.
add_custom_type() should be able to work the same way as class_name, but without the script's name be attached next to it.
Examples:
Image 1 represents the bug. A custom Node called VisibilityModifier is inheriting VisibleOnScreenNotifier2D.
Since VisibilityModifier has no documentary, it only shows the Node's documentary, that's inheriting from, like it never existed to begin with.
Image 2 shows how it should look like originally, after adding the script as a custom Node. It should have a documentary, and description present.
Image 3 represents the bug. This custom Node has been added successfully, however the description is not present.
Image 4 shows how it should look like originally, after adding the script as a custom Node. It should show it's description as it's expected.
Steps to reproduce
- Create a new Project (for testing purposes)
- Create a new Script (GDScript preferrably)
- Have ## comments after
extends Node2D, that should be the description of the Script - Create a Plugin and inside it, use
add_custom_type()to add the new Script as a custom Node (On Plugin Enabled) - The bug should be visible, when trying to add the custom Node to the Scene.
- Trying to open the custom Node's documentary (by Right Clicking on the custom Node) will open the Node's documentary that it inherits from, in that case, it should show the
Node2Dclass' documentary.
Minimal reproduction project (MRP)
Tested on Redot's 4.3 Stable Version:
custom-node-documentary-test.zip
- Lenguaje dominante
- C++
- Estrellas
- 6.1k
- Forks
- 337
- Merge medio
- 1 d 2 h
- PR fusionados (30 d)
- 35
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Redot-Engine/redot-engine
-
Write after free upon adding WorldScape3D to scenePosiblemente ocupada @OldDev78 la tomó hoy. Abiertobug confirmed high priority release blocker topic:worldscape usability
Redot-Engine/redot-engine#1523 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
bug known problem usability
Dificultad 3/5 1-2 días Aptitud para principiantes 62/100
Redot-Engine/redot-engine#1519 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 Medio día Aptitud para principiantes 52/100
Redot-Engine/redot-engine#1516 ·
Los mantenedores suelen responder en 1 día
-
bug needs testing usability
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
Redot-Engine/redot-engine#1514 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug confirmed topic:gdscript usability
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
Redot-Engine/redot-engine#1482 ·
Los mantenedores suelen responder en 1 día
Todos los issues de Redot-Engine/redot-engine
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
Mac mini M6 (16 GB): Q2_0 streaming works - measured 11.7->27.2 tok/s + arena fix for sub-32 GB MacsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
champion good first issue remake source/qq
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
metasequoiaime/msime-windows#1025 ·
Los mantenedores suelen responder en 1 día
-
backlog bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
EchoTools/nevr-runtime#653 ·
Los mantenedores suelen responder en 1 día
-
`--fail-require-skip` never fires: run_tests.py searches stdout, but the unittest binary writes the skip summary to stderrPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día