Sublime Forum

Can't install new packages on build 3126

#1

The vast majority of the packages that I’m trying to install via package control do not get installed but end up stuck in my settings - user “in_process_packages” array forever.

What and why is that?

0 Likes

#2

Because something failed.

No idea what could have failed if you don’t provide a console log.

0 Likes

#3

This is at startup:

startup, version: 3126 osx x64 channel: stable
executable: /Users/me/Applications/Sublime Text.app/Contents/MacOS/Sublime Text
working dir: /
packages path: /Users/me/Library/Application Support/Sublime Text 3/Packages
state path: /Users/me/Library/Application Support/Sublime Text 3/Local
zip path: /Users/me/Applications/Sublime Text.app/Contents/MacOS/Packages
zip path: /Users/me/Library/Application Support/Sublime Text 3/Installed Packages
ignored_packages: []
Unable to decode Packages/Material Theme/assets/default/tree_highlight.png
pre session restore time: 1.15129
first paint time: 1.22335
startup time: 1.29579
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading plugin Default.comment
reloading plugin Default.convert_syntax
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.install_package_control
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.profile
reloading plugin Default.quick_panel
reloading plugin Default.run_syntax_tests
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.settings
reloading plugin Default.show_scope_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin Vintage.vintage
reloading plugin Vintage.vintage_commands
reloading plugin Vintage.vintage_motions
reloading plugin 0_package_control_loader.00-package_control
reloading plugin 0_package_control_loader.01-pygments
reloading plugin 0_package_control_loader.02-bz2
reloading plugin 0_package_control_loader.50-markupsafe
reloading plugin 0_package_control_loader.50-python-markdown
reloading plugin 0_package_control_loader.51-python-jinja2
reloading plugin 0_package_control_loader.55-mdpopups
reloading plugin Alignment.Alignment
reloading plugin Expand Tabs on Save.ExpandTabsOnSave
reloading plugin Git.git_commands
reloading plugin GitGutter-Edge.git_gutter
reloading plugin GitGutter-Edge.git_gutter_change
reloading plugin GitGutter-Edge.git_gutter_compare
reloading plugin GitGutter-Edge.git_gutter_events
reloading plugin GitGutter-Edge.git_gutter_handler
reloading plugin GitGutter-Edge.git_gutter_popup
reloading plugin GitGutter-Edge.git_helper
reloading plugin GitGutter-Edge.view_collection
reloading plugin Material Theme.mt_activator
reloading plugin Material Theme.mt_changes
reloading plugin Material Theme.mt_config
reloading plugin Material Theme.mt_info
reloading plugin Material Theme.mt_urls
reloading plugin Package Control.1_reloader
reloading plugin Package Control.2_bootstrap
reloading plugin Package Control.Package Control
reloading plugin Babel.Babel
plugins loaded
Traceback (most recent call last):
  File "package_control.package_cleanup in /Users/me/Library/Application Support/Sublime Text 3/Installed Packages/Package Control.sublime-package", line 320, in <lambda>
  File "package_control.package_cleanup in /Users/me/Library/Application Support/Sublime Text 3/Installed Packages/Package Control.sublime-package", line 458, in finish
  File "package_control.settings in /Users/me/Library/Application Support/Sublime Text 3/Installed Packages/Package Control.sublime-package", line 73, in save_list_setting
  File "package_control.settings in /Users/me/Library/Application Support/Sublime Text 3/Installed Packages/Package Control.sublime-package", line 73, in <lambda>
AttributeError: 'int' object has no attribute 'lower'
0 Likes

#4

This is when I try to install Autoprefixer package from package control install:

Package Control: Fetching list of available packages and dependencies
  Platform: osx-x64
  Sublime Text Version: 3126
  Package Control Version: 3.2.1
Package Control: Download Debug
  URL: https://packagecontrol.io/channel_v3.json
  Timeout: 30
  Resolved IP: (...)
  Resolved IPv6: (...)
Package Control: Urllib Debug Proxy
  http_proxy: 
  https_proxy: 
  proxy_username: 
  proxy_password: 
