从今天开始,Emacs里面可以运行任何你想要的程序 (Linux & Windows & Mac & BSD)

谢谢!辛苦了!

音乐播放器用到的Vue.js技术完全可以做一个全功能的邮件客户端和新闻阅读器。

欢迎前端高手一起折腾。 :wink:

1 个赞

EAF现在可以用Elisp, Python, C++, JavaScript四种语言协同编程,同时基于Qt和Vue.js技术无限扩展Emacs的图形绘制能力。

借助EAF框架,所有VSCode能做的事情,现在Emacs都可以做了,祝我教早日一统江湖,哈哈哈哈。:tada:

26 个赞

早上利用了 album-art 这个 npm 库,实现了封面的抓取。

5 个赞

最近不知道什么原因,eaf浏览Google News时, 加载成功后立马浏览器就崩溃了。后台信息如下:

js: A cookie associated with a cross-site resource at https://google.co.jp/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
Session is not restored, as no data present in session file.
Process *eaf* segmentation fault (core dumped)

python 包什么的都没有更新,突然间就出问题了。

如果你遇到崩溃的问题, 请用下面的方式来收集崩溃信息:

  1. 先安装gdb并打开选项 eaf-enable-debug
  2. 使用命令 eaf-stop-process 停止EAF进程
  3. 重新打开EAF, 并在下次崩溃时发送 *eaf* 的内容

一般都是系统把Qt更新导致的。

谢谢!!我debug了下,把崩溃信息贴到这,你有空了帮忙看下。

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Detaching after fork from child process 88904]
[New Thread 0x7fffe54c5640 (LWP 88905)]
[New Thread 0x7fffdf619640 (LWP 88906)]
[New Thread 0x7fffdec88640 (LWP 88907)]
[New Thread 0x7fffddde4640 (LWP 88908)]
[New Thread 0x7fffdcd26640 (LWP 88910)]
[New Thread 0x7fffc3fff640 (LWP 88911)]
[New Thread 0x7fffc9a71640 (LWP 88912)]
[New Thread 0x7fffc90e0640 (LWP 88913)]
[New Thread 0x7fffc366e640 (LWP 88914)]
[New Thread 0x7fffc2cdd640 (LWP 88915)]
[New Thread 0x7fffc234c640 (LWP 88916)]
[Detaching after fork from child process 88917]
EAF process starting...
[New Thread 0x7fffc19bb640 (LWP 88926)]
[New Thread 0x7fffc102a640 (LWP 88927)]
[New Thread 0x7fffa3fff640 (LWP 88928)]
[New Thread 0x7fffa2c69640 (LWP 88929)]
[Detaching after fork from child process 88930]
[Detaching after fork from child process 88931]
[Detaching after fork from child process 88932]
[New Thread 0x7fffa22d8640 (LWP 88935)]
[New Thread 0x7fffa1947640 (LWP 88936)]
[New Thread 0x7fffa0fb6640 (LWP 88937)]
[New Thread 0x7fff87fff640 (LWP 88938)]
[New Thread 0x7fff8766e640 (LWP 88939)]
[New Thread 0x7fff86cdd640 (LWP 88940)]
[New Thread 0x7fff859bb640 (LWP 88942)]
[New Thread 0x7fff8502a640 (LWP 88943)]
[New Thread 0x7fff8634c640 (LWP 88941)]
[New Thread 0x7fff6bfff640 (LWP 88944)]
[New Thread 0x7fff6b66e640 (LWP 88945)]
[New Thread 0x7fff6acdd640 (LWP 88946)]
[New Thread 0x7fff6a34c640 (LWP 88947)]
[New Thread 0x7fff699bb640 (LWP 88948)]
[Thread 0x7fffa3fff640 (LWP 88928) exited]
[New Thread 0x7fffa3fff640 (LWP 88949)]
[Thread 0x7fffc102a640 (LWP 88927) exited]
[Thread 0x7fffa3fff640 (LWP 88949) exited]
[New Thread 0x7fffa3fff640 (LWP 88950)]
[Detaching after fork from child process 88951]
[New Thread 0x7fffc102a640 (LWP 88952)]
[New Thread 0x7fff6902a640 (LWP 88969)]
Session is not restored, as no data present in session file.
[New Thread 0x7fff50bff640 (LWP 88971)]
[New Thread 0x7fff44ff7640 (LWP 88972)]
[Thread 0x7fff44ff7640 (LWP 88972) exited]
[New Thread 0x7fff44ff7640 (LWP 88973)]
[Thread 0x7fff44ff7640 (LWP 88973) exited]
[New Thread 0x7fff44ff7640 (LWP 88979)]
[Thread 0x7fff44ff7640 (LWP 88979) exited]
[New Thread 0x7fff44ff7640 (LWP 88980)]
[Thread 0x7fff44ff7640 (LWP 88980) exited]
[New Thread 0x7fff44ff7640 (LWP 88981)]
[New Thread 0x7fff3d867640 (LWP 88982)]
[Thread 0x7fff3d867640 (LWP 88982) exited]
[Thread 0x7fff44ff7640 (LWP 88981) exited]
[88900:88940:0513/095959.736490:ERROR:simple_index_file_posix.cc(61)] Could not get file info for /home/leizhe/.local/share/eaf.py/QtWebEngine/Default/Service Worker/ScriptCache/7dc5d772685a7cd2_0
[88900:88940:0513/095959.737241:ERROR:simple_index_file_posix.cc(61)] Could not get file info for /home/leizhe/.local/share/eaf.py/QtWebEngine/Default/Service Worker/ScriptCache/a77dc2e83255e393_1
[88900:88940:0513/095959.737332:ERROR:simple_index_file_posix.cc(61)] Could not get file info for /home/leizhe/.local/share/eaf.py/QtWebEngine/Default/Service Worker/ScriptCache/a77dc2e83255e393_0
[New Thread 0x7fff44ff7640 (LWP 89018)]

