[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pcal.trans error not shown in IDE
Thanks for reporting the bug. I fixed it in the code available on the CodePlex site. The fix will appear in the next release.
On Thursday, August 20, 2015 at 6:34:29 PM UTC-7, Yan Li wrote:
I’ve seen a mysterious problem where translating +Cal in IDE stopped working. After pressing Ctrl-T, a dialog showed up but swiftly disappeared, leaving no error message (and of course no TLA+ code produced). I’ve managed to track this problem down by running pcal.trans on the command line. It was caused by a missing procedure name as shown below.
> java -cp c:\tools\TLAToolbox-1.5.1-win32.win32.x86_64\toolbox\plugins\org.lamport.tlatools_22.214.171.124506011130 pcal.trans ObjBackend.tla
pcal.trans Version 1.8 of 2 Apr 2013
Warning: symbols were renamed.
-- Could not find procedure name `BackgroundProcessingThread' in method FixMultiprocess.
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
The error was caused by a typo in the procedure name. The problem is that this error message from pcal.trans is not parsed and shown correctly in the IDE, which makes debugging this kind of error very hard.
Not sure if this is a known problem. I think it’s fairly easy to reproduce. If you need a minimal working sample, let me know.