Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

lslint - offline code checker for LSL

Masakazu Kojima
ケロ
Join date: 23 Apr 2004
Posts: 232
04-02-2007 21:36
0.2.8: 2007-04-02
- Added llStringTrim(), STRING_TRIM, STRING_TRIM_HEAD, STRING_TRIM_TAIL,
-- llSetLinkTexture(), llSetLinkPrimitiveParams()

http://w-hat.com/lslint/

From: Baron Hauptmann
(would even be willing to donate a little for the trouble and effort!)
The best way to support lslint (or any other w-hat.com project) is to let me know you find it useful, or ask questions, or make suggestions, by posting here or IMing me or however. That said, if you are eager to part with some e-money, we have an SL Relay for Life kiosk and vendors in Baku that track high scores and stuff.

From: Keknehv Psaltery
It seems like lslint doesn't check for code paths to return values.
lslint does not currently do any kind of code path checking.

I think the best direction for lslint at this point would be an SL source patch that improves the compiler in the viewer, but can still be compiled separately into a standalone lslint-style program.
Piero Padar
#
Join date: 26 Aug 2005
Posts: 42
Mac Version?
04-26-2007 03:04
When will you compile a Mac version?
Thanks
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
04-26-2007 05:32
woot i can empty my patch file ^_^
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Gregory McLeod
Registered User
Join date: 21 Oct 2006
Posts: 278
04-26-2007 12:42
Hi I am trying to use lslint but have not found any instructions on how it is used.
I cant find anywhere on the web page given at the beginning of this thread a How To...

Can someone help?

I am using TextPad in a Windows XP SP2 machine.
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
04-26-2007 15:14
From: Gregory McLeod
Hi I am trying to use lslint but have not found any instructions on how it is used.
I cant find anywhere on the web page given at the beginning of this thread a How To...

Can someone help?

I am using TextPad in a Windows XP SP2 machine.



at its simplist its a case of running lslint.exe and supplying a filename i.e.

lslint swingdoor.lsl

Thsi will dump out any errors and warnings directly to screen.
Masakazu Kojima
ケロ
Join date: 23 Apr 2004
Posts: 232
04-26-2007 15:24
Mac version posted.

http://w-hat.com/lslint/

http://w-hat.com/lslint/release/mac/lslint-v0.2.8.bz2
Ima Mechanique
Registered User
Join date: 25 Feb 2005
Posts: 23
llRegionSay()
06-04-2007 20:11
When can we expect llRegionSay() to be added?

As always, thanks for the excellent work Masakazu!
Ima Mechanique
Registered User
Join date: 25 Feb 2005
Posts: 23
06-16-2007 07:47
HTTP_BODY_TRUNCATED is missing.
RobbyRacoon Olmstead
Red warrior is hungry!
Join date: 20 Sep 2006
Posts: 1,821
06-16-2007 07:54
From: Ima Mechanique
When can we expect llRegionSay() to be added?

As always, thanks for the excellent work Masakazu!


Not that it's a blocking issue for me, but I wish to vote for that addition as well.
_____________________
Masakazu Kojima
ケロ
Join date: 23 Apr 2004
Posts: 232
06-26-2007 01:07
0.2.9: 2007-06-26
- Added llRegionSay(), HTTP_BODY_TRUNCATED

http://w-hat.com/lslint/

In a mysterious turn of events only the mac version is up right now~

edit: windows version up now, linux tomorrow
Ed Gobo
ed44's alt
Join date: 20 Jun 2006
Posts: 220
07-21-2007 20:34
I altered this slightly to give more positive feedback, so I get a "y" instead of a blank and it does not work correctly. lslint is right! It only works correctly if I call jumpTest with a "D".

CODE
// jump test

string jumpTest(string testString) {
if (testString == "A") {
jump found;
}
if (testString == "B") {
jump found;
}
if (testString == "C") {
jump found;
}
if (testString == "D") {
jump found;
}
return "y";

@found;
return testString;
}

default {
state_entry() {
llOwnerSay("jumpTest " + jumpTest("C"));
}
}

EDIT: This was dealt with from post 90 to about 96 - sorry about that
Leonor Sapeur
Registered User
Join date: 8 Jun 2005
Posts: 7
llGetObjectDetails()
10-07-2007 08:10
Hi Masakazu,

I use SCITE-EZ on Windows and find lslint.exe indispensable!

Please, oh please include the new function llGetObjectDetails().

Thank you very much!

Suggestion:
Is there a way for lslint.exe to read off the list of functions from a file such as lsl.api so that we can add functions as we go along, rather than having to bug you to update?

Anyway, keep up the good work - dunno where the community of SCITE-EZ users would be without you and your work!
Ralph Doctorow
Registered User
Join date: 16 Oct 2005
Posts: 560
10-11-2007 21:01
Is the lslint site a bit broken? I keep getting a 404 error when I attempt to get http://w-hat.com/release/win/lslint.exe.
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
10-11-2007 21:10
From: Ralph Doctorow
Is the lslint site a bit broken? I keep getting a 404 error when I attempt to get http://w-hat.com/release/win/lslint.exe.

DL at

http://w-hat.com/lslint
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Masakazu Kojima
ケロ
Join date: 23 Apr 2004
Posts: 232
10-12-2007 05:30
Correct link is http://w-hat.com/lslint/release/win/lslint.exe - should be fixed now.

I'll add llGetObjectDetails this evening probably. In the mean time you can add a comment like "// $[E10006]" and run lslint with -a to silence the error. Reading globals from a file is on my todo list for the next major version.
Masakazu Kojima
ケロ
Join date: 23 Apr 2004
Posts: 232
11-23-2007 14:27
0.3.0: 2007-11-23
- Added llGetObjectDetails() and OBJECT_* constants
- Builtin functions can be specified on command line with -b [file]

http://w-hat.com/lslint
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
11-23-2007 15:06
From: Masakazu Kojima

- Builtin functions can be specified on command line with -b [file]


OMG & WOW!!!!
Merry Christmas to ME!!!

Thank you sooooo much Masakazu!
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
01-29-2008 21:19
The following script crashes lslint.

Could you add add an interface to add additional constants (and maybe events) to lslint?
CODE
default
{
state_entry()
{
1 / 0;
}
}
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Ima Mechanique
Registered User
Join date: 25 Feb 2005
Posts: 23
08-15-2008 20:06
From: Masakazu Kojima
- Builtin functions can be specified on command line with -b [file]

http://w-hat.com/lslint

Excellent!
How about doing the same with constants. It's been some time since an update and the list of constants that are flagged as errors is getting longer. Having to manually update a file is better than having to mess around with the scripts to get it to pass checking ;-)

Edit: Oops, did not see Strife's reply before sending. So consider this support for his suggestions (constants and events).
Adam Marker
new scripter
Join date: 2 Jan 2004
Posts: 104
builtins.txt updated for 1.23.4
08-20-2009 13:49
The Shill project includes an updated builtins.txt file.
http://adammarker.org/shill
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
08-20-2009 14:10
I received a reply from Masakazu a few days ago. I was waiting to see if she was going to do the announcement herself but looks like she is too busy.


She is in the process of doing a rewrite of lslint and when she is finished we will also be able to specify new events and constants. Not only that but it will also be released open source!!!!!!!!!!!!!!!! Due to real life commitments thou, she does not have an exact time frame of when it will be released. Do not expect it before the end of September.

All I can say personally, is that I will be forever in her debt and I hope there really is such a thing as karma. If there is then she will have a blessed life after this :cool:
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
1 2 3 4 5 6