用package control安装插件失败

用package control安装插件失败

http://img1.sycdn.imooc.com/climg//589151b60001bd9f10250294.jpg


我输入install调出install package选项后并没有插件列表可供我选择安装,不知为何

正在回答 回答被采纳积分+1

登陆购买课程后可参与讨论,去登陆

2回答
提问者 xurdy 2017-02-01 20:04:30

已改为 true

5891ce9800013fa304100190.jpg


老师帮忙看看有什么问题。。。


Package Control: Fetching list of available packages

  Platform: windows-x64

  Sublime Text Version: 3126

  Package Control Version: 2.0.0

Exception in thread Thread-4:

Traceback (most recent call last):

  File "C:\Program Files\Sublime Text 3.3126x64\Data\Packages\Package Control\package_control\download_manager.py", line 45, in downloader

    manager = _grab(url, settings)

  File "C:\Program Files\Sublime Text 3.3126x64\Data\Packages\Package Control\package_control\download_manager.py", line 66, in _grab

    _managers[hostname].append(DownloadManager(settings))

  File "C:\Program Files\Sublime Text 3.3126x64\Data\Packages\Package Control\package_control\download_manager.py", line 128, in __init__

    self.settings['cache'] = HttpCache(cache_length)

  File "C:\Program Files\Sublime Text 3.3126x64\Data\Packages\Package Control\package_control\http_cache.py", line 18, in __init__

    self.clear(int(ttl))

  File "C:\Program Files\Sublime Text 3.3126x64\Data\Packages\Package Control\package_control\http_cache.py", line 38, in clear

    os.unlink(path)

PermissionError: [WinError 5] 拒绝访问。: 'C:\\Program Files\\Sublime Text 3.3126x64\\Data\\Packages\\User\\Package Control.cache\\ad7758d143e99a76034aad71ae2a1f3b'


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "./python3.3/threading.py", line 901, in _bootstrap_inner

  File "C:\Program Files\Sublime Text 3.3126x64\Data\Packages\Package Control\package_control\commands\install_package_command.py", line 43, in run

    'reinstall', 'pull', 'none'])

  File "C:\Program Files\Sublime Text 3.3126x64\Data\Packages\Package Control\package_control\package_installer.py", line 54, in make_package_list

    packages = self.manager.list_available_packages()

  File "C:\Program Files\Sublime Text 3.3126x64\Data\Packages\Package Control\package_control\package_manager.py", line 223, in list_available_packages

    repositories = self.list_repositories()

  File "C:\Program Files\Sublime Text 3.3126x64\Data\Packages\Package Control\package_control\package_manager.py", line 171, in list_repositories

    channel_repositories = provider.get_repositories()

  File "C:\Program Files\Sublime Text 3.3126x64\Data\Packages\Package Control\package_control\providers\channel_provider.py", line 164, in get_repositories

    self.fetch()

  File "C:\Program Files\Sublime Text 3.3126x64\Data\Packages\Package Control\package_control\providers\channel_provider.py", line 84, in fetch

    with downloader(self.channel, self.settings) as manager:

  File "./python3.3/contextlib.py", line 48, in __enter__

  File "C:\Program Files\Sublime Text 3.3126x64\Data\Packages\Package Control\package_control\download_manager.py", line 49, in downloader

    _release(url, manager)

UnboundLocalError: local variable 'manager' referenced before assignment


卡布琦诺 2017-02-01 17:34:17

为了更准确的定位问题,建议插件在安装前开启控制台(快捷键Ctrl+~),同时在开启debug模式,这样可以在安装过程中了解哪一步出了问题,然后有针对性的去解决问题。

一、开启Debug模式

Debug模式开启方法:将PackageControl.sublime-settings文件中的debug参数设为true,举个例子,我的文件处于安装目录的这个位置:

D:\Program Files\Sublime Text 2\Data\Packages\PackageControl\ PackageControl.sublime-settings

http://img1.sycdn.imooc.com/climg//5891ab870001e91805990408.jpg

  • 提问者 xurdy #1
    已经改为true了,然后呢。。。
    2017-02-01 19:58:32
  • 卡布琦诺 回复 提问者 xurdy #2
    保存——关闭编辑器——重启试试
    2017-02-01 20:41:18
  • 提问者 xurdy 回复 卡布琦诺 #3
    PermissionError: [WinError 5] 拒绝访问。: 'C:\\Program Files\\Sublime Text 3.3126x64\\Data\\Packages\\User\\Package Control.cache\\ad7758d143e99a76034aad71ae2a1f3b'
    2017-02-02 13:05:50
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
HTML5与CSS3实现动态网页 2018
  • 参与学习       1887    人
  • 提交作业       4643    份
  • 解答问题       5760    个

有HTML和CSS基础,却不知道如何进阶?本路径带你通过系统学习,完成从“会做网页”到“做出好的动态网页”的蜕变,迈出成为前端工程师的第一步。

了解课程
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师