CudaText: error in Snippets plugin: plugins/snippets/convert snippet package from old format

HI, I only noticed that they changed the snippet routine when I couldn’t call anymore. I downloaded it again and now, it must have a bug because I can’t get the routine that retrieves the snippets for the new structure to work. See the error I caught on the console:

Traceback (most recent call last):
  File "C:\Cudatext\py\cuda_snippets\__init__.py", line 200, in convert_from_old_format
    sn.convert_old_pkg(d, os.path.join(_data, 'snippets_ct'))
  File "C:\Cudatext\py\cuda_snippets\snip\loader.py", line 204, in convert_old_pkg
    res = parse_snippet_file(sn)
  File "C:\Cudatext\py\cuda_snippets\snip\loader.py", line 61, in parse_snippet_file
    lines = f.read().splitlines()
  File "codecs.py", line 321, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe3 in position 900: invalid continuation byte
ERROR: Exception in CudaText for convert_from_old_format: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe3 in position 900: invalid continuation byte

Thanks

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (12 by maintainers)

Commits related to this issue

Most upvoted comments

Changed

pasta

Snippet Manager doesn’t delete files, it directs user to do it himself

snippackdel