Thread 23 "ThreadPoolForeg" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff859bb640 (LWP 88942)]
0x00007fffeea2ab97 in ?? () from /usr/local/lib/python3.8/dist-packages/PyQt5/Qt/lib/libQt5WebEngineCore.so.5
#0  0x00007fffeea2ab97 in  () at /usr/local/lib/python3.8/dist-packages/PyQt5/Qt/lib/libQt5WebEngineCore.so.5
#1  0x00007fff859ba6d0 in  ()
#2  0x00007fff6c009cf0 in  ()
#3  0x00007fff859ba670 in  ()
#4  0x00007fffeea1c49f in  () at /usr/local/lib/python3.8/dist-packages/PyQt5/Qt/lib/libQt5WebEngineCore.so.5
#5  0x00007fffeea204a0 in  () at /usr/local/lib/python3.8/dist-packages/PyQt5/Qt/lib/libQt5WebEngineCore.so.5
#6  0x00007fff859ba630 in  ()
#7  0x0000000000000000 in  ()
[88951:88966:0513/100001.069688:ERROR:broker_posix.cc(40)] Recvmsg error: Connection reset by peer (104)
[88951:88966:0513/100001.072200:ERROR:broker_posix.cc(110)] Error sending sync broker message: Broken pipe (32)
[88951:88966:0513/100001.073255:ERROR:broker_posix.cc(110)] Error sending sync broker message: Broken pipe (32)

Process *eaf* finished

你的操作系统是什么?你的pyqt是从哪个渠道安装的?

Ubuntu, 之前通过eaf安装的,系统更新时也没注意有没有更新pyqt。 你提醒了我,我重新安装下再试试。

PyQt5                  5.15.2
PyQt5-sip              12.8.1
PyQtWebEngine          5.15.2
1 个赞

不用通过pip安装,pip的pyqt有bug。

如果是系统apt安装的,可以尝试安装老版本的pyqt试一下。

嗯。刚好解决了这个问题。我的系统里保留了两份pyqt。

一份是通过eaf安装的,ubuntu系统的。另一份是通过pip安装的,但是我不记得我什么时候安装的。

卸载掉pip的版本,问题就解决了。

谢谢,用着太舒服了。

有什么方法将整个文件夹下的歌曲都添加进播放列表么,在文件夹上执行 eaf-open-music-player不起作用

你直接输入目录就可以了啊,会自动扫描目录下所有音乐文件。

