Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Koneki » Initial impressions of 0.9 release
Initial impressions of 0.9 release [message #1416768] Fri, 18 January 2013 13:49 Go to next message
steve donovan is currently offline steve donovanFriend
Messages: 8
Registered: January 2013
Junior Member
First, may I congratulate the team on a slick release. The debugger integration is most welcome, and things pretty much worked out of the box.

Code analysis will definitely help peeople work with a language which can sometimes be too forgiving. For instance, it would be nice if _unknown globals_ are specially marked; not necessarily an error, but often represents a spelling mistake (if strictly controlling use of globals as is standard for larger projects). The Konecki environment clearly _knows_ about such variables.

As a user-interface thing, the 'note: this element has no attached..' popup becomes very irritating.

The documentation markup is fairly standard, although currently we need to explictily use @function tags, which should be straightforward _in most cases_ to infer from the function declaration. Many of us are used to LuaDoc, but depend on its ability to infer this, so that we don't have to keep typing out a name twice. I understand the rationale - it becomes possible to write stand-alone documentation - but that is not the usual style people are accustomed to. It is not an either/or thing.

I mention this because this will help us move large lua codebases over to Koneki without having to do a lot of doc string rewriting.

steve d.
Re: Initial impressions of 0.9 release [message #1416772 is a reply to message #1416768] Fri, 18 January 2013 16:32 Go to previous messageGo to next message
Lua Bowski is currently offline Lua BowskiFriend
Messages: 22
Registered: February 2012
Junior Member
I thought you of all people would look at this as an opportunity to simply have a Lua script copy the function declaration and morph it into a "-- @function ..." line.
:)
Re: Initial impressions of 0.9 release [message #1416773 is a reply to message #1416772] Fri, 18 January 2013 17:58 Go to previous messageGo to next message
Simon Bernard is currently offline Simon BernardFriend
Messages: 345
Registered: July 2009
Senior Member
Thx you guys :), we need this kind of feedback to move LDT in the right way.

In the 0.8, debugging was quite difficult to configure. Make that easier was one of our main goals. Nice to see this is better now.
The next step will be to make it works for a larger kind of Lua VM (lua 5.2, luaJIT, ...).
Thx to Julien Desgats(the main lua developer of debugger).


About code analysis, this could be a good idea. Currently, LDT can help to solve this kind of error as the local variables was colored in grey and the globals ones are in bold black. But this is less visible than a warning.
I open a https://bugs.eclipse.org/bugs/show_bug.cgi?id=398530 but probably not planned for the next release.

I open a https://bugs.eclipse.org/bugs/show_bug.cgi?id=398528 for the documentation pop-up too, we will try to fix it for next release.

About code documentation, you could read this http://wiki.eclipse.org/Koneki/LDT/Developer_Area/User_Assistance or this https://bugs.eclipse.org/bugs/show_bug.cgi?id=370583 to see why we start with a self-sufficient documentation language.
It's just a begin and the next step is to go in the way you described. (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=381671)
We think this the most missing feature in LDT.

Hope one day luadoc, ldoc and ldt language will be compatible ;).
Re: Initial impressions of 0.9 release [message #1416774 is a reply to message #1416772] Sat, 19 January 2013 09:30 Go to previous messageGo to next message
steve donovan is currently offline steve donovanFriend
Messages: 8
Registered: January 2013
Junior Member
Lua Bowski wrote on Fri, 18 January 2013 11:32
> I thought you of all people would look at this as an opportunity to simply have a Lua script copy the function declaration and morph it into a "-- @function ..." line.
> :)


Oh yes! Powerful urge which I try to suppress here because it will play hell with revision control. I don't mind updating LDoc to handle extended @function tag but I do mind putting in redundant @function tags in 20,000 lines of Lua. There are teams with more than ten times that number of lines so you can appreciate the problem ;) - even if it can be done with a 150 line script. The LDT has the metalua AST available so it should be relatively easy to infer the [...] modifier.
Re: Initial impressions of 0.9 release [message #1416775 is a reply to message #1416773] Sat, 19 January 2013 09:38 Go to previous messageGo to next message
steve donovan is currently offline steve donovanFriend
Messages: 8
Registered: January 2013
Junior Member
Simon Bernard wrote on Fri, 18 January 2013 12:57
> the globals ones are in bold black. But this is less visible than a warning.


What would be needed: (a) switch off the no-docs-found tooltip (b) mark unknown globals in a different colour. That will make probable spelling mistakes stand out.

I'm pleased to see that the classic ctrl-click works for code in other modules, although not within a program, which is a pity.

Quote:
> Hope one day luadoc, ldoc and ldt language will be compatible ;).


Not difficult to achieve, really. ldoc is already hopelessly flexible and it would be straightforward to implement the '@param #string' and '@return #string' which looks much better than the current LDoc '@tparam string' and '@treturn string'. LDoc does support various kinds of aliases, so that I can say '@string' as short for '@param #string'. The idea is to cut down the amount of work needed for someone to annotate their code.

Of course, this is Eclipse: we can have a feature that fills in the comment block from the function declaration! That might be a very useful keystroke.

steve d.
Re: Initial impressions of 0.9 release [message #1416789 is a reply to message #1416775] Thu, 24 January 2013 17:17 Go to previous messageGo to next message
Marc Aubry is currently offline Marc AubryFriend
Messages: 76
Registered: July 2009
Member
steve donovan wrote on Sat, 19 January 2013 04:38
> I'm pleased to see that the classic ctrl-click works for code in other modules, although not within a program, which is a pity.


I am not sure to understand what do you mean. When you say "program" it's a project in Eclipse ? Can you give a short syntax example of where you hope to see the ctrl-click working ?
Re: Initial impressions of 0.9 release [message #1416790 is a reply to message #1416789] Thu, 24 January 2013 17:43 Go to previous message
steve donovan is currently offline steve donovanFriend
Messages: 8
Registered: January 2013
Junior Member
Sorry, I was not being precise here. By program I simply meant the 'main' file of a Lua project. Actually, what I meant was that you may jump to another module, but not jump around in the module you are working on.
Previous Topic:Bugs of OMA DM simulator ver 0.8
Next Topic:Make .xml files to highlight the code
Goto Forum:
  


Current Time: Thu Mar 28 22:23:59 GMT 2024

Powered by FUDForum. Page generated in 0.03041 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top