Eu recentemente instalei o Sublime Text build 3114 e comecei a explorar sua funcionalidade. Aqui descobri que é possível instalar < href="https://github.com/jdc0589/CaseConversion"> Plugin de Conversão de Caso . A página mencionada mostra duas possibilidades de instalação:
- usando o plug-in de controle de pacotes
- instalação manual
A primeira abordagem não funcionou para mim (veja os logs abaixo), então usei a segunda abordagem. Meu texto sublime está localizado no diretório C:\Users\wakatana\Downloads\Sublime Text 3
. O site do Plugin de conversão de caso afirma que este plug-in deve ser instalado sempre que a opção Preferences -> Browse Packages
no Sublime o levar. O meu aponta para C:\Users\wakatana\Downloads\Sublime Text 3\Data\Packages
, então eu clonei repo em C:\Users\wakatana\Downloads\Sublime Text 3\Data\Packages\User\CaseConversion-master
.
Estou tentando alterar o caso no seguinte arquivo (exemplo tirado de aqui )
this_is_something
this_is_something
this_is_something
Cliquei na primeira ocorrência de this_is_something
e pressione ctrl+d
, depois naveguei para Edit -> Convert Case
, mas como você pode ver na figura a seguir, há casos não ativos:
AquiestáologdoconsoleimediatamenteapósoiníciodoSublimeText:
DPIscale:1startup,version:3114windowsx32channel:stableexecutable:/C/Users/wakatana/Downloads/SublimeText3/sublime_text.exeworkingdir:/c/Users/wakatana/Downloads/SublimeText3packagespath:/C/Users/wakatana/Downloads/SublimeText3/Data/Packagesstatepath:/C/Users/wakatana/Downloads/SublimeText3/Data/Localzippath:/C/Users/wakatana/Downloads/SublimeText3/Packageszippath:/C/Users/wakatana/Downloads/SublimeText3/Data/InstalledPackagesignored_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
Aqui está o log depois que eu digito pci
( Package Control: Install Package
) em 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.cache524fae79697630d0454ba3fabd9414
Package Control: WinINet HTTPS Debug General
Closing connection to packagecontrol.io on port 443 after 1 request
E aqui está o log depois que eu escolho Case Conversion
de 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'
Anteriormente, instalei Package Control.sublime-package
em C:\Users\wakatana\Downloads\Sublime Text 3\Packages
oposto a C:\Users\wakatana\Downloads\Sublime Text 3\Data\Packages
para o plug-in de conversão de caso .
Eu também mudei o proxy para o seguinte (usando o este tutorial):
{
"debug" : true,
"timeout" : 120,
"http_proxy": "http://XXX:8080/",
"https_proxy": "http://XXX:8080/",
}
Qual é a diferença entre o diretório Data\Packages
e Packages
sob o Sublime Text?
Por que não consigo instalar o plug-in de conversão de caso usando Plugin de controle de pacotes ?
Por que o plug-in de conversão de casos não está funcionando?
Por que recebo erros no console?
PS: Eu já postei isso para os fóruns oficiais da ST .