Package Control: Found previously exported CA bundle at /Users/me/Library/Application Support/Sublime Text 3/Packages/User/oscrypto-ca-bundle.crt (303880 bytes)
Package Control: Urllib HTTPS Debug General
  Connecting to packagecontrol.io on port 443
Package Control: Urllib HTTPS Debug General
  Upgrading connection to SSL using CA certs file at /Users/me/Library/Application Support/Sublime Text 3/Packages/User/Package Control.merged-ca-bundle
  Successfully upgraded connection to packagecontrol.io:443 with SSL Using TLSv1/SSLv3 with cipher ECDHE-RSA-AES128-SHA
  Server SSL certificate:
    subject: CN=codexns.io,O=Codex Non Sufficit LC,L=Newbury,S=Massachusetts,C=US,serialNumber=471714639,businessCategory=Private Organization,jurisdictionStateOrProvinceName=Massachusetts,jurisdictionCountryName=US
    subject alt name: packagecontrol.io, wbond.net, sublime.wbond.net, badtls.io, codexns.io, www.codexns.io
    expire date: Nov 27 23:59:59 2016 GMT
  Certificate validated for packagecontrol.io
Package Control: Urllib HTTPS Debug Write
  GET /channel_v3.json HTTP/1.1
  If-Modified-Since: Sat, 24 Sep 2016 18:20:05 GMT
  If-None-Match: "57e6c3d5-4148d"
  User-Agent: Package Control v3.2.1
  Connection: Keep-Alive
  Accept-Encoding: bzip2,gzip,deflate
  Host: packagecontrol.io
Package Control: Urllib HTTPS Debug Read
  HTTP/1.1 200 OK
  Server: nginx
  Date: Sat, 24 Sep 2016 23:23:40 GMT
  Content-Type: application/json
  Content-Length: 266740
  Last-Modified: Sat, 24 Sep 2016 23:20:05 GMT
  Connection: keep-alive
  ETag: "57e70a25-411f4"
  Content-Encoding: bzip2
  Vary: Accept-Encoding
  Strict-Transport-Security: max-age=15552000
  Accept-Ranges: bytes
Package Control: Caching https://packagecontrol.io/channel_v3.json in /Users/me/Library/Application Support/Sublime Text 3/Packages/User/Package Control.cache/01524fae79697630d0454ba3fabd9414
Package Control: Urllib HTTPS Debug General
  Closing connection to packagecontrol.io on port 443 after 1 request
Traceback (most recent call last):
  File "package_control.package_installer in /Users/me/Library/Application Support/Sublime Text 3/Installed Packages/Package Control.sublime-package", line 154, in on_done
  File "package_control.package_disabler in /Users/me/Library/Application Support/Sublime Text 3/Installed Packages/Package Control.sublime-package", line 144, in disable_packages
  File "package_control.settings in /Users/me/Library/Application Support/Sublime Text 3/Installed Packages/Package Control.sublime-package", line 73, in save_list_setting
  File "package_control.settings in /Users/me/Library/Application Support/Sublime Text 3/Installed Packages/Package Control.sublime-package", line 73, in <lambda>
AttributeError: 'int' object has no attribute 'lower'
reloading settings Packages/User/Package Control.sublime-settings
reloading /Users/me/Library/Application Support/Sublime Text 3/Packages/User/Package Control.sublime-settings
0 Likes

#5

Try a clean install. This are the proceedings:

  1. Close Sublime Text.
  2. Backup your whole Sublime Text data folder. (see here where your data folder is)
  3. Delete the data folder.
  4. Open Sublime Text and Install the Package Manager.
  5. Wait it be completely installed (some times it ask you to restart 1 or several times, then just do it until finish all restarts).
  6. Close Sublime Text.
  7. (Note) The data folder you just deleted (YOUR_DATA_FOLDER), was just recreated by Sublime Text.
  8. Inside your data folder, create the folder YOUR_DATA_FOLDER/Packages/User
  9. From your data backup folder, copy the following folder contents:
    BACKUP_FOLDER/Packages/User to YOUR_DATA_FOLDER/Packages/User
  10. Open the file YOUR_DATA_FOLDER/Packages/User/Package Control.sublime-settings (not open/use Sublime Text to edit).
  11. Remove your packages from the “in_process_packages” array, and add them to the "installed_packages" array. Do not forget to add the comma after the last package on the array "installed_packages", before merging them. If the array "installed_packages" does not exist, just create one.
  12. Open Sublime Text and it should start installing all your packages.

