lime icon indicating copy to clipboard operation
lime copied to clipboard

`lime display` with include.xml files

Open Gama11 opened this issue 5 years ago • 4 comments

It would be nice to have code completion support for libraries. I think this more or less just comes down to having lime display work with include.xml files?

Gama11 avatar Aug 21 '19 10:08 Gama11

It's a good thought, but I don't think we can do that. The problem is Haxe's code completion requires a main class, which libraries lack.

The obvious workaround is to give the library a simple/placeholder main class. But at that point, you might as well create a basic project (Main.hx plus project.xml are enough to get off the ground). Then Lime will attempt to generate code completion for every library imported by project.xml.

Basically, this should all just work as-is. If not, there may be something in the library's code that breaks code completion.

player-03 avatar Oct 30 '21 02:10 player-03

The problem is Haxe's code completion requires a main class, [...].

That's not true.

Gama11 avatar Oct 30 '21 09:10 Gama11

Really? Ok, then in theory this is possible. Not high priority since you can work around it, but we'll keep it in the list.

player-03 avatar Oct 30 '21 17:10 player-03