Autocompletion for project library scripts
complete
Log In
J
Julian Islic
Suggested Improvements:
* Locally scoped autofill would be nice.
For example, if I have a script called api, autofill only works if I do api.func_name(), but not if I just type func_name. This should be in the autofill since it is open in the script. Note, running func_name works when I call it, but autofill is missing. When I am in the api script, I shouldn't have to type "api." to see functions listed in "this" script.
* List object members
It would be nice if the auto complete would list all members of an object, even if it is not defined. Too many times did I have to run:
for i in dir(object):
print i
This allows me to see the object members to figure out what function and variable are available for the function.
* Listing All libraries at root of autofill
Autofill for modules often leaves me guessing for module names. It would be nice to just ctrl + space on an empty line and it lists all the libraries available to ignition, especially ones that haven't been imported yet. For example, time or json module.
P
Paul Griffith
Merged in a post:
script editor list methods
W
William Suetholz
The script editor should list all methods defined in the source code module. It should also whenever possible provide auto completion for methods included via imports as well as methods defined in the current source module. This should specifically include Class methods.
P
Paul Griffith
Merged in a post:
scripting library
j
jshaffer
in any scripting window have ignition prompt scripting options from a library
P
Paul Griffith
marked this post as
complete
Autocomplete is available for project library code as of Ignition 8.1.19.
I merged Ryan Crownover's post into this one as most of the bullets overlap and the functionality is complementary.
The unaddressed bullet points are still on the roadmap, and are tracked on the more general 'improve the script editor' issue:
P
Paul Griffith
Merged in a post:
Scripting Autocomplete Improvements
R
Ryan Crownover
It would be an incredible improvement to see scripting autocomplete include the following IDE features:
- Autocomplete for variables in the current script, because typos
- Contextual hints for argument names when writing a function call
- Contextual hints for class attributes and methods
- Autocomplete for user created libraries
- User created library contextual display should read docstrings and appear just as system-provided library's display
P
Paul Griffith
marked this post as
planned
R
Ryan McLaughlin
Its there already for system function, but not consistent and 100%, def a lot of room for improvment. Use CTRL+Space when typing system functions.
C
Corentin Mornet
I don't even understand why it is not that requested, auto-completion is ESSENTIAL if you script. To me, this is a MUST HAVE!
c
chris.m
I'm fairly sure they mean intellisense from any scripting window.
Kathy A.
Could you elaborate a little on what you're suggesting? I don't understand what you mean by "prompt scripting options from a library". Thanks!
Load More
→