I do this clean install all the time, but it take less steps. All my settings are saved on a git repository. You may see how it is: https://github.com/evandrocoan/SublimeTextStudio#installation

0 Likes

Sublime it's closing itself. Build 3126 (Windows)
Autocomplete suggestions do not automatically appear
[Question] popup window problem
Build 3126 did something weird with package control and packages
Ubuntu 17.04 Switching view to 2 columns with alt+shift+2 not working
Sublime Text 3 reloads old version over new saved file
ST3 crashes frequently since Build 3124
Ctags plugin load error
Sublime hangs on linux 3126
[SOLVED] Keyboard shortcut stopped working on linux in Build 3126
Sublime Text 3 reverts saved file after a few seconds
Build 3126 did something weird with package control and packages
Open Tabs missing content after upgrade to El Capitan
#6

Can you post the contents of User/Package Control.sublime-settings? It seems perhaps one of your settings was converted to an invalid data type.

0 Likes

#7

I think we can figure this out without blowing away everything. In fact, I’d prefer that because then we can make Package Control more robust.

0 Likes

#8

It seems it is in read-only mode. (thanks for helping out, btw):

{
	// A list of URLs that each contain a JSON file with a list of repositories.
	// The repositories from these channels are placed in order after the
	// repositories from the "repositories" setting
	"channels": [
		"https://packagecontrol.io/channel_v3.json"
	],

	// A list of URLs that contain a packages JSON file. These repositories
	// are placed in order before repositories from the "channels"
	// setting
	"repositories": [],

	// A list of packages to install pre-release versions for. Versions
	// under 1.0.0 are not considered pre-release, only those using the SemVer
	// -prerelease suffixes will be ignored if the package is not in this
	// list.
	"install_prereleases": [],

	// If debugging information for HTTP/HTTPS connections should be printed
	// to the Sublime Text console
	"debug": false,

	// This helps solve naming issues where a repository it not named the
	// same as the package should be. This is primarily only useful for
	// GitHub and BitBucket repositories. This mapping will override the
	// mapping that is retrieved from the repository channels.
	"package_name_map": {},

	// If package install, upgrade and removal info should be submitted to
	// the channel for aggregated statistics
	"submit_usage": true,

	// The URL to post install, upgrade and removal notices to
	"submit_url": "https://packagecontrol.io/submit",

	// If packages should be automatically upgraded when ST starts
	"auto_upgrade": true,

	// If missing packages should be automatically installed when ST starts
	"install_missing": true,

	// If a package was installed by Package Control (has a
	// package-metadata.json file) but is not in installed_packages, remove it
	// based upon the assumption that it was removed on another machine and
	// the Package Control.sublime-settings file was synced to this machine.
	"remove_orphaned": true,

	// The minimum frequency in hours in which to check for automatic upgrades,
	// setting this to 0 will always check for automatic upgrades
	"auto_upgrade_frequency": 1,

	// Packages to not auto upgrade
	"auto_upgrade_ignore": [],

	// Timeout for downloading channels, repositories and packages. Doesn't
	// have an effect on Windows due to a bug in WinINet.
	"timeout": 30,

	// The number of seconds to cache repository and package info for
	"cache_length": 300,

	// An HTTP proxy server to use for requests. Not normally used on Windows
	// since the system proxy configuration is utilized via WinINet. However,
	// if WinINet is not working properly, this will be used by the Urllib
	// downloader, which acts as a fallback.
	"http_proxy": "",
	// An HTTPS proxy server to use for requests - this will inherit from
	// http_proxy if it is set to "" or null and http_proxy has a value. You
	// can set this to false to prevent inheriting from http_proxy. Not
	// normally used on Windows since the system proxy configuration is
	// utilized via WinINet. However, if WinINet is not working properly, this
	// will be used by the Urllib downloader, which acts as a fallback.
	"https_proxy": "",

	// Username and password for both http_proxy and https_proxy. May be used
	// with WinINet to set credentials for system-level proxy config.
	"proxy_username": "",
	"proxy_password": "",

	// If HTTP responses should be cached to disk
	"http_cache": true,

	// Number of seconds to cache HTTP responses for, defaults to one week
	"http_cache_length": 604800,

	// User agent for HTTP requests. If "%s" is present, will be replaced
	// with the current version.
	"user_agent": "Package Control v%s",

	// A list of package names to ignore when performing operations. This will
	// only affect packages that appear to be a git or hg repository, but will
	// be especially useful for package developers who manually deal with the
	// repository and don't want Package Control touching it.
	//
	// It can help if trying to list packages to install hangs, possibly due
	// to an interactive prompt.
	//
	// The setting can also be set to the boolean true to ignore all git and hg
	// repositories, no matter what the name.
	"ignore_vcs_packages": [],

	// Custom path(s) to "git" binary for when it can't be automatically
	// found on the system and a package includes a .git metadata directory.
	// Supports more than one path to allow users to sync settings across
	// operating systems.
	"git_binary": [],

	// This should NOT contain the name of the remote or branch - that will
	// be automatically determined.
	"git_update_command": ["pull", "--ff", "--commit"],

	// Custom path(s) to "hg" binary for when it can't be automatically
	// found on the system and a package includes a .hg metadata directory.
	// Supports more than one path to allow users to sync settings across
	// operating systems.
	"hg_binary": [],

	// For HG repositories, be sure to use "default" as the remote URL.
	// This is the default behavior when cloning an HG repo.
	"hg_update_command": ["pull", "--update"],

	// Additional packages to ignore when listing unmanaged packages.
	"unmanaged_packages_ignore": [],

	// The downloader backends that should be used for HTTP(S) requests, split
	// by operating system to allow for configuration to be shared.
	//
	// Valid options include: "urllib", "curl", "wget", (Windows-only) "wininet"
	//
	// This setting allows Windows users to bypass wininet and use urllib
	// instead if they machine or network presents trouble to wininet. Some
	// OS X and Linux users have also reported better luck with certain proxies
	// using curl or wget instead of urllib.
	//
	// The "curl" and "wget" options require the command line "curl" or "wget"
	// program installed and present in the PATH.
	"downloader_precedence": {
		"windows": ["wininet"],
		"osx": ["urllib"],
		"linux": ["urllib", "curl", "wget"]
	},

	// Directories to ignore when creating a package
	"dirs_to_ignore": [
		".hg", ".git", ".svn", "_darcs", "CVS"
	],

	// Files to ignore when creating a package
	"files_to_ignore": [
		"*.pyc", ".hgignore", ".gitignore", ".bzrignore",
		"*.sublime-project", "*.sublime-workspace", "*.tmTheme.cache"
	],

	// Files to include, even if they match a pattern in files_to_ignore
	"files_to_include": [],

	// When a package is created, copy it to this folder - defaults to Desktop
	"package_destination": "",

	// A way to create different packaging profiles for different types of
	// package releases, such as for different platforms or binary-only
	// releases.
	//
	// The key of the object will be the profile name and a list of them will
	// be presenting when running the "Create Package File" command. The
	// profile "Default" will use the top-level version on the following
	// settings:
	//
	// - "dirs_to_ignore"
	// - "files_to_ignore"
	// - "files_to_include"
	// - "package_destination"
	//
	// If a profile does not include one of those three setting, it will fall
	// back to the top-level settings.
	"package_profiles": {
		"Binaries Only": {
			// Exclude all .py files, but consequently include all .pyc files
			"files_to_ignore": [
				"*.py", ".hgignore", ".gitignore", ".bzrignore",
				"*.sublime-project", "*.sublime-workspace", "*.tmTheme.cache"
			],

			// Include __init__.py so Sublime Text will load the package
			"files_to_include": [
				"__init__.py"
			]
		}
	},

	// Enable the ability to run the tests - this is only for development
	"enable_tests": false
}
0 Likes

