I imported some Java script libraries which Notes designer refused to compile because of the equivilent of a circular reference issue. So I fixed the class so that it would compile. I tried to close the script library and it won’t close, everything compiles perfectly, yet Notes will not let me close the script library it simply says compile succesful. I have to end the task, and I loose all of my changes to the script libary. Any ideas?
Subject: been there!
Wes,
What you have to do is select the offending code, copy it into the windows clipboard and paste into another editor.
Then abort your script library save, and paste the new code in.
Sometimes I’ve saved myself by just “commenting” the offending new code out as comments. This works too.
By the way, I’ve known about this bug since version 4.51. It occurs to me at least 2 -3 times a week when I’m working in LotusScript.
Pretty dumb, huh?
Marcus
Subject: RE: been there!
The problem is that there is NO offending code. Everything compiles file. It says Compile successfull. Plus, I simply cannot close the script library, it simply won’t close. I click on the X on the window and it doesn’t even ask me to save the script library, it simply compiles the code successfully and just sits there!!! I have to end Notes.
Subject: Script Libraries are sometimes a pain …
The solutions mentioned by Marcus are the only way out I’m afraid …
There are more problems with Libraries: sometimes changes made in the library don’t seem to get trough to the code where you use the library. No matter how many times you resave, recompile or ‘compile all scripts’. The only way then is to close the Notes client and restart it. After that, there seems to be no problem at all.
Subject: been there too!
I’m glad that Lotus hears from those of us that have seen many moons of Notes!
However, there IS a better way to solve the problem that you are suggesting. You don’t have to close the designer. Here’s what I noticed would work for me:
You are making changes in your agent, then notice that there really is something wrong in the script library too.
Make the changes in the script library, then save them and close the script library.
As you go back to the agent, you would expect that the script library would be read again when compiling the agent. This is not the case. The script library must have been read into memory when you opened the agent. You have to comment out the offending code, save the agent, close, it, reopen it, remove the comments you just put in, then resave the agent.
Really, this does work!!
Marcus
Subject: RE: been there too!
I think I’m experiencing something quite different from you guys. Notes simply will not let me close the library and there are NO compile errors. I click the ‘X’ on the window and it compiles my code just fine. Then it just sits there and acts like a piece-of. If I hit the save button it does the same thing, there is no error message, it just sits there and doesn’t save my code. I have to end the notes task from explorer. I CAN repeat this problem 100% of the time.