Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] I'm honestly not sure what you're looking for. Can you give a specific example?

[DiscordArchive] I'm honestly not sure what you're looking for. Can you give a specific example?

[DiscordArchive] I'm honestly not sure what you're looking for. Can you give a specific example?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
01-05-2024, 11:48 AM
#1
Archived author: Honey • Posted: 2024-01-05T11:48:20.614000+00:00
Original source

I'm honestly not sure what you're looking for. Can you give a specific example?
rektbyfaith
01-05-2024, 11:48 AM #1

Archived author: Honey • Posted: 2024-01-05T11:48:20.614000+00:00
Original source

I'm honestly not sure what you're looking for. Can you give a specific example?

rektbyfaith
Administrator
0
01-05-2024, 11:51 AM
#2
Archived author: functorism • Posted: 2024-01-05T11:51:21.513000+00:00
Original source

I want the lua language server to be aware of the globals defined though the update to the `lua_State* L`. And since there's no supportd tooling for doing that automatically there would have to be some Lua stubs produced to support that. From what I can see in eluna-ts, the TypeScript declarations appear to be handwritten and not generated? Which is more or less the same problem statement.
rektbyfaith
01-05-2024, 11:51 AM #2

Archived author: functorism • Posted: 2024-01-05T11:51:21.513000+00:00
Original source

I want the lua language server to be aware of the globals defined though the update to the `lua_State* L`. And since there's no supportd tooling for doing that automatically there would have to be some Lua stubs produced to support that. From what I can see in eluna-ts, the TypeScript declarations appear to be handwritten and not generated? Which is more or less the same problem statement.

rektbyfaith
Administrator
0
01-05-2024, 12:23 PM
#3
Archived author: Honey • Posted: 2024-01-05T12:23:27.257000+00:00
Original source

I think <@175631911450836993> was looking into some kind of automation for typescript. Not sure about the Lua part.
rektbyfaith
01-05-2024, 12:23 PM #3

Archived author: Honey • Posted: 2024-01-05T12:23:27.257000+00:00
Original source

I think <@175631911450836993> was looking into some kind of automation for typescript. Not sure about the Lua part.

rektbyfaith
Administrator
0
01-05-2024, 12:25 PM
#4
Archived author: functorism • Posted: 2024-01-05T12:25:49.490000+00:00
Original source

Alright, well I think something semi automated is probably the way to go for now. Maybe something more declarative can be introduced into the Eluna source to make code generations fo type declarations and stubs easier in the future.
rektbyfaith
01-05-2024, 12:25 PM #4

Archived author: functorism • Posted: 2024-01-05T12:25:49.490000+00:00
Original source

Alright, well I think something semi automated is probably the way to go for now. Maybe something more declarative can be introduced into the Eluna source to make code generations fo type declarations and stubs easier in the future.

rektbyfaith
Administrator
0
01-05-2024, 12:38 PM
#5
Archived author: Roboto • Posted: 2024-01-05T12:38:53.849000+00:00
Original source

Aye, which could then theoretically be translated to Lua declaration files
rektbyfaith
01-05-2024, 12:38 PM #5

Archived author: Roboto • Posted: 2024-01-05T12:38:53.849000+00:00
Original source

Aye, which could then theoretically be translated to Lua declaration files

rektbyfaith
Administrator
0
01-05-2024, 12:40 PM
#6
Archived author: functorism • Posted: 2024-01-05T12:40:08.990000+00:00
Original source

The TypeScript type defs need strictly more information than the Lua stubs, so if you have some method to parse out the signatures from the header files or docs, then yes it should be easy to generate the Lua stubs.
rektbyfaith
01-05-2024, 12:40 PM #6

Archived author: functorism • Posted: 2024-01-05T12:40:08.990000+00:00
Original source

The TypeScript type defs need strictly more information than the Lua stubs, so if you have some method to parse out the signatures from the header files or docs, then yes it should be easy to generate the Lua stubs.

rektbyfaith
Administrator
0
01-05-2024, 12:59 PM
#7
Archived author: functorism • Posted: 2024-01-05T12:59:10.914000+00:00
Original source

Right now just to get moving forward I created a GPT with all the header files uploaded to it and just ask for stubs for everything I use on a by-need basis.
rektbyfaith
01-05-2024, 12:59 PM #7

Archived author: functorism • Posted: 2024-01-05T12:59:10.914000+00:00
Original source

Right now just to get moving forward I created a GPT with all the header files uploaded to it and just ask for stubs for everything I use on a by-need basis.

rektbyfaith
Administrator
0
01-05-2024, 01:06 PM
#8
Archived author: functorism • Posted: 2024-01-05T13:06:26.270000+00:00
Original source

Writing stubs according to https://luals.github.io/wiki/annotations/ works quite well.
[Embed: Lua Language Server | Wiki]
Lua Language Server uses the Language Server Protocol to offer a better Lua development experience for your favourite editors.
https://luals.github.io/wiki/annotations/
rektbyfaith
01-05-2024, 01:06 PM #8

Archived author: functorism • Posted: 2024-01-05T13:06:26.270000+00:00
Original source

Writing stubs according to https://luals.github.io/wiki/annotations/ works quite well.
[Embed: Lua Language Server | Wiki]
Lua Language Server uses the Language Server Protocol to offer a better Lua development experience for your favourite editors.
https://luals.github.io/wiki/annotations/

rektbyfaith
Administrator
0
01-05-2024, 02:03 PM
#9
Archived author: Foe • Posted: 2024-01-05T14:03:46.208000+00:00
Original source

All the methods are documented with doxygen format, that's how the api is generated
rektbyfaith
01-05-2024, 02:03 PM #9

Archived author: Foe • Posted: 2024-01-05T14:03:46.208000+00:00
Original source

All the methods are documented with doxygen format, that's how the api is generated

rektbyfaith
Administrator
0
01-05-2024, 02:04 PM
#10
Archived author: Foe • Posted: 2024-01-05T14:04:19.819000+00:00
Original source

You could probably see how this is read and parsed with the documentation generator and output it in another format
rektbyfaith
01-05-2024, 02:04 PM #10

Archived author: Foe • Posted: 2024-01-05T14:04:19.819000+00:00
Original source

You could probably see how this is read and parsed with the documentation generator and output it in another format

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)