#9

That looks like the default settings. I need the contents of Packages/User/Package Control.sublime-settings, which contains your user settings. That file won’t have any comments in it since it is written programatically.

0 Likes

#10
{
	"bootstrapped": true,
	"debug": true,
	"in_process_packages":
	[
		"0_package_control_loader",
		"All Autocomplete",
		"Autoprefixer",
		"Awk",
		"ColorPicker",
		"GitGutter-Edge",
		"HTML Snippets",
		"HTML5",
		"LESS",
		"Material Theme",
		"React Development Snippets",
		"React Templates",
		"ReactJS",
		"Terminal"
	],
	"installed_packages":
	[
		"Alignment",
		"Babel",
		"Expand Tabs on Save",
		"Facebook Material Theme",
		"Git",
		"GitGutter-Edge",
		"Material Color Scheme",
		"Material Theme",
		"Material Theme - White Panels",
		"Oceanic Color Scheme",
		"Oceanic Next Italic Color Scheme",
		"Package Control",
		"React ES6 Snippets",
		"Sass",
		"Theme - Dark Material"
	]
}
0 Likes

#11

Should I start thinking about a clean install?

0 Likes

#12

You are right, however the package control seens very robust. I do not recall much problems with it, and I like 5 in minutes may completely install/reinstall all my settings and package whatever I go, without any problems. But if you want to make it more robust, add a new simple feature:

