[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlaplus] Video lecture 6 (Two-Phase Commit)



Hi,
I am running into the same issue and not able to resolve. From what I understand in the solution given in the thread, I created a new folder, copied TCommit and TwoPhase tla file to that folder and opened a new spec in that folder. I kept TCommit as the root spec and made the name of spec TwoPhase. Then I added TwoPhase file as a new module. But this ran into the same issue of "TPInit" not found.

When I try to make a new spec and chose TCommit as root spec, I get the error saying that TCommit is already part of a spec. Please advice as to what am I missing.

Thanks in advance.
- A.R.

On Friday, August 3, 2018 at 6:52:33 PM UTC-4 howswiftlyd...@xxxxxxxxx wrote:
I see, yes, same problem, same solution. Thank you.

Seb


On Friday, 3 August 2018 17:58:38 UTC+1, Maneet Bansal wrote:
Can you search a thread named 

“How to run models on deifferent modules in the same spec” 

I think you are facing the similar problem. I short yes you have to create a new spec.

Thanks
Maneet

On Fri, Aug 3, 2018 at 7:05 AM Sebastian Hunt <howswiftlyd...@xxxxxxxxx> wrote:
Just starting out with the toolbox and enjoying the lectures. But I did hit a snag. The lecture 6 instructions to create a spec for Two-Phase Commit say:

"In the Toolbox, create a new module named TwoPhase in the same folder as TCommit."

Since I was following on immediately from Lecture 5, I already had the TCommit spec open in the toolbox. So I did:

File > Open Module > Add TLA+ Module

and carried on my merry way. But, when I created a new model, the toolbox complained that the names "TPInit" and so on were "unknown operators".

It seems it is necessary to create a new TwoPhase *spec* rather than just a new module.

Am I right in thinking then that a model can only refer directly to the names declared and defined (and "included") in the root module of a spec, not those of any other module? This would seem reasonable, if so, but somehow it was not clear to me.

Seb

--
You received this message because you are subscribed to the Google Groups "tlaplus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+u...@xxxxxxxxxxxxxxxx.
To post to this group, send email to tla...@xxxxxxxxxxxxxxxx.
Visit this group at https://groups.google.com/group/tlaplus.
For more options, visit https://groups.google.com/d/optout.
--
Regards
Maneet Bansal

--
You received this message because you are subscribed to the Google Groups "tlaplus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+unsubscribe@xxxxxxxxxxxxxxxx.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/147a078a-a74c-4ccb-8dab-b8ed12b10b36n%40googlegroups.com.