Sublime Forum

ST3 and ConvertCase package beginner installation problems

#1

I’ve freshly installed Sublime Text build 3114 and started to explore it’s functionality. I’ve found that it is possible to install Case Conversion plugin. Case Conversion github page shows two possibilities of installation:

  1. using Package Control plugin
  2. manual installation

1st approach did not worked for me (see logs bellow) so I’ve used 2nd approach. My sublime text is located in C:\Users\wakatana\Downloads\Sublime Text 3 directory. Case Conversion plugin site claims that this plugin should be installed where ever the Preferences -> Browse Packages option in Sublime takes you. Mine points to C:\Users\wakatana\Downloads\Sublime Text 3\Data\Packages so I’ve cloned repo in C:\Users\wakatana\Downloads\Sublime Text 3\Data\Packages\User\CaseConversion-master.

I’m trying to change case in following file

this_is_something
this_is_something
this_is_something

I’ve clicked on first occurrence of this_is_something and press ctrl+d then I’ve navigated to Edit -> Convert Case but as you can see on following picture there are non active cases:

this picture

Here is log from console immediately after Sublime Text start:

DPI scale: 1
startup, version: 3114 windows x32 channel: stable
executable: /C/Users/wakatana/Downloads/Sublime Text 3/sublime_text.exe
working dir: /c/Users/wakatana/Downloads/Sublime Text 3
packages path: /C/Users/wakatana/Downloads/Sublime Text 3/Data/Packages
state path: /C/Users/wakatana/Downloads/Sublime Text 3/Data/Local
zip path: /C/Users/wakatana/Downloads/Sublime Text 3/Packages
zip path: /C/Users/wakatana/Downloads/Sublime Text 3/Data/Installed Packages
ignored_packages: ["Vintage"]
pre session restore time: 1.86239
startup time: 7.79439
first paint time: 7.79439
first paint time: 7.79539
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.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_file_settings
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.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 Package Control.1_reloader
reloading plugin Package Control.2_bootstrap
reloading plugin Package Control.Package Control
plugins loaded
Traceback (most recent call last):
  File "C:\Users\wakatana\Downloads\Sublime Text 3\sublime_plugin.py", line 162, in on_api_ready
    m.plugin_loaded()
  File "2_bootstrap in C:\Users\wakatana\Downloads\Sublime Text 3\Packages\Package Control.sublime-package", line 103, in plugin_loaded
  File "package_control.loader in C:\Users\wakatana\Downloads\Sublime Text 3\Packages\Package Control.sublime-package", line 193, in add
  File "./python3.3/zipfile.py", line 921, in __init__
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\wakatana\\Downloads\\Sublime Text 3\\Installed Packages\\0_package_control_loader.sublime-package'
Package Control: Not running package cleanup since bootstrapping is not yet complete

Here is log after I type pci (Package Control: Install Package) in to Command palette... (ctrl+shift+p):

Package Control: Fetching list of available packages
  Platform: windows-x32
  Sublime Text Version: 3114
  Package Control Version: 3.1.2
Package Control: Download Debug
  URL: https://packagecontrol.io/channel_v3.json
  Timeout: 120
  Resolved IP: 50.116.33.29
Package Control: WinINet Debug Proxy
  proxy: XXX:3128
  proxy bypass: XXX:3128 <local>
  proxy username: 
  proxy password: 
Package Control: WinINet HTTPS Debug General
  Server SSL Certificate:
    subject: US, Massachusetts, Private Organization, 471714639, US, Massachusetts, Newbury, Codex Non Sufficit LC, codexns.io
    issuer: US, GeoTrust Inc., GeoTrust EV SSL CA - G4
    common name: codexns.io
    issue date: Mon, 28 Mar 2016 02:00:00 GMT
    expire date: Mon, 28 Nov 2016 00:59:59 GMT
