Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

lslint - offline code checker for LSL

Ima Mechanique
Registered User
Join date: 25 Feb 2005
Posts: 23
11-20-2006 15:28
From: Ralph Doctorow
Each label can only have a single jump going to it, which seems like a pretty serious bug to me.


Which it is and was noted by RobbyRacoon Olmstead above at 94
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
12-01-2006 20:35
Hi Masakazu!!!

I changed my lsl.api, and lsl.properties files by hand for Scite-EZ. Copied in the new pages from the wiki and put them into my copy on the desktop and updated the functions page links. So I only have one more project to be the happiest person in the whole wide world!!!!!! But lslint is an exe file and I can't update it. Any ideas on when someone can get the new changes into it??????

Pretty please with a cherry on top :-)
_____________________
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
12-06-2006 14:02
0.2.7: 2006-12-06
- Added 1.13.0 functions/constants:
-- llGetObjectPrimCount(), llGetParcelPrimOwners(), llGetParcelMaxPrims(),
-- llGetParcelPrimCount(), llGetParcelDetails(), PARCEL_COUNT_*,
-- PARCEL_DETAILS_*
- Added 1.11.2 constants:
-- DATA_PAYINFO, PARCEL_FLAG_RESTRICT_PUSHOBJECT,
-- REGION_FLAG_RESTRICT_PUSHOBJECT

http://w-hat.com/lslint/
Script Su
Professional SOA Designer
Join date: 23 Aug 2006
Posts: 79
12-06-2006 14:36
your download is screwed up. Can you jjust post the exe. It keeps saying file not found and its annoying. Ive been trying to download for ages!
_____________________
The LSL Repository @ sf.net. The LSL Repository is dedicated to bring open source lsl programmers together and develop the best service oriented scripts. Gridworks gives you the whole package. We also have in-house builders, scripters, web programmers, and salesmen. Premium Account||Age Verified||Gridworks Executive
Eddy Stryker
libsecondlife Developer
Join date: 6 Jun 2004
Posts: 353
12-06-2006 15:00
From: Script Su
your download is screwed up. Can you jjust post the exe. It keeps saying file not found and its annoying. Ive been trying to download for ages!


Download works fine.
_____________________
http://www.libsecondlife.org

From: someone
Evidently in the future our political skirmishes will be fought with push weapons and dancing pantless men. -- Artemis Fate
Masakazu Kojima
ケロ
Join date: 23 Apr 2004
Posts: 232
12-06-2006 15:15
Try clearing your cache, or http://w-hat.com/lslint/release/win/lslint-v0.2.7.exe
Rifkin Habsburg
Registered User
Join date: 17 Nov 2005
Posts: 113
12-07-2006 01:38
...any chance of a Mac release?
_____________________
Procyon Games: makers of Can't Stop, En Garde, Take it Easy, Danger Zone and Frootcake.
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
12-07-2006 04:12
I believe the reason that the Mac port was discontinued was because Masakazu doesn't have a Mac to test it on. It's hard to develop software for a platform you don't have access to.
_____________________
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
Script Su
Professional SOA Designer
Join date: 23 Aug 2006
Posts: 79
It works
12-07-2006 06:07
seems like they fix the download issues. Download works fine now.
_____________________
The LSL Repository @ sf.net. The LSL Repository is dedicated to bring open source lsl programmers together and develop the best service oriented scripts. Gridworks gives you the whole package. We also have in-house builders, scripters, web programmers, and salesmen. Premium Account||Age Verified||Gridworks Executive
Masakazu Kojima
ケロ
Join date: 23 Apr 2004
Posts: 232
12-07-2006 07:40
Mac version posted, let me know if it works. Thanks go to Howie Lament again for the shell.
Rifkin Habsburg
Registered User
Join date: 17 Nov 2005
Posts: 113
12-10-2006 19:06
Looks like it works! Awesome, I can finally check my code again. Thank you so much!
_____________________
Procyon Games: makers of Can't Stop, En Garde, Take it Easy, Danger Zone and Frootcake.
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
12-16-2006 15:41
lslint doesn't return an error, it should.

CODE

string update_parent()
{
}

default
{
state_entry()
{
update_parent();
}
}
_____________________
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
Piero Padar
#
Join date: 26 Aug 2005
Posts: 42
Please compile the new version for Mac!
12-17-2006 03:14
Please compile the new version for Mac!

