SyncSettings: 3.0.2 breaks sublime theme, plugins - AttributeError: 'bytes' object has no attribute 'encode'
After updating from 3.0.1 to 3.0.2 my theme is all messed up and plugins not working.
- SyncSettings: 3.0.2
- Sublime: 3189
- macOS 10.14.3
The console is show lots of errors for Sync Settings after it updated:
Traceback (most recent call last):
File "/Users/samm/Library/Application Support/Sublime Text 3/Installed Packages/Sync Settings.sublime-package/sync_settings/sync_manager.py", line 88, in update_files
edit_content(name, file['content'])
File "/Users/samm/Library/Application Support/Sublime Text 3/Installed Packages/Sync Settings.sublime-package/sync_settings/sync_manager.py", line 28, in edit_content
file_content = content.encode('utf-8', errors='ignore')
AttributeError: 'bytes' object has no attribute 'encode'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./python3.3/logging/__init__.py", line 941, in emit
UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in position 154: ordinal not in range(128)
Logged from file sync_manager.py, line 90
Traceback (most recent call last):
File "/Users/samm/Library/Application Support/Sublime Text 3/Installed Packages/Sync Settings.sublime-package/sync_settings/sync_manager.py", line 88, in update_files
edit_content(name, file['content'])
File "/Users/samm/Library/Application Support/Sublime Text 3/Installed Packages/Sync Settings.sublime-package/sync_settings/sync_manager.py", line 28, in edit_content
file_content = content.encode('utf-8', errors='ignore')
AttributeError: 'bytes' object has no attribute 'encode'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./python3.3/logging/__init__.py", line 941, in emit
UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in position 154: ordinal not in range(128)
Logged from file sync_manager.py, line 90
Traceback (most recent call last):
File "/Users/samm/Library/Application Support/Sublime Text 3/Installed Packages/Sync Settings.sublime-package/sync_settings/sync_manager.py", line 88, in update_files
edit_content(name, file['content'])
File "/Users/samm/Library/Application Support/Sublime Text 3/Installed Packages/Sync Settings.sublime-package/sync_settings/sync_manager.py", line 28, in edit_content
file_content = content.encode('utf-8', errors='ignore')
AttributeError: 'bytes' object has no attribute 'encode'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./python3.3/logging/__init__.py", line 941, in emit
UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in position 157: ordinal not in range(128)
Logged from file sync_manager.py, line 90
Traceback (most recent call last):
File "/Users/samm/Library/Application Support/Sublime Text 3/Installed Packages/Sync Settings.sublime-package/sync_settings/sync_manager.py", line 88, in update_files
edit_content(name, file['content'])
File "/Users/samm/Library/Application Support/Sublime Text 3/Installed Packages/Sync Settings.sublime-package/sync_settings/sync_manager.py", line 28, in edit_content
file_content = content.encode('utf-8', errors='ignore')
AttributeError: 'bytes' object has no attribute 'encode'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./python3.3/logging/__init__.py", line 941, in emit
UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in position 154: ordinal not in range(128)
Logged from file sync_manager.py, line 90
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 27 (12 by maintainers)
It works! It all appears to work!
Thank you so much @mfuentesg 🍻
Check your package control settings, and remove sync settings from your “pre release”. Then run the command “show logs” and paste the file content here.
Great! That’s ok. It worked, now I can sync my settings from other machine.
Thanks @mfuentesg for the great Sublime Text package.
Thanks @sammcj for your help.
(y)
Thanks @mfuentesg , testing now.
FYI for @neo2271 - in the sublime command pallet open “Preferences Package control settings - user”
remove
"Sync Settings"
from the list of"install_packages"
and add:I’ve done that, updated the package, uploaded my sync settings at work and will download them on my home machine - when I get home this arvo and report back.
Thanks again @mfuentesg - you’re a legend 👍
Guys, please change your package control settings using the
install_prerelease
setting to includeSync Settings
and use the pre release that I have created, then, try to download your settings again.Thanks in advance