imewlconverter icon indicating copy to clipboard operation
imewlconverter copied to clipboard

MacOS报错 Unhandled exception. System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')

Open 0xZhangKe opened this issue 2 years ago • 0 comments

输入参数为: dotnet ImeWlConverterCmd.dll -i:sgpybin ./sougou.bin -o:gboard ./sougou.txt

Unhandled exception. System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
   at Studyzy.IMEWLConverter.IME.SougouPinyinDict.GetNonAttributeDataSize(KeyItem key, Int32 maskedTypeDef) in /home/appveyor/imewlconverter/src/ImeWlConverterCore/IME/SougouPinyinDict.cs:line 205
   at Studyzy.IMEWLConverter.IME.SougouPinyinDict.Initialise() in /home/appveyor/imewlconverter/src/ImeWlConverterCore/IME/SougouPinyinDict.cs:line 160
   at Studyzy.IMEWLConverter.IME.SougouPinyinDict..ctor(List`1 keyList, List`1 attributeList, List`1 aIntList) in /home/appveyor/imewlconverter/src/ImeWlConverterCore/IME/SougouPinyinDict.cs:line 80
   at Studyzy.IMEWLConverter.IME.SougouPinyinBinFromPython.InitialiseUserDict(FileStream fs, UInt32& checksum) in /home/appveyor/imewlconverter/src/ImeWlConverterCore/IME/SougouPinyinBinFromPython.cs:line 64
   at Studyzy.IMEWLConverter.IME.SougouPinyinBinFromPython.Import(String path) in /home/appveyor/imewlconverter/src/ImeWlConverterCore/IME/SougouPinyinBinFromPython.cs:line 35
   at Studyzy.IMEWLConverter.MainBody.Convert(IList`1 filePathes) in /home/appveyor/imewlconverter/src/ImeWlConverterCore/MainBody.cs:line 207
   at Studyzy.IMEWLConverter.ConsoleRun.Run() in /home/appveyor/imewlconverter/src/ImeWlConverterCore/ConsoleRun.cs:line 124
   at Studyzy.IMEWLConverter.Program.Main(String[] args) in /home/appveyor/imewlconverter/src/ImeWlConverterCmd/Program.cs:line 18
[1]    11449 abort      dotnet ImeWlConverterCmd.dll -i:sgpybin /Users/zhangke/Downloads/sougou.bin
➜  imewlconverter_Linux_Mac

0xZhangKe avatar Sep 21 '22 11:09 0xZhangKe