Just because something is failing, why break everything else. And also, this looks the error:

File "package_control.settings in /Users/me/Library/Application Support/Sublime Text 3/Installed Packages/Package Control.sublime-package", line 73, in <lambda>
AttributeError: 'int' object has no attribute 'lower'

You did not do this already? You are too patient. I would do it on the first minutes its starts troubling. And I recommend you to apply version control over your settings, this way you may move to other computers at speed light. Also, do clean install as well. Note, there is one you would like to backup also, and I do not mentioned at my previous post, is the file, BACKUP_FOLDER/Local/Session.sublime_session, to your new clean install YOUR_DATA_FOLDER/Local/Session.sublime_session. The Session.sublime_session file contains all your current/recent projects/workspaces, and etc. You are welcome to open it, and edit as you like to clean or personalize it.

0 Likes

#13

I’ve started the clean install process following your procedure.
Now at step 5. It does seem like it finished reinstalling package control but it never asked to restart. Feels like restarting anyway. What do you think?

0 Likes

#14

Are you following the steps? Restart does not kill, and is fast to do. For my experience, when installing things any where, a restart is good.

0 Likes

#15

Does not work. Yet. One of my packages throws an error and keeps Sublime from installing all the other packages.

0 Likes

#16

Remove that package form the list. And let it install all the others. What is the console output? It seens a problem with that package. Open a issue on its github issue tracker.

0 Likes

#17

Oh now this:
Error trying to parse settings: Unexpected newline in Packages/User/Package Control.sublime-settings:19:3

0 Likes

#18

Show your Package Control.sublime-settings file contents.

0 Likes

#19

There is no newline in the file unless TextEdit adds a newline automatically after saving.

{
	"bootstrapped": true,
	"installed_packages":
	[
		"Alignment",
		"Babel",
		"Expand Tabs on Save",
		"Facebook Material Theme",
		"Git",
		"GitGutter-Edge",
		"Material Color Scheme",
		"Material Theme",
		"Material Theme - White Panels",
		"Oceanic Color Scheme",
		"Oceanic Next Italic Color Scheme",
		"Package Control",
		"React ES6 Snippets",
		"Sass",
		"Theme - Dark Material”,
		"0_package_control_loader",
		"All Autocomplete",
		"Autoprefixer",
		"Awk",
		"ColorPicker",
		"GitGutter-Edge",
		"HTML Snippets",
		"HTML5",
		"React Development Snippets",
		"React Templates",
		"ReactJS",
		"Terminal"
	]
}
0 Likes

#20

Change this to this " on the line "Theme - Dark Material”,.

1 Like