Crash in FieldCache with more than 65k values
we're getting a crash in Field Cache with large numbers of values - reproduced using 2.2.2 and 2.4.1
/whoosh/filedb/fieldcache.py", line 273, in to_file UnboundLocalError: local variable 'newcode' referenced before assignment
This is related to Issue
#178, which was fixed last year.
It looks to me like this code block was copy-pasted twice more into the same file before being fixed - in v.2.4.1 the same line needs to be added at lines 270 and 426.