[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to autoload easy-menu?
From: |
Eshel Yaron |
Subject: |
Re: How to autoload easy-menu? |
Date: |
Sat, 14 Oct 2023 12:33:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Joseph Turner <joseph@breatheoutbreathe.in> writes:
> Thank you for testing out hyperdrive.el!!! Now, the "Tools > Hyperdrive"
> menu is added only after the user calls `hyperdrive-menu-bar-mode':
>
> https://git.sr.ht/~ushin/hyperdrive.el/commit/0869edbd
>
Nice :)
FYI when trying this on macOS I had some issues with the `hyper-gateway`
program, it basically fails and quits after most hyperdrive.el commands.
For example, when I call `hyperdrive-hyper-gateway-version` it prints:
--8<---------------cut here---------------start------------->8---
Request: {
method: 'GET',
url: '/',
headers: {
host: 'localhost:4973',
'user-agent': 'curl/8.1.2',
accept: '*/*',
'accept-encoding': 'deflate, gzip'
}
}
Requested: {
method: 'GET',
url: 'hyper://',
status: 500,
responseHeaders: { 'content-type': 'text/plain; charset=utf-8' }
}
Error [ERR_HTTP_HEADERS_SENT]: Cannot write headers after they are sent to the
client
at new NodeError (node:internal/errors:406:5)
at ServerResponse.writeHead (node:_http_server:345:11)
at Server.<anonymous>
(file:///usr/local/lib/node_modules/hyper-gateway/src/index.js:131:11)
at process.processTicksAndRejections
(node:internal/process/task_queues:95:5) {
code: 'ERR_HTTP_HEADERS_SENT'
}
node:internal/errors:497
ErrorCaptureStackTrace(err);
^
Error [ERR_HTTP_HEADERS_SENT]: Cannot write headers after they are sent to the
client
at new NodeError (node:internal/errors:406:5)
at ServerResponse.writeHead (node:_http_server:345:11)
at Server.<anonymous>
(file:///usr/local/lib/node_modules/hyper-gateway/src/index.js:139:11)
at process.processTicksAndRejections
(node:internal/process/task_queues:95:5) {
code: 'ERR_HTTP_HEADERS_SENT'
}
--8<---------------cut here---------------end--------------->8---
> We may consider adding a defcustom to make `hyperdrive-menu-bar-mode'
> add "Hyperdrive" menu to the global map instead of a submenu. WDYT?
I don't really have a strong opinion about this one.
Cheers,
Eshel