Package Control: WinINet HTTPS Debug Write
  GET /channel_v3.json HTTP/1.1
  User-Agent: Package Control v3.1.2
  Host: packagecontrol.io
  Connection: Keep-Alive
  Cache-Control: no-cache
  Accept-Encoding: bzip2,gzip,deflate
  If-None-Match: "5745ad91-3f11b"
  If-Modified-Since: Wed, 25 May 2016 13:50:09 GMT
Package Control: WinINet HTTPS Debug Read
  HTTP/1.1 200 OK
  Server: nginx
  Date: Wed, 25 May 2016 14:55:26 GMT
  Content-Type: application/json
  Content-Length: 259521
  Last-Modified: Wed, 25 May 2016 14:50:09 GMT
  Connection: keep-alive
  ETag: "5745bba1-3f5c1"
  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 C:\Users\wakatana\Downloads\Sublime Text 3\Data\Packages\User\Package Control.cache\01524fae79697630d0454ba3fabd9414
Package Control: WinINet HTTPS Debug General
  Closing connection to packagecontrol.io on port 443 after 1 request

And here is log after I choose Case Conversion from Package Control: Install Package:

Traceback (most recent call last):
  File "package_control.package_installer in C:\Users\wakatana\Downloads\Sublime Text 3\Packages\Package Control.sublime-package", line 159, in on_done
  File "package_control.package_disabler in C:\Users\wakatana\Downloads\Sublime Text 3\Packages\Package Control.sublime-package", line 74, in disable_packages
ImportError: No module named 'package_control'

Previously I’ve installed Package Control.sublime-package in C:\Users\wakatana\Downloads\Sublime Text 3\Packages opposite to C:\Users\wakatana\Downloads\Sublime Text 3\Data\Packages for Case Conversion plugin.

I’ve also changed proxy to following:

{
    "debug" : true,
    "timeout" : 120,
    "http_proxy": "http://XXX:8080/",
    "https_proxy": "http://XXX:8080/",
}

What is difference between Data\Packages and Packages directory under Sublime Text?

Why I’m not able to install Case Conversion plugin using Package Control plugin?

Why Case Conversion plugin isn’t working?

Why I get errors in console?

PS: I’ve cross posted this also here

0 Likes

#2

Seems that I screwed up installation of PackageControl plugin. Previously I’ve put Package Control.sublime-package inside .\Packages directory but proper location for is under .\Data\Installed Packages directory. After this I get no more errors, Edit -> Convert does not contain inactive cases and I’m able to install further packages via PackageControl plugin. Here are further observations that I’ve noticed:

  1. Changing setting (proxy in my case) for PackageControl from Preferences -> Package Settings -> Package Control -> Settings - User menu writes following lines to .\Data\Packages\User\Package Control.sublime-settings:

    {
    “bootstrapped”: true,
    “debug” : true,
    “timeout” : 120,
    “http_proxy”: “http://tsl3isa.t-systems.co.uk:8080/”,
    “https_proxy”: “http://tsl3isa.t-systems.co.uk:8080/”,
    }

  2. After CaseConversion installation via PackageControl following file was created: .\Data\Installed Packages\Case Conversion.sublime-package. This file has bascially same content as cloned repo from github except the Case Conversion.sublime-package contains also package-metadata.json with following content (I guess this is some metadata for PackageControl):

{"version": "2015.10.02.21.19.52", "platforms": ["*"], "url": "https://github.com/jdc0589/CaseConversion", "sublime_text": "*", "dependencies": [], "description": "Case conversion plugin (pascal, camel, snake) for sublime text 2"}

This leads me to another question: When I want to install something manually from github should I create *.sublime-package package from it and then istall it?

0 Likes

#3

It is unnecessary usually to install packages manually from GitHub. You can do it from Package Control, once you get it working.
Simply copy the full URL of the GitHub page of the package (Including the https:// part).
Go to Package Control -> Add Repository. Paste the URL you previously copied into the panel at the bottom.
Press ENTER.
Then Package Control -> Install Package. The Package you want should show up in the list, and you can install it.
I can’t answer your other question, since I never install manually.

0 Likes