sublime text3插件v8中的按键被禁用怎么开启?

发布于 2022-09-02 14:08:49 字数 5639 浏览 20 评论 0

步骤:
1.先到https://packagecontrol.io/packages/Sublime%20V8
下载包
2.把包解压缩放到:安装盘符:\SublimeText\Data\Packages路径下
3.重启sublime
4.ctrl+`打开控制台看加载情况

5.日志信息显示如下

sublime的控制台提示日志如下:

reloading plugin sublime-v8-master.BeautifulSoup
Traceback (most recent call last):
  File "F:\SublimeText\sublime_plugin.py", line 74, in reload_plugin
    m = importlib.import_module(modulename)
  File "./importlib/__init__.py", line 90, in import_module
  File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 584, in _check_name_wrapper
  File "<frozen importlib._bootstrap>", line 1022, in load_module
  File "<frozen importlib._bootstrap>", line 1003, in load_module
  File "<frozen importlib._bootstrap>", line 560, in module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 853, in _load_module
  File "<frozen importlib._bootstrap>", line 980, in get_code
  File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
  File "F:\SublimeText\Data\Packages\sublime-v8-master\BeautifulSoup.py", line 448
    raise AttributeError, "'%s' object has no attribute '%s'" % (self.__class__.__name__, attr)
                        ^
SyntaxError: invalid syntax
reloading plugin sublime-v8-master.core
Traceback (most recent call last):
  File "F:\SublimeText\sublime_plugin.py", line 74, in reload_plugin
    m = importlib.import_module(modulename)
  File "./importlib/__init__.py", line 90, in import_module
  File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 584, in _check_name_wrapper
  File "<frozen importlib._bootstrap>", line 1022, in load_module
  File "<frozen importlib._bootstrap>", line 1003, in load_module
  File "<frozen importlib._bootstrap>", line 560, in module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 853, in _load_module
  File "<frozen importlib._bootstrap>", line 980, in get_code
  File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
  File "F:\SublimeText\Data\Packages\sublime-v8-master\core.py", line 13
    raise Exception, '''
                   ^
SyntaxError: invalid syntax
reloading plugin sublime-v8-master.dom
Traceback (most recent call last):
  File "F:\SublimeText\sublime_plugin.py", line 74, in reload_plugin
    m = importlib.import_module(modulename)
  File "./importlib/__init__.py", line 90, in import_module
  File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 584, in _check_name_wrapper
  File "<frozen importlib._bootstrap>", line 1022, in load_module
  File "<frozen importlib._bootstrap>", line 1003, in load_module
  File "<frozen importlib._bootstrap>", line 560, in module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 868, in _load_module
  File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
  File "F:\SublimeText\Data\Packages\sublime-v8-master\dom.py", line 1, in <module>
    from BeautifulSoup import BeautifulSoup, Tag, NavigableString, Comment
ImportError: No module named 'BeautifulSoup'
reloading plugin sublime-v8-master.jshint
Traceback (most recent call last):
  File "F:\SublimeText\sublime_plugin.py", line 74, in reload_plugin
    m = importlib.import_module(modulename)
  File "./importlib/__init__.py", line 90, in import_module
  File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 584, in _check_name_wrapper
  File "<frozen importlib._bootstrap>", line 1022, in load_module
  File "<frozen importlib._bootstrap>", line 1003, in load_module
  File "<frozen importlib._bootstrap>", line 560, in module_for_loader_wrapper
  File "<frozen importlib._bootstrap>", line 853, in _load_module
  File "<frozen importlib._bootstrap>", line 980, in get_code
  File "<frozen importlib._bootstrap>", line 313, in _call_with_frames_removed
  File "F:\SublimeText\Data\Packages\sublime-v8-master\jshint.py", line 97
    except Exception,ex:
                    ^
SyntaxError: invalid syntax
reloading plugin SublimeLinter.commands
reloading plugin SublimeLinter.sublimelinter
reloading plugin syncViewScroll.syncscroll
reloading plugin Terminal.Terminal
reloading plugin User.open_in_browser_alt
plugins loaded
SublimeLinter: debug mode: off 
SublimeLinter: WARNING: jshint deactivated, cannot locate 'jshint' 
CodeFormatter: Plugin Initialized
syncScroll starting
Emmet: No need to update PyV8  


clipboard.png

Run jshint和show console 这两个键都是被禁掉的,请问错在哪了?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谁人与我共长歌 2022-09-09 14:08:50

你用的是Sublime Text 3吧,那个插件只支持 Sublime Text 2。
另外,我多说一句,Sublime安装插件不要手动安装,请用 Package Control!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文