输入目录之后,eaf-music-player页面是空的

这个是debug的输出

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffe2557640 (LWP 202760)]
[New Thread 0x7fffdbfff640 (LWP 202772)]
[New Thread 0x7fffd9e09640 (LWP 202808)]
[New Thread 0x7fffd9478640 (LWP 202809)]
[New Thread 0x7fffd8ae7640 (LWP 202810)]
[New Thread 0x7fffce5a0640 (LWP 202811)]
_IceTransSocketUNIXConnect: Cannot connect to non-local host manjaro
_IceTransSocketUNIXConnect: Cannot connect to non-local host manjaro
Qt: Session management error: Could not open network socket
[New Thread 0x7fffcdc0f640 (LWP 202812)]
[New Thread 0x7fffcd27e640 (LWP 202813)]
[New Thread 0x7fffb7fff640 (LWP 202814)]
[Detaching after fork from child process 202815]
EAF process starting...
[New Thread 0x7fffb6c5e640 (LWP 202823)]
[New Thread 0x7fffb62cd640 (LWP 202824)]
[New Thread 0x7fffb593c640 (LWP 202825)]
[Thread 0x7fffb593c640 (LWP 202825) exited]
[New Thread 0x7fffb593c640 (LWP 202826)]
[Thread 0x7fffb62cd640 (LWP 202824) exited]
[Thread 0x7fffb593c640 (LWP 202826) exited]
[New Thread 0x7fffb593c640 (LWP 202827)]
[Detaching after fork from child process 202828]
[Detaching after fork from child process 202829]
[Detaching after fork from child process 202830]
[New Thread 0x7fffb62cd640 (LWP 202834)]
[New Thread 0x7fffb4fab640 (LWP 202835)]
[New Thread 0x7fffa3fff640 (LWP 202836)]
[New Thread 0x7fffa366e640 (LWP 202837)]
[New Thread 0x7fffa2cdd640 (LWP 202839)]
[New Thread 0x7fffa234c640 (LWP 202840)]
[New Thread 0x7fffa19bb640 (LWP 202841)]
[New Thread 0x7fffa102a640 (LWP 202842)]
[New Thread 0x7fff87fff640 (LWP 202843)]
[New Thread 0x7fff8766e640 (LWP 202844)]
[New Thread 0x7fff86cdd640 (LWP 202845)]
[New Thread 0x7fff8634c640 (LWP 202846)]
[New Thread 0x7fff859bb640 (LWP 202857)]
[New Thread 0x7fff8502a640 (LWP 202858)]
[Thread 0x7fff8502a640 (LWP 202858) exited]
[New Thread 0x7fff8502a640 (LWP 202859)]
[Detaching after fork from child process 202860]
[New Thread 0x7fff67fff640 (LWP 202861)]
Session is not restored, as no data present in session file.
[New Thread 0x7fff6526e640 (LWP 202879)]
[New Thread 0x7fff5ab01640 (LWP 202884)]
js: TypeError: Cannot read property 'path' of undefined
[New Thread 0x7fff65c6e640 (LWP 203013)]
[Thread 0x7fff65c6e640 (LWP 203013) exited]
[New Thread 0x7fff65c6e640 (LWP 203019)]
[Thread 0x7fff65c6e640 (LWP 203019) exited]
[New Thread 0x7fff65c6e640 (LWP 203130)]
[Thread 0x7fff65c6e640 (LWP 203130) exited]
[Thread 0x7fffa3fff640 (LWP 202836) exited]
[Thread 0x7fffa234c640 (LWP 202840) exited]

想办法把你的目录和文件给我下?

我上传到 google drive了,你试试

https://drive.google.com/file/d/1kAxDJAn7j8W1o7EFRNJMLjQwqfnmDpE3/view?usp=sharing

更新最新版再试一下

打开李志《i/O》[320K]这个目录,eaf-music-player还是空白的,但是如果把目录名改为李志iO 就没问题了,似乎不太能处理目录的特殊字符?

另外可以增加对flac格式(无损音频)的支持么,目前flac格式的歌曲不能导入

glob 这个库的问题,我用 os 替代 glob 重写了递归找文件的函数了。