[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to autoload easy-menu?
From: |
Joseph Turner |
Subject: |
Re: How to autoload easy-menu? |
Date: |
Sat, 14 Oct 2023 18:35:05 -0700 |
Eshel Yaron <me@eshelyaron.com> writes:
> 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---
Thank you for the report!! We can track it here:
https://github.com/RangerMauve/hyper-gateway/issues/20
>> 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.
Okay :)
Joseph