报giithub issue吧
挂代理,。。。
挂了代理仍然报同样的错
你把node modules目录删了,重新跑一遍安装脚本
好了诶,但是为啥会出现这种情况呀
应该是npm依赖的问题
这个补丁主要对音乐播放器增加播放顺序控制的功能,按 t 快捷键在顺序、随机、单曲循环之间切换。
也可以通过 (eaf-setq eaf-music-play-order "random")
的方式设置默认的播放顺序。
以前总是顺序播放的方式,每次播放的歌都差不多,听久就听腻了。
今天增加了 translate_page 这个命令,在EAF浏览器中按 ; 这个按键可以自动调用Google服务翻译整个网页。
默认是当前系统语言,可以用代码 (setq eaf-browser-translate-language "es")
来自定义需要的翻译的语言。
各语言对应的转换编码可以在 这里查到。
我在fedora下用,装完eaf之后启动也很慢,你的问题有解决吗?
启动比较慢看下是不是 eaf.el 中这一段的原因:
(defun add-subdirs-to-load-path (dir)
"Recursive add directory DIR to `load-path'."
(mapcar
(lambda (path) (add-to-list 'load-path path))
(delete-dups (mapcar 'file-name-directory (directory-files-recursively dir "\.el$")))))
(add-subdirs-to-load-path (expand-file-name "app" (file-name-directory (locate-library "eaf"))))
这个会递归遍历 app 下的所有目录下的文件,npm install 后 node_modules 里面会有很多文件,可能会导致这段代码比较慢。
最新版EAF的eaf-var-list
总算可以接受ELisp内置的boolean/number/list type了
大家快把自己的EAF配置里面所有"true"/"false"
改成t/nil
吧!
(eaf-setq eaf-browser-enable-javascript t)
(eaf-setq eaf-browser-enable-plugin nil)
(eaf-setq eaf-browser-default-zoom 1.25)
eaf 怎么更新比较安全?git pull?
对,git pull
就可以了
eaf在关掉浏览器buffer的时候会报错:
EAF process starting...
Session is not restored, as no data present in session file.
Traceback (most recent call last):
File "/home/eli/.emacs.d/private/emacs-application-framework/core/utils.py", line 60, in on_signal_received
self._func(obj, *args, **kwargs)
File "/home/eli/.emacs.d/private/emacs-application-framework/eaf.py", line 351, in execute_function
if buffer_id in self.buffer_dict:
TypeError: unhashable type: 'list'
Process *eaf* aborted (core dumped)
在emacs -Q 下用README里的use-package配置重现,github上也有类似issue。
For anyone who could reproduce this error, could you please add print(buffer_id)
before line 351 if buffer_id in self.buffer_dict:
to see what it gives?
这个问题我也遇到了。不过现在在外面没条件复现。抱歉。
我这边完全无法复现,所以需要你们帮忙debug看看。
EAF process starting...
Session is not restored, as no data present in session file.
js: Deprecation notice: Use specific `@ember/*` imports instead of `ember` (deprecated since Discourse 2.4.0) (removal in Discourse 2.5.0)
cb0e-e130-0b0d-7ec6-1fa2-883f-2726
cb0e-e130-0b0d-7ec6-1fa2-883f-2726
[]
Traceback (most recent call last):
File "/home/eli/.emacs.d/private/emacs-application-framework/core/utils.py", line 60, in on_signal_received
self._func(obj, *args, **kwargs)
File "/home/eli/.emacs.d/private/emacs-application-framework/eaf.py", line 352, in execute_function
if buffer_id in self.buffer_dict:
TypeError: unhashable type: 'list'
Process *eaf* aborted (core dumped)
这是加了后的
也print
一下function_name
看看
EAF process starting...
Session is not restored, as no data present in session file.
js: Deprecation notice: Use specific `@ember/*` imports instead of `ember` (deprecated since Discourse 2.4.0) (removal in Discourse 2.5.0)
9efd-f28c-1b93-b838-052a-dc50-f58e
move_cursor_to_corner
9efd-f28c-1b93-b838-052a-dc50-f58e
move_cursor_to_corner
9efd-f28c-1b93-b838-052a-dc50-f58e
move_cursor_to_corner
9efd-f28c-1b93-b838-052a-dc50-f58e
insert_or_close_buffer
[]
move_cursor_to_corner
Traceback (most recent call last):
File "/home/eli/.emacs.d/private/emacs-application-framework/core/utils.py", line 60, in on_signal_received
self._func(obj, *args, **kwargs)
File "/home/eli/.emacs.d/private/emacs-application-framework/eaf.py", line 353, in execute_function
if buffer_id in self.buffer_dict:
TypeError: unhashable type: 'list'
Process *eaf* aborted (core dumped)