LotusScript Error

I am working with a Script Library using the Eclipse based LotusScript Editor. Everything was fine until yesterday when it started giving me an error every time I saved this particular script library. It just keeps telling me “Script contains errors. Would you like to save anyway?”

The problem is that it doesn’t indicate any error location. If I create an actual error, the red line appears and it tells me the line number and problem so I know that works, but this save issue doesn’t tell me anything.

If I use “Recompile all LotusScript” it compiles without problems. If I switch to the original Notes LotusScript editor it also has no issues.

I’ve tried restarting Notes, my machine, making a new copy of the library, etc.

The only indication of an error is in the Design outline. It flags the script library and any libraries dependent on that library as having an error. When I view it this way, it shows an error in the problems pane:

“Illegal Directive” and gives a line number. If go to that line in the full script screen it is a simple variable = “text value” so I don’t believe that is it.

Anyone have any thoughts?

Subject: having the same problem

I have the same trouble, working inside a Notes mail 8.5.1 design. It is showing that all my “home-grown” libraries have errors. However, these all compile without error in 8.0 designer.

I suspect it may have something to do with using .lss files - if Designer can’t find them on its machine. In my case, I keep the .lss on only one machine (for security of proprietary code), and any other machines will treat that library (and any dependant ones) as uncompilable.

HTH

Subject: Illegal Directive error in eclipse based designe

I have found that the problem is with the automatically generated %REM statements that appear of a new function or sub in the script library. For some reason they become corrupt and the only way to get around it is to comment all of the %REM block using the apostrophe (') comment type.

This must be a bug in the eclipse based designer as I never had it in previous versions. It is very annoying because it is not obvious where the problem is. Lotus, please sort this out.

Subject: RE: Thanks…

Hey there. Thanks. This thread helped me alot. I was also having the same “Illegal Directive” problem which points me to a specific line. Commenting out the block remarks sure did the trick. :slight_smile:

Subject: Random thought…

  • I’ve seen this with R-prior’s LS … an error appears on an object method call, typically. In this scenario it compiles just fine when done one element at a time, but “Recompiled All LotusScript” complains of an error in one or more elements. Usually the element “in error” is a top level element, such a Form, where the actual error is in a subordinate element, like a Shared Action or a Script Library that defines a class. The top level element “in error” never has an error and it though it appears in the error list, there is no error information.- The solution is to run the code in the debugger, and it generally does fail on the line with the actual error in it, but of course that only happens if that line gets executed. Sometimes it will toss the “use module” dialog when you try to run it, which makes things harder because the error may be in that module or a dependent one, but at least you know what code tree to look at.

  • DDE may not be doing this, but it seemed relevant enough to toss it out there on the off-chance it was relevant and helped lead to resolution.

Hope this helps…