Page 1 of 1 1
Topic Options
#207818 - 2013-09-27 03:34 PM please fix the error messages!
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I have been trying to trace an error in a script with some 1000 lines and I either come up with no error or error on line 13 of calledstuff5.kix
with invalid method function call, missing ')'

then I look at the script and it only has writeline(1,'text'+@crlf) on it.
clearly this error is bogus.

why can't kixtart provide real error information?
_________________________
!

download KiXnet

Top
#207819 - 2013-09-27 03:49 PM Re: please fix the error messages! [Re: Lonkero]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
Curious... are you seeing this happen with the script being tokenized?
Top
#207820 - 2013-09-27 04:59 PM Re: please fix the error messages! [Re: Allen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yea. and to finally solve the issue was to retokenize the short script again. oh, and the error didn't come from the tokenized script. or the script that called it but from the script that used udfs in it. but, not on the use line. not even in the same script block. after exits and endfunctions.

I have no idea how that tokenized script had anything to do with that line, but sure enough, the error is gone now.
_________________________
!

download KiXnet

Top
#207822 - 2013-09-27 05:28 PM Re: please fix the error messages! [Re: Lonkero]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
If you tokenize with one version and run with another, there's a VERY HIGH probability that you will get the strange error you've encountered. I discussed this with Ruud a while ago. He said that any 6.x version should work, but 5.x and 6.x would fail, but I've seen the issue even between minor 6.x revisions.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#207823 - 2013-09-27 10:03 PM Re: please fix the error messages! [Re: Glenn Barnas]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
oh, I learned that. 4.5 and 4.6 are not compatible.

but, I was having this issue with 4.62 opening a script tokenized with 4.62

anyways, most likely the tokenized script just somehow got corrupted I guess.
and since there seems to be no checks for validity/integrity, it just bogs out in an uncontrolled manner.
_________________________
!

download KiXnet

Top
#207824 - 2013-09-27 10:21 PM Re: please fix the error messages! [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok, nevermind. it's STILL there.

so no matter what I have done to the darn script, the stupid and totally non-informative error message comes up.
_________________________
!

download KiXnet

Top
#207836 - 2013-09-30 11:20 PM Re: please fix the error messages! [Re: Lonkero]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
I've seen those little critters .. more than enough of them.

In the best case it is caused by an overseen missing + in a string concatenation or some missing " or 's.
When it gets weird it is in the line(s) before the thrown one, or even when the bugger sits in the udf itself somewhere completely different.

So, yeah, I support fixing error messages \:D
_________________________



Top
#207839 - 2013-10-01 02:06 PM Re: please fix the error messages! [Re: Jochen]
BillBarnard Offline
Starting to like KiXtart

Registered: 2007-03-14
Posts: 141
Loc: Leighton Buzzard, Bedfordshire...
I agree with Mr Gumby, it makes my brain hurt too sometimes.
Do you get the same error with non-tokenised scripts Lonkero?
Regards,
_________________________
Bill

Top
#207841 - 2013-10-01 04:23 PM Re: please fix the error messages! [Re: BillBarnard]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I ended up removing the script from production due to this issue. note that before ppl started getting the error, it was in use without a hickup for a month.
_________________________
!

download KiXnet

Top
#207846 - 2013-10-02 09:15 AM Re: please fix the error messages! [Re: Lonkero]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
any functions in there altering COM objects by any chance Jooel?
_________________________



Top
#207861 - 2013-10-06 03:18 AM Re: please fix the error messages! [Re: Jochen]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
nothing to do with com.
_________________________
!

download KiXnet

Top
#207904 - 2013-10-10 07:13 PM Re: please fix the error messages! [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
and now another script. worked fine for months. first error ) expected on line 411.
I was like wth... this is insane.
ran the script again and have, error expected ) on line 210.

this is freaking stupid.

found a plausible cause of the error on line 199... which obviously is completely unconnected to either line errored about, and obviously the script has no missing closing parenthesis.
_________________________
!

download KiXnet

Top
#207907 - 2013-10-10 08:28 PM Re: please fix the error messages! [Re: Lonkero]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
Run KGEN or Sanity against the source to see if it warns about anything. I've never seen this unless something is tokenized with a different version.

Upload the script to the Kix.net dev server as a .txt file and run "kgen filename" from a command prompt and check the screen output and logs.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#207909 - 2013-10-11 05:15 PM Re: please fix the error messages! [Re: Glenn Barnas]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Kix.net dev server? where? whut?
_________________________



Top
#207912 - 2013-10-11 05:43 PM Re: please fix the error messages! [Re: Jochen]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
I host an RDP server here where Jooel was/is developing Kix.Net along with a few others. He still has access to the server and the KGen development tool is available on the server. KGen would make quick work of identifying any mismatched pair of objects (quotes, parens, and paired functions like If/EndIf).

You can download KGen from my web site.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#207917 - 2013-10-16 11:08 PM Re: please fix the error messages! [Re: Glenn Barnas]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yea... I would say was. it's been iced ever since my laptop had to be reimaged year ago. and now that bugger is completely dead.
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 248 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.034 seconds in which 0.011 seconds were spent on a total of 13 queries. Zlib compression enabled.