Godot 3.0 stable
With the following code:
extends Panel
func _ready():
var f = File.new()
f.
When I type the final dot, nothing comes out.
In 2.1.4 I get auto-complete straight away.
Note 1:
If I write open("test.txt") and attempt to Ctrl+Click on open, nothing happens.
Note 2:
it seems to happen in more places where completion used to work, like onready vars assigned with get_node.
Noticed this with KinematicBody2D’s get_safe_margin as well.
functions are not completed on purpose in 3.0, only properties will
complete. Likewise only properties are shown in the help
On Wed, Jan 31, 2018 at 5:14 PM, 11clock notifications@github.com wrote:
Noticed this with KinematicBody2D’s get_safe_margin as well.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/16257#issuecomment-362056840,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-Z2w9qAYVgvdwgQwqCxD2hgS81h6ylks5tQMmygaJpZM4R0j43
.
let me rephrase, functions for which a property exists are not completed,
only properties
On Wed, Jan 31, 2018 at 5:23 PM, Juan Linietsky reduzio@gmail.com wrote:
functions are not completed on purpose in 3.0, only properties will
complete. Likewise only properties are shown in the helpOn Wed, Jan 31, 2018 at 5:14 PM, 11clock notifications@github.com wrote:
Noticed this with KinematicBody2D’s get_safe_margin as well.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/16257#issuecomment-362056840,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-Z2w9qAYVgvdwgQwqCxD2hgS81h6ylks5tQMmygaJpZM4R0j43
.
@reduz functions I tried don't have properties, they should get completion. I noticed about properties, but in my case it just seems like completion is not working in several other situations.
because you are not supposed to use them anymore, use the properties
ah, you edited it, if no property exists, regular functions should complete fine. I was refering to get_safe_margin mostly.
I noticed it does show the completion if you leave one (sometimes two) empty lines after the declaration, before trying to use it.
that definitely sounds like a bug in gdscript_editor.cpp in the complete
function checking the line
On Wed, Jan 31, 2018 at 6:06 PM, George Marques notifications@github.com
wrote:
I noticed it does show the completion if you leave one (sometimes two)
empty lines after the declaration, before trying to use it.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/16257#issuecomment-362070460,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-Z26DPNBk9EgvYZmaDiCxGGnspqmAjks5tQNXagaJpZM4R0j43
.
Can confirm, I remember it started happening "recently"
@reduz How do you access the safe margin then? It has the name "collision/safe_margin" which gives me an error when I try to access it.
@11clock Hmm indeed the doc is confusing about it too http://docs.godotengine.org/en/3.0/classes/class_kinematicbody2d.html#member-variables
Maybe needs a separate issue (meanwhile you can use .get("collision/safe_margin"))
This might be a little off the topic but using a theme file generated with the "Current Editor Theme" option
also causes code completion to stop working when selected in the Project Settings/Gui/Theme/Custom setting.
also causes code completion to stop working when selected in the
Project Settings/Gui/Theme/Customsetting.
Finally the solution I was desperately searching for these 2 days.
I'm on Godot 3.1.1 stable and I was having the "no completion" problem on a specific project on which I've changed the main theme in project settings.
The autocompletion was not working on both Windows 10 and Arch Linux.
Now everything is fine. It surely is caused by the main theme setting.
This issue should be re-opened.
@Scemenzo what you describe looks like a different bug, please open a new issue with the template filled.