-
-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chained reference autocomplete broken from 1.21.3 to 2.0.3 #578
Comments
You should use |
Even though get_train_stop_trains() has a return of type LuaEntity[] defined against it? |
Is this what you mean? EDIT: It should be fixed by b68f95c |
Yea that's auto complete list no longer loads from the class type for me in
2.0.3.
In 1.21.3 I see what you posted.
…On Fri, 25 Jun 2021, 15:51 最萌小汐, ***@***.***> wrote:
[image: image]
<https://user-images.githubusercontent.com/5213431/123442821-ddd87e00-d607-11eb-9a09-d719f0f14449.png>
Is this what you mean?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#578 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJXRXMLP4FIMCWANMLGURRDTUSJYRANCNFSM47JVXMTA>
.
|
see #574 |
nice, thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using the below sample code in 1.21.3 I could get auto complete on
first.
at the end of the function. It offered autocomplete for the LuaEntity class. In 2.0.3 the auto complete is blank or will only populate with other attributes if accessed within the function.local process = function() local refEntity = {} ---@type LuaEntity local list = refEntity.get_train_stop_trains() -- returns LuaEntity[] local first = list[1] local test = first. end
This requires the below class file (remove .txt from name) to be loaded in to
Lua.workspace.library
setting.runtime-api.lua.txt
This is a class file someone else has generated for the Factorio pc game's API.
The text was updated successfully, but these errors were encountered: