GNU bug report logs - #75295
emacs-math-preview: add math-preview dependency?

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Christopher Howard <christopher@HIDDEN>; dated Thu, 2 Jan 2025 18:20:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 75295 <at> debbugs.gnu.org:


Received: (at 75295) by debbugs.gnu.org; 3 Jan 2025 18:19:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 03 13:19:03 2025
Received: from localhost ([127.0.0.1]:52000 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tTmGE-0007NG-Vd
	for submit <at> debbugs.gnu.org; Fri, 03 Jan 2025 13:19:03 -0500
Received: from mx.kolabnow.com ([212.103.80.154]:40746)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <christopher@HIDDEN>)
 id 1tTmGB-0007MF-N7
 for 75295 <at> debbugs.gnu.org; Fri, 03 Jan 2025 13:19:01 -0500
Received: from localhost (unknown [127.0.0.1])
 by mx.kolabnow.com (Postfix) with ESMTP id 6DD4D209F9E1
 for <75295 <at> debbugs.gnu.org>; Fri,  3 Jan 2025 19:18:53 +0100 (CET)
Authentication-Results: ext-mx-out011.mykolab.com (amavis);
 dkim=pass (2048-bit key) reason="pass (just generated, assumed good)"
 header.d=kolabnow.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h=
 content-type:content-type:mime-version:message-id:date:date
 :references:in-reply-to:subject:subject:from:from:received
 :received:received; s=dkim20240523; t=1735928332; x=1737742733;
 bh=e5BFU63HcBMZEvBg5TZsAcA9hhfQqxlU7Ky0i6TyG0s=; b=h51oXea6DNcP
 YdrY9tMzyKXsY7mEU3CAuv6uOXbWhq/ntax0n7qXXf1ohqHrrSflI7iyP3WXiVzD
 9dzPaJ+HK/bj2oZeAWomUMrPiXEi7199LRV0PPupP5EpNib2roGL/XAZ+G6C/Iex
 tkmquxeMImLUT7KOLFbr49knKeAkanUKgj54Jq8hUHpfd99pilECRX9EP1MgQtDj
 oCIfR9UFgEy5FOQvuOCVB29a/65fTDZy1/TwqI+FlRGUJFbpjja+xHtBWItpAk2E
 xYYQ8v+gePPe3p6tnNHmuHPztdk98h2OVqAW5i7cdvgGRt+CnoBGFpRBHBJWjzLc
 R9YkyJx0Yg==
X-Virus-Scanned: amavis at mykolab.com
X-Spam-Flag: NO
X-Spam-Score: -1
X-Spam-Level: 
X-Spam-Status: No, score=-1 tagged_above=-10 required=5 tests=[ALL_TRUSTED=-1]
 autolearn=ham autolearn_force=no
Received: from mx.kolabnow.com ([127.0.0.1])
 by localhost (ext-mx-out011.mykolab.com [127.0.0.1]) (amavis, port 10024)
 with ESMTP id 9bpfRwC-abPR for <75295 <at> debbugs.gnu.org>;
 Fri,  3 Jan 2025 19:18:52 +0100 (CET)
Received: from int-mx011.mykolab.com (unknown [10.9.13.11])
 by mx.kolabnow.com (Postfix) with ESMTPS id C306120B2764
 for <75295 <at> debbugs.gnu.org>; Fri,  3 Jan 2025 19:18:51 +0100 (CET)
Received: from ext-subm010.mykolab.com (unknown [10.9.6.10])
 by int-mx011.mykolab.com (Postfix) with ESMTPS id 714F2313CD5B
 for <75295 <at> debbugs.gnu.org>; Fri,  3 Jan 2025 19:18:51 +0100 (CET)
From: Christopher Howard <christopher@HIDDEN>
To: 75295 <at> debbugs.gnu.org
Subject: Re: bug#75295: emacs-math-preview: add math-preview dependency?
In-Reply-To: <87sepz3hqy.fsf@HIDDEN> (muradm's message of "Fri, 03 Jan
 2025 20:54:45 +0300")
References: <875xmxuliy.fsf@HIDDEN> <87jzbc5bb5.fsf@HIDDEN>
 <87wmfb25ac.fsf@HIDDEN> <87sepz3hqy.fsf@HIDDEN>
Date: Fri, 03 Jan 2025 09:18:48 -0900
Message-ID: <877c7blq0n.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75295
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

muradm <mail@HIDDEN> writes:

> mkdir -p ~/.config/npm
> mkdir -p ~/.local/share/npm
> echo "prefix=/home/muradm/.local/share/npm" > ~/.config/npm/config
>
> Then you can use "npm install -g ...".
>

Okay, thank you. Before reading this, I chatted with somebody on #node.js and they suggested "npm set prefix". I set my install prefix that way, and then I was able to run the install command with no issues. Now math-preview functions are working in my Emacs buffers.

So, I'm up and running. But I'd be inclined to keep this bug open, in case it might inspire someone to put together a package for that math-preview dependency.

-- 
Christopher Howard




Information forwarded to bug-guix@HIDDEN:
bug#75295; Package guix. Full text available.

Message received at 75295 <at> debbugs.gnu.org:


Received: (at 75295) by debbugs.gnu.org; 3 Jan 2025 17:54:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 03 12:54:55 2025
Received: from localhost ([127.0.0.1]:51957 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tTlss-0005tb-PJ
	for submit <at> debbugs.gnu.org; Fri, 03 Jan 2025 12:54:55 -0500
Received: from nomad-cl1.muradm.net ([139.162.159.157]:57158)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <mail@HIDDEN>) id 1tTlsq-0005t8-Cx
 for 75295 <at> debbugs.gnu.org; Fri, 03 Jan 2025 12:54:53 -0500
Received: from localhost ([127.0.0.1]:42896)
 by nomad-cl1.muradm.net with esmtps (TLS1.3) tls
 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.1)
 (envelope-from <mail@HIDDEN>) id 1tTlp3-0001I2-0M;
 Fri, 03 Jan 2025 17:50:57 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=muradm.net; 
 s=mail;
 h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:
 Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=5jWm6snSn+PYR6ULpw5FEwgtsKBc+KL+fKSe/c1GIXY=; b=TLq5NnpIQLqD8yqWPGnLcLR7Wn
 Pj8SOIUbta84hqpDs1yNxP6p8lfq+GwONJlYZ7BFJYFESaSgUeA9H4VrK0mUoroBGDpDTAqJlZ+Df
 ZF011kSrFLvj8apLY5JgpDXj1FCut65AcXYToy/JHLuxeVkxGL9uBaLHMTfU7Xsxfnu8/0UBhXVKK
 /+Ezqbh2yOvS6PZITiQUNHIsrGPztepEGa+pWuwCmzoI9WuXKw5uCiOdt5Ope5zjSX6LzGLGoWDSE
 Lts0WONhYeut5BVfDNswucHu2K94ncfB65YHNQhPEFAJdM3WKYHIr41+TAAkKk6tBejTFRX332xbM
 a22hag2PwCyxpW5TS5qVd30XMqg5TMM9wUxRjiddxJwFML77Aptuoba++2eTKMc77Uk478dLtcskG
 aUmLSaUyOE1xDijYcCd5JAEcrTQrqYEfut2SmWrLB1PYFFBQJDlUQjzCWWgrk3t9+Lg1UjFDm1vKf
 Bn9PvekuJUzh6q2APtss7MLe;
Received: from muradm by localhost with local (Exim 4.98)
 (envelope-from <mail@HIDDEN>) id 1tTlsj-000000001pU-2aMy;
 Fri, 03 Jan 2025 20:54:45 +0300
From: muradm <mail@HIDDEN>
To: Christopher Howard <christopher@HIDDEN>
Subject: Re: bug#75295: emacs-math-preview: add math-preview dependency?
In-Reply-To: <87wmfb25ac.fsf@HIDDEN> (Christopher Howard's message of
 "Fri, 03 Jan 2025 08:09:15 -0900")
References: <875xmxuliy.fsf@HIDDEN> <87jzbc5bb5.fsf@HIDDEN>
 <87wmfb25ac.fsf@HIDDEN>
User-Agent: mu4e 1.12.7; emacs 29.4
Date: Fri, 03 Jan 2025 20:54:45 +0300
Message-ID: <87sepz3hqy.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75295
Cc: 75295 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain; format=flowed


Ah.. you also need to configure NPM. Mine is set as following:

mkdir -p ~/.config/npm
mkdir -p ~/.local/share/npm
echo "prefix=/home/muradm/.local/share/npm" > ~/.config/npm/config

Then you can use "npm install -g ...".

Christopher Howard <christopher@HIDDEN> writes:

> muradm <mail@HIDDEN> writes:
>
>> guix shell node -- npm install -g
>> git+https://gitlab.com/matsievskiysv/math-preview
>
> Does this command actually work for you? When I try, I get this 
> error
>
> ```
> 90 verbose stack Error: ENOENT: no such file or directory, mkdir 
> '/gnu/store/lknvzfbwqffvvyflid5dpm53vbjg8kh4-node-18.19.0/lib/node_modules/math-preview'
> ```
>
> Do you have some necessary node configuration set up which I 
> don't?

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEESPY5lma9A9l5HGLP6M7O0mLOBeIFAmd4JGUACgkQ6M7O0mLO
BeKVbA//UxXSr5AQY/uvF8F2mwy1bpkcwe2kjm92Y0ExmBT2mZbNQqld5dQz2IMZ
9hVSjMOIRqXTEuiirnZCdkeBrVIXsoCtqd76dE3mirOHOfO7wvVFz9ky+Flt4lAu
dr8MEs0cwPod06TDR87nhsKSiG8Dpz/PxnIgnwyRt6ksAhX9BxQFg/itPrwIxUui
yg/uJeNNyPnWKbX9VTloUDyUBxeUlkZIT4/vy6wJU6MQwKlXTajhQKtCSFQU4FMs
4gF9wbnobTwT5cYerzJpEvl4waF9RmgYymJ/qeVP0nBQf5AydW5L6iuhrjLEG8Ym
FSbdN6F722TQkaungNdBbqZUJ0cbtwBnxezAm0ye36KFXuUhq1HU0FugEhVS3yuf
H+831oDMAM8BI1ARnYqlUMfA2qaOFojGjr3HsAfzSAtOtFquQhOH4teqaUjNbvXt
FARd4vfzQxMsufxG63Sm0ZWsoeCS+5B9b00Qzp509txT5yGV7Rss+8YvYSDyoe/i
adb9Cd83vKc0CcGMknQPbJkm961jhHnO/pi1Jf5otaFNRvJFjhUO7iDkaXBuwTeL
QiC2/x1NTYkL3hL9Ymd2DNnGB/EWhDsREZ5Mg9v+DgTsu3VGQgfKg9t3qcSiVtbo
owqOQ6ldfKM/C0lVEHrjjMhT3qQC2BelJIyXTSpMbSpc6REZSm8=
=QAIL
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#75295; Package guix. Full text available.

Message received at 75295 <at> debbugs.gnu.org:


Received: (at 75295) by debbugs.gnu.org; 3 Jan 2025 17:09:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 03 12:09:30 2025
Received: from localhost ([127.0.0.1]:51879 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tTlAw-0003HR-DE
	for submit <at> debbugs.gnu.org; Fri, 03 Jan 2025 12:09:30 -0500
Received: from mx.kolabnow.com ([212.103.80.154]:34142)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <christopher@HIDDEN>)
 id 1tTlAu-0003Gk-Jq
 for 75295 <at> debbugs.gnu.org; Fri, 03 Jan 2025 12:09:29 -0500
Received: from localhost (unknown [127.0.0.1])
 by mx.kolabnow.com (Postfix) with ESMTP id E6724209F9E1;
 Fri,  3 Jan 2025 18:09:21 +0100 (CET)
Authentication-Results: ext-mx-out011.mykolab.com (amavis);
 dkim=pass (2048-bit key) reason="pass (just generated, assumed good)"
 header.d=kolabnow.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h=
 content-type:content-type:mime-version:message-id:date:date
 :references:in-reply-to:subject:subject:from:from:received
 :received:received; s=dkim20240523; t=1735924160; x=1737738561;
 bh=yTE12Fwn7FfO8d7dRoMsKK9LtGY2vdwAwJ1Q7yjazyA=; b=fpggpf17BKqG
 j2Lzgo73h40rnRhuYM0XBD7h/OdDBcwZjjf2YrY98ZBofiTgkA/cdmW044cgRG5r
 idTL9g6npGDYtqMn9AeG/mGen9bHcFcgYt4QP9lpbdrTI1vH1t6fsUHaNTgbJhpx
 cSLoqa83lixapznhnteYwyM4AxfVxI2ta8oITB7EI7j49ZZ5wor99zr1oKtoXN7T
 5VSx6Fqozi++5k5CUJtGI5TX22eUQE8oh2Q7mO4qOTpZSrvvkFcOiFL8cfchInmq
 S5SrAYtVw+jcgKeLd3hXtl4oBegeW7HeZov+4OzrG44WUhmRNzkfK7C1O3AcM/0f
 nqI8/8FPug==
X-Virus-Scanned: amavis at mykolab.com
X-Spam-Flag: NO
X-Spam-Score: -1
X-Spam-Level: 
X-Spam-Status: No, score=-1 tagged_above=-10 required=5 tests=[ALL_TRUSTED=-1]
 autolearn=ham autolearn_force=no
Received: from mx.kolabnow.com ([127.0.0.1])
 by localhost (ext-mx-out011.mykolab.com [127.0.0.1]) (amavis, port 10024)
 with ESMTP id hzleNxo_ZeUx; Fri,  3 Jan 2025 18:09:20 +0100 (CET)
Received: from int-mx009.mykolab.com (unknown [10.9.13.9])
 by mx.kolabnow.com (Postfix) with ESMTPS id 08D9820B2764;
 Fri,  3 Jan 2025 18:09:18 +0100 (CET)
Received: from ext-subm010.mykolab.com (unknown [10.9.6.10])
 by int-mx009.mykolab.com (Postfix) with ESMTPS id 62CF12040A7C;
 Fri,  3 Jan 2025 18:09:18 +0100 (CET)
From: Christopher Howard <christopher@HIDDEN>
To: muradm <mail@HIDDEN>
Subject: Re: bug#75295: emacs-math-preview: add math-preview dependency?
In-Reply-To: <87jzbc5bb5.fsf@HIDDEN> (muradm's message of "Fri, 03 Jan
 2025 15:30:54 +0300")
References: <875xmxuliy.fsf@HIDDEN> <87jzbc5bb5.fsf@HIDDEN>
Date: Fri, 03 Jan 2025 08:09:15 -0900
Message-ID: <87wmfb25ac.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75295
Cc: 75295 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

muradm <mail@HIDDEN> writes:

> guix shell node -- npm install -g
> git+https://gitlab.com/matsievskiysv/math-preview

Does this command actually work for you? When I try, I get this error

```
90 verbose stack Error: ENOENT: no such file or directory, mkdir '/gnu/store/lknvzfbwqffvvyflid5dpm53vbjg8kh4-node-18.19.0/lib/node_modules/math-preview'
```

Do you have some necessary node configuration set up which I don't?

-- 
Christopher Howard




Information forwarded to bug-guix@HIDDEN:
bug#75295; Package guix. Full text available.

Message received at 75295 <at> debbugs.gnu.org:


Received: (at 75295) by debbugs.gnu.org; 3 Jan 2025 12:31:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 03 07:31:06 2025
Received: from localhost ([127.0.0.1]:49912 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tTgpW-0004Z9-2p
	for submit <at> debbugs.gnu.org; Fri, 03 Jan 2025 07:31:06 -0500
Received: from nomad-cl1.muradm.net ([139.162.159.157]:47366)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <mail@HIDDEN>) id 1tTgpR-0004Yc-My
 for 75295 <at> debbugs.gnu.org; Fri, 03 Jan 2025 07:31:04 -0500
Received: from localhost ([127.0.0.1]:41628)
 by nomad-cl1.muradm.net with esmtps (TLS1.3) tls
 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.1)
 (envelope-from <mail@HIDDEN>) id 1tTgle-0001AP-2E;
 Fri, 03 Jan 2025 12:27:06 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=muradm.net; 
 s=mail;
 h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:
 Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID:
 Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
 :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
 List-Post:List-Owner:List-Archive;
 bh=oBktM2j64lSnJgXZtdeh4nCO/bsrkqcCkkTVbGlu0UA=; b=GpWxA78fswrktaagwS7YXdGZ0K
 LkItGb+RR9ak+KXaMR6gUjmmv4PLsCzS7HYzaCy3bEKoekd9vt1pIkkAOh0rSZHehXTFRe5HkXzON
 7ptVz8CJoPC3C8MQTyAnwHfZc/rpYJI1wved9b0XbeJ4mo/r4mUndmQv4/Nm7YDeb1FRu3Gt4elgD
 M7UVAb8CAt7UbxkL+ep0MkFuu+Tdhosy+w5BoRYZWjqG7WXhh4QZfTHqSB4K3P1AKebMoZaMMhNTh
 Z/KsiYhsa8EQwC0g4Srb40QWFbDi2S/CF6ZxsGjBSwm/AGeanFnrK/U/njrwj3tuVM5j86n/+iC4U
 zZCcGeq9wR+/J8c+KDTeaYucFo9h+91FASQw8fe1784xVZgZ58Qd1udNMGmrzfHJDd9DOzz7cxJHv
 PkUgc5PrPF0jTlObojmgNoDsCecQ/heRFplr6IF6omJcN130775LiyEZguyBqKsu3p7G9iMmXKCoU
 aK7DCiX5P40Rr22Jf5AjiVDK;
Received: from muradm by localhost with local (Exim 4.98)
 (envelope-from <mail@HIDDEN>) id 1tTgpK-000000001bD-2pWe;
 Fri, 03 Jan 2025 15:30:54 +0300
From: muradm <mail@HIDDEN>
To: Christopher Howard <christopher@HIDDEN>
Subject: Re: bug#75295: emacs-math-preview: add math-preview dependency?
In-Reply-To: <875xmxuliy.fsf@HIDDEN> (Christopher Howard's message of
 "Thu, 02 Jan 2025 09:18:45 -0900")
References: <875xmxuliy.fsf@HIDDEN>
User-Agent: mu4e 1.12.7; emacs 29.4
Date: Fri, 03 Jan 2025 15:30:54 +0300
Message-ID: <87jzbc5bb5.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 75295
Cc: 75295 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable


Hi, normally nodejs packages are hard to import, since they have=20
tons of dependencies, just like crates for rust, while crates are=20
maintained in Guix and npm packages are not.

When I need nodejs package to be available for emacs, I once=20
install it globally:

guix shell node -- npm install -g=20
git+https://gitlab.com/matsievskiysv/math-preview

Then next time I need an instance of emacs with it, I would run:

guix shell node -- emacs

Beware, that if you run emacs without node available, math-preview=20
would not be available as well.

If you normally don't have any thing complex to do with node (like=20
having multiple nodejs versions, environments etc.), you may add=20
it to your profile.

Christopher Howard <christopher@HIDDEN> writes:

> Hi, the package emacs-math-preview requires nodejs package=20
> math-preview to be installed, in order to work. Would it be=20
> possible Somebody=E2=84=A2 could create a package for that and add it as=
=20
> an explicit dependency for emacs-math-preview?
>
> I know nothing about nodejs and am having trouble figuring out=20
> how to install math-preview myself on Guix. The README.md=20
> instructions in emacs-math-preview state:
>
>> It may be installed by issuing the command:
>>
>> ```bash
>> > npm install -g=20
>> > git+https://gitlab.com/matsievskiysv/math-preview
>> ```
>
> However, if I do this, I get this error:
>
> ```
> christopher@theoden ~$ npm install -g=20
> git+https://gitlab.com/matsievskiysv/math-preview
> npm ERR! code ENOENT
> npm ERR! syscall mkdir
> npm ERR! path=20
> /gnu/store/lknvzfbwqffvvyflid5dpm53vbjg8kh4-node-18.19.0/lib/node_modules=
/math-preview
> npm ERR! errno -2
> npm ERR! enoent ENOENT: no such file or directory, mkdir=20
> '/gnu/store/lknvzfbwqffvvyflid5dpm53vbjg8kh4-node-18.19.0/lib/node_module=
s/math-preview'
> npm ERR! enoent This is related to npm not being able to find a=20
> file.
> npm ERR! enoent
>
> npm ERR! A complete log of this run can be found in:=20
> /home/christopher/.npm/_logs/2025-01-02T18_16_26_364Z-debug-0.log
> ```
>
> Evidently, I need to somehow pick a different path or something=20
> like that. If somebody could at least document the correct=20
> installation steps here, that would be helpful.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEESPY5lma9A9l5HGLP6M7O0mLOBeIFAmd32H4ACgkQ6M7O0mLO
BeJTmA//d3/ZPyRYG4QLVAu5Qf9NYSKjM2yS5FDQby3C5/DG0vXmsXCPEpa2Tvar
fw6puUjN0QlxLGyqOttPnrewL4I14P6vgX3a+mu0iJAZ3y1Rn4Q6h9IaNod/i7Vx
J1TqZf2ZviNAEPwd6yXaHDf480Y4sNEuReUaia/pXaULJ/Hxas3peJwX/WJfwBoj
GE9gJ4iZSKOwYy1qZfs7WZpOpxsQ5MFlQmfCrgckfiqJvlU51HUnNLKq6yit8Elt
rj0hbAE8rWGaYrCSYqBVMoUg9bqXHxNMLSZB7Vl7j1pyERKusGPeZzl+0Gms2MJa
R+I42Ru0vZ5EcxTAcVYmtaRxzRo2KlsAsRRUxZEuHyFs5aAKGpPDq1pA0DeGSWzs
A48uwCUUbRnequTCxSLhjZIKhIks4/rcdOVTpTL2jtHYqtMP/c54jpM9a+urigY9
aOKobQwci5keHjOlD0I+z0uK+3gsHnrsbwYXw8lMgthODSzxxQTk+soDMsqe+/iw
0jqjwGVs2+tnMqPPFQHQ9f6rTRBFlo82dPN292v1g+KunxY0+oKKHCIOdwaiCl4W
S0nsD8meJsg+F+uEEb/+SxgyqJgTqX8WkqQsYSgcNsCTC6uacfoIIbrlvA4FJiKf
SOTFTL5WAh2t1K1jcpxObyRgs/KpPMidRe3sBkPL4d0xIVpAtlI=
=ytJJ
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#75295; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 2 Jan 2025 18:19:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 02 13:19:03 2025
Received: from localhost ([127.0.0.1]:46572 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tTPmg-0007RW-OZ
	for submit <at> debbugs.gnu.org; Thu, 02 Jan 2025 13:19:03 -0500
Received: from lists.gnu.org ([2001:470:142::17]:58282)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <christopher@HIDDEN>)
 id 1tTPme-0007Qe-SK
 for submit <at> debbugs.gnu.org; Thu, 02 Jan 2025 13:19:01 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <christopher@HIDDEN>)
 id 1tTPmZ-00042x-43
 for bug-guix@HIDDEN; Thu, 02 Jan 2025 13:18:55 -0500
Received: from mx.kolabnow.com ([212.103.80.155])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <christopher@HIDDEN>)
 id 1tTPmX-00076I-6E
 for bug-guix@HIDDEN; Thu, 02 Jan 2025 13:18:54 -0500
Received: from localhost (unknown [127.0.0.1])
 by mx.kolabnow.com (Postfix) with ESMTP id 13A67209201D
 for <bug-guix@HIDDEN>; Thu,  2 Jan 2025 19:18:51 +0100 (CET)
Authentication-Results: ext-mx-out011.mykolab.com (amavis);
 dkim=pass (2048-bit key) reason="pass (just generated, assumed good)"
 header.d=kolabnow.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h=
 content-transfer-encoding:content-type:content-type:mime-version
 :message-id:date:date:subject:subject:from:from:received
 :received:received; s=dkim20240523; t=1735841929; x=1737656330;
 bh=BOgLIhIH/fl70XJ/KoIIROtknzY58ZggCtBAT4x4wc4=; b=tHlQHwRn6/BT
 stXWmUuvnTtJcbeSm5/9Y7xE7dwrphXpH4RTVOLTWtrx1xta7NHrmxn0I2aVaRwD
 CQgNU+J7szzUpA7n0kek+No4LNSzNizgk7GhfIWCP6gH5Q1BstuJrcCcsSItOvvC
 tCmk98NEwBk8ozUYC0ruYpA0eRlJi1ncjx5y5PiU0/oXdAsvNfxZIdzTaByjN22R
 fvwh9JxvQBVEooz4NZudR8pMJEAfrl6fCf2FHln8qKsI2nSk3BVX4XTr9dijKYtn
 tNTKz+phJjM9rbbYrjoJYY+SLx12n/073QYkZOVXyzclJA+DC5THN9jT9V1kcdo+
 WzJt72/azQ==
X-Virus-Scanned: amavis at mykolab.com
X-Spam-Flag: NO
X-Spam-Score: -1
X-Spam-Level: 
X-Spam-Status: No, score=-1 tagged_above=-10 required=5 tests=[ALL_TRUSTED=-1]
 autolearn=ham autolearn_force=no
Received: from mx.kolabnow.com ([127.0.0.1])
 by localhost (ext-mx-out011.mykolab.com [127.0.0.1]) (amavis, port 10024)
 with ESMTP id mrJyrqS9-81V for <bug-guix@HIDDEN>;
 Thu,  2 Jan 2025 19:18:49 +0100 (CET)
Received: from int-mx011.mykolab.com (unknown [10.9.13.11])
 by mx.kolabnow.com (Postfix) with ESMTPS id D9F8220C73F5
 for <bug-guix@HIDDEN>; Thu,  2 Jan 2025 19:18:48 +0100 (CET)
Received: from ext-subm010.mykolab.com (unknown [10.9.6.10])
 by int-mx011.mykolab.com (Postfix) with ESMTPS id D0C1B31398EF
 for <bug-guix@HIDDEN>; Thu,  2 Jan 2025 19:18:48 +0100 (CET)
From: Christopher Howard <christopher@HIDDEN>
To: bug-guix@HIDDEN
Subject: emacs-math-preview: add math-preview dependency?
Date: Thu, 02 Jan 2025 09:18:45 -0900
Message-ID: <875xmxuliy.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: none client-ip=212.103.80.155;
 envelope-from=christopher@HIDDEN; helo=mx.kolabnow.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001,
 SPF_NONE=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi, the package emacs-math-preview requires nodejs package math-preview to =
be installed, in order to work. Would it be possible Somebody=E2=84=A2 coul=
d create a package for that and add it as an explicit dependency for emacs-=
math-preview?

I know nothing about nodejs and am having trouble figuring out how to insta=
ll math-preview myself on Guix. The README.md instructions in emacs-math-pr=
eview state:

> It may be installed by issuing the command:
>=20
> ```bash
> > npm install -g git+https://gitlab.com/matsievskiysv/math-preview
> ```

However, if I do this, I get this error:

```
christopher@theoden ~$ npm install -g git+https://gitlab.com/matsievskiysv/=
math-preview
npm ERR! code ENOENT
npm ERR! syscall mkdir
npm ERR! path /gnu/store/lknvzfbwqffvvyflid5dpm53vbjg8kh4-node-18.19.0/lib/=
node_modules/math-preview
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, mkdir '/gnu/store/lknvzf=
bwqffvvyflid5dpm53vbjg8kh4-node-18.19.0/lib/node_modules/math-preview'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent=20

npm ERR! A complete log of this run can be found in: /home/christopher/.npm=
/_logs/2025-01-02T18_16_26_364Z-debug-0.log
```

Evidently, I need to somehow pick a different path or something like that. =
If somebody could at least document the correct installation steps here, th=
at would be helpful.

--=20
=F0=9F=93=9B Christopher Howard
=F0=9F=9A=80 gemini://gem.librehacker.com
=F0=9F=8C=90 http://gem.librehacker.com

=D7=91=D7=A8=D7=90=D7=A9=D7=99=D7=AA =D7=91=D7=A8=D7=90 =D7=90=D7=9C=D7=94=
=D7=99=D7=9D =D7=90=D7=AA =D7=94=D7=A9=D7=9E=D7=99=D7=9D =D7=95=D7=90=D7=AA=
 =D7=94=D7=90=D7=A8=D7=A5




Acknowledgement sent to Christopher Howard <christopher@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#75295; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2025 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.