You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, if I have a Waldo sequence SeqSendMSG and a Waldo function send_msg defined as
Public Function send_msg(Text msg) {
SeqSendMSG(msg);
SeqSendMSG(msg);
}
Calling this function will return the following error, along with a stack trace:
Compiler error: Already had an entry for variable trying to insert into store.
To clarify, the error does not actually occur when the Waldo file is being compiled.
Full code:
Test.wld:
Test
Endpoint Client;
Endpoint Server;
Sequences {
SeqSendMSG: Client.sendMSG -> Server.receiveMSG;
}
Sequence SeqSendMSG (Text msg) returns Text result
{
Client.sendMSG {
}
Server.receiveMSG {
}
}
Client
{
Public Function send_msg(Text msg) {
SeqSendMSG(msg);
SeqSendMSG(msg);
}
}
Server
{
}
Server.py:
from emitted import Server
import sys
sys.path.append("../../../")
from waldo.lib import Waldo
import time
HOSTNAME = '127.0.0.1'
PORT = 9028
Waldo.tcp_accept(Server, HOSTNAME, PORT)
print 'Server is up and running.'
while True:
pass
Client.py:
from emitted import Client
import sys
sys.path.append("../../../")
from waldo.lib import Waldo
HOSTNAME = '127.0.0.1'
PORT = 9028
client = Waldo.tcp_connect(Client, HOSTNAME, PORT)
client.send_msg('100')
The text was updated successfully, but these errors were encountered:
For example, if I have a Waldo sequence
SeqSendMSG
and a Waldo functionsend_msg
defined asCalling this function will return the following error, along with a stack trace:
To clarify, the error does not actually occur when the Waldo file is being compiled.
Full code:
Test.wld:
Server.py:
Client.py:
The text was updated successfully, but these errors were encountered: