[CWB] Problem loading saved searches in latest version

Martin Hammarstedt martin.hammarstedt at gu.se
Tue Jun 18 19:45:11 CEST 2019


Hi,

I recently compiled the latest development version, revision 1250, and 
encountered a problem I haven't run into before.

Basically, when saving the same search for several different corpora, 
the one saved first can't be read. See below:

[no corpus]> set DataDirectory "/tmp";
[no corpus]> ONE;
ONE> saved_search = "horse";
ONE> save saved_search;
ONE> TWO;
TWO> saved_search = "horse";
TWO> save saved_search;
TWO> THREE;
THREE> saved_search = "horse";
THREE> save saved_search;
THREE> ONE;
ONE> a = saved_search;
CQP Error:
         Corpus ``saved_search'' is undefined
ONE> TWO;
TWO> a = saved_search;
TWO> THREE;
THREE> a = saved_search;
THREE>

If I save the same search for corpus ONE again, it becomes readable, and 
the saved search for corpus TWO becomes unreadable instead.

The above commands work as expected in version 3.4.12.

Best regards,
Martin



More information about the CWB mailing list