Sublime Forum

Package control not working in Sublime Text build 4126

#1

Case (1) On Fedora 29 with Sublime Text build 4126 I have Package control installed in ~/.config/sublime-text-3/Installed Packages/Package Control.sublime-package, but in Command Palette I don’t have any Package control options

Case (2) On RHEL 8 with Sublime Text build 4126 I have Package control installed in ~/.config/sublime-text-3/Installed Packages/Package Control.sublime-package, I have the “Package Control: Install Package” option in Command Palette but when I chose this option nothing happens.

0 Likes

#2

Check your ignored_packages setting, maybe it ended up in there

Check the ST console for errors (View menu -> Show Console)

0 Likes

#3

Thanks @kingkeith

Case 1) It works today. I have not changed anything meanwhile. :roll_eyes:

Case 2) There is a file missing:

FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/sublime-text-3/Cache/Package Control/http_cache'

0 Likes

#4

I fixed this by doing

cd ~/.cache/sublime-text-3/Cache
mkdir -p 'Package Control/http_cache'

but now I have this error

Exception in thread Thread-12:
Traceback (most recent call last):
File "./python3.3/threading.py", line 901, in _bootstrap_inner
File "~/.config/sublime-text-3/Installed Packages/Package Control.sublime-package/package_control/commands/install_package_command.py", line 45, in run
self.package_list = self.make_package_list(['upgrade', 'downgrade', 'reinstall', 'pull', 'none'])
File "~/.config/sublime-text-3/Installed Packages/Package Control.sublime-package/package_control/package_installer.py", line 92, in make_package_list
if self.manager.is_vcs_package(package):
File "~/.config/sublime-text-3/Installed Packages/Package Control.sublime-package/package_control/package_manager.py", line 310, in is_vcs_package
return self._is_git_package(package) or self._is_hg_package(package)
File "~/.config/sublime-text-3/Installed Packages/Package Control.sublime-package/package_control/package_manager.py", line 285, in _is_git_package
return os.path.exists(git_dir) and (os.path.isdir(git_dir) or os.path.isfile(git_dir))
File "./python3.3/genericpath.py", line 18, in exists
File "./python3.3/encodings/iso8859_15.py", line 12, in encode

UnicodeEncodeError: 'charmap' codec can't encode character '\u2013' in position 52: character maps to <undefined>
0 Likes

#5

Ok. I checked /etc/locale.conf and I have the following configuration

LANG=en_US.UTF-8

When I start Sublime Text I see the following error message:
“Your sistem’s locale is set to a value that can not handle non-ASCII characters.”

I used

LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /opt/sublime_text/sublime_text 

to start Sublime Text 4 but I have the same problem.

I also have in my .bashrc

export LANG=en_US.UTF-8 
export LC_CTYPE=en_US.UTF-8

Is there anything else I can check on my system in order to debug this? For some reason sublime is trying to use iso8859_15

0 Likes

#6

Ok, I managed to fix this.

I had to add LC_ALL="en_US.UTF-8" in /etc/locale.conf and export LC_ALL=en_US.UTF-8 in ~/.bashrc

0 Likes