我已经阅读了许多关于此插件的文章,但仍然找不到我的问题的答案。我已经使用Package Installer安装了插件,并将设置文件修改为:
{
"enabled_plugins": [
"SimpleReloadPlugin",
"SimpleRefresh"
]
}
我已经检查了命令面板,并启用了“简单重新加载”。我已经安装了浏览器插件(Firefox)并启用了它。保存php文件时,浏览器会重新加载,但是保存CSS文件时不会刷新。 每种情况下的控制台消息如下: 保存PHP:
{"command": "reload", "apply_images_live": null, "apply_js_live": null, "apply_css_live": null, "path": "event_reports_view.php"}
INFO:WebSocketClient:Remove from clients table <LiveReload.server.WebSocketClient.WebSocketClient object at 0x0000025D5A6800F0>
ERROR:WebSocketClient:WebSocket error
Traceback (most recent call last):
File "C:\Users\Mike\AppData\Roaming\Sublime Text 3\Packages\LiveReload\server\WebSocketClient.py", line 84, in __init__
data = self.socket.recv(1024)
OSError: [WinError 10038] An operation was attempted on something that is not a socket
INFO:WebSocketClient:Remove from clients table <LiveReload.server.WebSocketClient.WebSocketClient object at 0x0000025D5A6800F0>
INFO:WebSocketClient:new client ('127.0.0.1', 60296)
{"command": "reload", "apply_images_live": null, "apply_js_live": null, "apply_css_live": null, "path": "event_reports_view.php"}
INFO:WebSocketClient:new client ('127.0.0.1', 60304)
INFO:WebSocketClient:new client ('127.0.0.1', 60305)
INFO:WebSocketClient:new client ('127.0.0.1', 60306)
INFO:WebSocketClient:Add to clients table <LiveReload.server.WebSocketClient.WebSocketClient object at 0x0000025D595CF780>
INFO:WebSocketClient:{'fin': 1, 'mask': b'I\xfa\xd1\xf8', 'left': 0, 'close_code': None, 'payload': b'{"command":"hello","protocols":["http://livereload.com/protocols/official-6","http://livereload.com/protocols/official-7"],"ver":"2.0.8","ext":"Firefox","extver":"2.1.1"}', 'opcode': 1, 'hlen': 4, 'length': 170, 'close_reason': None}
INFO:WebSocketClient:Command: hello
INFO:WebSocketClient:{'fin': 1, 'mask': b'\xe0\x87(<', 'left': 0, 'close_code': None, 'payload': b'{"command":"info","plugins":{"less":{"disable":false,"version":"1.0"}},"url":"http://localhost/PHS-2018/event_reports"}', 'opcode': 1, 'hlen': 2, 'length': 119, 'close_reason': None}
INFO:WebSocketClient:Command: info
b'{"command":"info","plugins":{"less":{"disable":false,"version":"1.0"}},"url":"http://localhost/PHS-2018/event_reports"}'
保存CSS:
{"command": "reload", "apply_images_live": null, "apply_js_live": null, "apply_css_live": null, "path": "default.css"}
INFO:WebSocketClient:new client ('127.0.0.1', 60311)
{"command": "reload", "apply_images_live": null, "apply_js_live": null, "apply_css_live": null, "path": "default.css"}
INFO:WebSocketClient:new client ('127.0.0.1', 60313)
我在Windows 10上并使用Codeigniter 3框架(如果有的话)。尽管在保存PHP文件时重新加载页面成功,但是控制台显示了错误的证据,但我不知道如何解释它。
我没有安装Markdown Preview插件,并且没有使用LESS或SASS。
有人能建议出什么问题吗?