LonkeroAdministrator
(KiX Master Guru)
2013-09-27 03:34 PM
please fix the error messages!

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?


AllenAdministrator
(KiX Supporter)
2013-09-27 03:49 PM
Re: please fix the error messages!

Curious... are you seeing this happen with the script being tokenized?

LonkeroAdministrator
(KiX Master Guru)
2013-09-27 04:59 PM
Re: please fix the error messages!

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.


Glenn BarnasAdministrator
(KiX Supporter)
2013-09-27 05:28 PM
Re: please fix the error messages!

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


LonkeroAdministrator
(KiX Master Guru)
2013-09-27 10:03 PM
Re: please fix the error messages!

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.


LonkeroAdministrator
(KiX Master Guru)
2013-09-27 10:21 PM
Re: please fix the error messages!

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.


JochenAdministrator
(KiX Supporter)
2013-09-30 11:20 PM
Re: please fix the error messages!

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


BillBarnard
(Starting to like KiXtart)
2013-10-01 02:06 PM
Re: please fix the error messages!

I agree with Mr Gumby, it makes my brain hurt too sometimes.
Do you get the same error with non-tokenised scripts Lonkero?
Regards,


LonkeroAdministrator
(KiX Master Guru)
2013-10-01 04:23 PM
Re: please fix the error messages!

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.

JochenAdministrator
(KiX Supporter)
2013-10-02 09:15 AM
Re: please fix the error messages!

any functions in there altering COM objects by any chance Jooel?

LonkeroAdministrator
(KiX Master Guru)
2013-10-06 03:18 AM
Re: please fix the error messages!

nothing to do with com.

LonkeroAdministrator
(KiX Master Guru)
2013-10-10 07:13 PM
Re: please fix the error messages!

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.


Glenn BarnasAdministrator
(KiX Supporter)
2013-10-10 08:28 PM
Re: please fix the error messages!

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


JochenAdministrator
(KiX Supporter)
2013-10-11 05:15 PM
Re: please fix the error messages!

Kix.net dev server? where? whut?

Glenn BarnasAdministrator
(KiX Supporter)
2013-10-11 05:43 PM
Re: please fix the error messages!

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


LonkeroAdministrator
(KiX Master Guru)
2013-10-16 11:08 PM
Re: please fix the error messages!

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.