Crash with a new model in a session
$ texts session
Input > %hist
Input > a = 1
Input > %uuid
uuids: 2433a99210a14915aa4be9fdddc70d49 ('2433a99210a14915aa4be9fdddc70d49')
Input > %exit
Exiting
(python-3.10.12) vanjo@cubi:~/work/vre-language$ texts session -u 2433a99210a14915aa4be9fdddc70d49
Input > %hist
WAITING 2024-07-07T09:32:49+02:00 a = 1
Input > %uuid
uuids: 2433a99210a14915aa4be9fdddc70d49 ('2433a99210a14915aa4be9fdddc70d49')
Input > %new
Traceback (most recent call last):
File "vre-language/src/virtmat/language/utilities/errors.py", line 285, in wrapper
return func(*args, **kwargs)
File "vre-language/src/virtmat/language/cli/run_session.py", line 87, in main
mgr.main_loop()
File "vre-language/src/virtmat/language/interpreter/session_manager.py", line 600, in main_loop
self.session = Session(self.lpad, create_new=True,
File "vre-language/src/virtmat/language/interpreter/session_manager.py", line 101, in __init__
raise ValueError(msg)
ValueError: grammar must be provided if uuid not provided
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "python-3.10.12/bin/texts", line 8, in <module>
sys.exit(texts())
File "vre-language/src/virtmat/language/cli/__init__.py", line 25, in texts
clargs.func(clargs)
File "vre-language/src/virtmat/language/utilities/errors.py", line 314, in wrapper
raise RuntimeError('non-handled exception') from err
RuntimeError: non-handled exception