Thanks
Masakazu Kojima
ケロ
Join date: 23 Apr 2004
Posts: 232
12-17-2006 03:27
From: Piero Padar
Please compile the new version for Mac!
Oh, whoops, it was showing an old version of the page. Refresh it or direct link to mac version.
Piero Padar
#
Join date: 26 Aug 2005
Posts: 42
THANKS! and...
12-22-2006 07:43
...did you see my LSL bundle for TextMate?

Download Link: http://digilander.libero.it/usemac/tm.zip

It is for Mac... if you still use a PC :eek: take a look here: http://macromates.com/screencasts
...and you will change your mind ;)

# Piero
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
01-19-2007 14:56
Lslint allows if(x <> "";) where as SL generates a syntax error.
(my excuse was I had been forced to write VB this morning!!!)
Enri Benigni
Registered User
Join date: 19 Jan 2007
Posts: 5
Save the Compiler's Log in a file
01-25-2007 11:55
Hey Masakazu, this compiler is great !

But I have a question...
I'm trying to Run lslint from Notepad++, using F5 option, but wanted to save the output from the compiler, and then open the log file to review the errors/warnings.
Started with batch script, and now I'm using vbs, but I haven't been able to save the output.

Here it's the code...
Set objShell = CreateObject("WScript.Shell";)
StrText = CompilerDir & " " & Chr(34) & LSLFile & Chr(34)
Set objExec = objShell.Exec( StrText )
strOutput = LCase(objExec.StdOut.ReadAll)

And strOutput doesn't get the log.

Is there a reason why?

Please let me know, thanks in advance, and keep up with the excellent work :-)

Saludos !

EB
Masakazu Kojima
ケロ
Join date: 23 Apr 2004
Posts: 232
01-25-2007 11:57
From: Enri Benigni
strOutput = LCase(objExec.StdOut.ReadAll)

Try StdErr instead of StdOut.
Enri Benigni
Registered User
Join date: 19 Jan 2007
Posts: 5
Still the same...
01-25-2007 13:39
From: Masakazu Kojima
Try StdErr instead of StdOut.


Didn't work with StdErr either... I'll keep trying.
Another idea?

Thanks
Enri Benigni
Registered User
Join date: 19 Jan 2007
Posts: 5
Still the same...
01-25-2007 13:45
From: Masakazu Kojima
Try StdErr instead of StdOut.


Didn't work with StdErr either... I'll keep trying.
Another idea?

Thanks
Masakazu Kojima
ケロ
Join date: 23 Apr 2004
Posts: 232
01-25-2007 13:55
From googling, it looks like you need to wait for it to finish. Something like
CODE

Set objExec = objShell.Exec( StrText )
Do Until objExec.Status
WScript.Sleep 250
Loop

strOutput = LCase(objExec.StdErr.ReadAll)
Enri Benigni
Registered User
Join date: 19 Jan 2007
Posts: 5
Got it !
01-25-2007 15:44
Thanks... just find a very easy way, and also open the errlog file in Notepad++ too :-)

It is a bat file, just two lines, like this:
COMPILER_PATH\lslint.exe %1 2> COMPILER_PATH\lslint_log.err
C:\Notepad++\notepad++.exe COMPILER_PATH\lslint_log.err

I just send the complete file name as an argument of the bat file.

Thanks again.

Saludos !

EB
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
03-17-2007 03:51
*burp*

Changes to LSL
CODE
string llStringTrim( string src, integer type );
integer STRING_TRIM_HEAD = 0x01;//Trims spaces off the beginning.
integer STRING_TRIM_TAIL = 0x02;//Trims spaces off the end
integer STRING_TRIM = 0x03;//Trims spaces off the beginning and end.
llSetLinkTexture( integer linknumber, string texture, integer face );
llSetLinkPrimitiveParams( integer linknumber, list rules );
_____________________
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
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
03-23-2007 21:22
It seems like lslint doesn't check for code paths to return values.

CODE

string someFunction()
{
integer x;
x = (integer)llFrand(20);
}

default
{
state_entry()
{
someFunction();
}
}


lslint gives the output
CODE

TOTAL:: Errors: 0 Warnings: 0


But, the SL LSL compiler gives
CODE

(4, 0) : ERROR : Not all code paths return a value
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
Please, oh, please????
04-02-2007 15:51
I absolutely love being able to use lslint to do basic error checking of my scripts before I start testing them. I'm always amazed at the stupid errors I catch like not declaring a global variable or using the wrong argument for a function.

Are there plans to update to include the new link functions? I'm starting to use them, and lslint flags them as errors. I was able to add them to scite-ez, but do not know how to do anything with lslint. But I would love to see it updated. (would even be willing to donate a little for the trouble and effort!)

Baron H.
1 2 3 4 5 6