From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?Q?Saulius_Menkevi=C4=8Dius?= Newsgroups: gmane.emacs.devel Subject: Re: extracting a zip archive via elisp (with no external executables) Date: Sun, 9 Jul 2017 22:26:45 +0300 Message-ID: <7F95AA86-3B51-48C6-9C75-2FDB9B8047F0@gmail.com> References: <6DD83BBE-94C7-40ED-A4DD-21BC4B0E834D@gmail.com> <20170709185119.GA21572@breton.holly.idiocy.org> <38400216-AEF4-404C-80ED-0A28FB85E30E@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_82C4A409-EF97-41C7-9BEF-9106588BD61E" X-Trace: blaine.gmane.org 1499628514 18836 195.159.176.226 (9 Jul 2017 19:28:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Jul 2017 19:28:34 +0000 (UTC) Cc: Alan Third , Emacs developers To: Kaushal Modi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 09 21:28:29 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUHsU-0004Ml-7i for ged-emacs-devel@m.gmane.org; Sun, 09 Jul 2017 21:28:22 +0200 Original-Received: from localhost ([::1]:37192 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUHsZ-0002VD-PD for ged-emacs-devel@m.gmane.org; Sun, 09 Jul 2017 15:28:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUHs0-0002V4-VC for emacs-devel@gnu.org; Sun, 09 Jul 2017 15:27:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUHrx-0002D8-Qa for emacs-devel@gnu.org; Sun, 09 Jul 2017 15:27:52 -0400 Original-Received: from mail-lf0-f49.google.com ([209.85.215.49]:33815) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dUHrx-0002Ci-DX for emacs-devel@gnu.org; Sun, 09 Jul 2017 15:27:49 -0400 Original-Received: by mail-lf0-f49.google.com with SMTP id t72so47511582lff.1 for ; Sun, 09 Jul 2017 12:27:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=gru8EUxAccWtLiU2RImdgerxNHkzzkU63dtiLM2dfk4=; b=E5xn499TKCpYB2uK3T34xSnlKCEpI13sNRfKSprw17Id0hIeGOEHFvRsuaBMD5xzRu u1hyrHxvMTlaCRQYwUa+uDEYxeF6DpdJYaNIi/jNQjact63aQMlOjeqv1J22VpxP5akO U1sQikHhHeacyvzgoILkJlOCjUYOc6QxIWpYJWIaLz5erl3o8HhBbbACO/Occa2pr3cZ NubVx8QyFlP849E7yPGzUzLKpykbIBmMF+FM8CAX4g7wFKNyqic39I9Lmi7KQh9sZrSX apPsyCdtkwqpfM2Hy+y7LKGjxtqxuxhO3ZfqHmm6+N5KcdptE0NMuDAs+rMaW9Uc7Smp poWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=gru8EUxAccWtLiU2RImdgerxNHkzzkU63dtiLM2dfk4=; b=J5FmWXJihbSbAZOlDnRhf1GNdIJ2rA5Cjrliw7f5oObF/cB64WZtzgvC5E3vPyBF95 awg61ItMp1UtTJ+FLz5mkhCiXVB8GwqSEhRa3Czz4XA7J2/W6SuGRODhr0pF2PnCqkH/ ZTSsAwv4vycZu7pBb1FY/H3e/0EaGMN5owbge29ruyyVGphRg8VREolWQuxwXubMq+RU D8iU2b7V8FcnGllAxFeqcR3rUfYfTXNWrUsTPEIdSDTD07kvRqDEKW7r2uGs0HP+0XET gyzH4SlG3bOBAi2488ArdPrxs3REKnwB+JkV3Ihb6q7i27hvitMLJkfGYCNf8o+ynGOM cu0g== X-Gm-Message-State: AIVw112COMye6rq8/TcnwIAs0A2Y0OuG9ouHKhkx4JG5Fp+k5f7D5DZY mJmmL45Lp92JAQ== X-Received: by 10.46.97.9 with SMTP id v9mr2745958ljb.117.1499628408124; Sun, 09 Jul 2017 12:26:48 -0700 (PDT) Original-Received: from [172.20.10.2] (md-188-69-215-237.omni.lt. [188.69.215.237]) by smtp.gmail.com with ESMTPSA id v196sm2200714lfa.16.2017.07.09.12.26.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Jul 2017 12:26:47 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.215.49 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:216373 Archived-At: --Apple-Mail=_82C4A409-EF97-41C7-9BEF-9106588BD61E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 >=20 > Am 09.07.2017 um 22:15 schrieb Kaushal Modi : >=20 > On Sun, Jul 9, 2017, 2:59 PM Saulius Menkevi=C4=8Dius = > = wrote: > The problem is those files come within a .zip file too. >=20 > Kind of a chicken and egg scenario here for automatic code.. >=20 > You need to extract those outside Emacs. One way is to install 7-zip = (search for 7-zip Windows executables online).=20 > --=20 > Kaushal Modi >=20 Not sure I expressed myself properly.. I am one of the maintainers of the C# package for emacs = https://github.com/OmniSharp/omnisharp-emacs = For the package to work properly it needs to run language server, which should be downloaded from = https://github.com/OmniSharp/omnisharp-roslyn/releases = I have added a new interactive command omnisharp-install-server which downloads and installs the server to = ~/.emacs.d/.cache/omnisharp/server/ directory. Thus aleviating the need for the user to navigate to web page, download, = extract and the configure package to point to the location where the server has = been extracted. For UNIX systems things are easy, I just download tarball and extract it = with (call-process =E2=80=9Etar=E2=80=9C .. =E2=80=9Exz=E2=80=9C..) But on Windows things get tough, apparently. Instructing the user to install 7-zip or something else manually kind of invalidates the purpose of automatic installation. I want to keep this = functionality low-noise and avoid any involvement of the user. Which I can do on macOS = & Linux but I cannot find a way to do non-intrusively on Windows... BR, -Saulius= --Apple-Mail=_82C4A409-EF97-41C7-9BEF-9106588BD61E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

Am 09.07.2017 um 22:15 schrieb Kaushal Modi <kaushal.modi@gmail.com>:

On Sun, Jul 9, 2017, = 2:59 PM Saulius Menkevi=C4=8Dius <saulius.menkevicius@gmail.com> wrote:
The problem is those = files come within a .zip file too.

 Kind of a chicken and egg scenario here for automatic code..

You need to extract those outside Emacs. One way is to = install 7-zip (search for 7-zip Windows executables = online). 
--

Kaushal Modi


Not sure I expressed myself properly..
I am one of the maintainers of the C# = package for emacs https://github.com/OmniSharp/omnisharp-emacs
For the package to work properly it needs to run language = server, which
should be downloaded from https://github.com/OmniSharp/omnisharp-roslyn/releases

I have added a new = interactive command omnisharp-install-server which
downloads and installs the server to = ~/.emacs.d/.cache/omnisharp/server/<version> directory.
Thus aleviating the need for the user to navigate to web = page, download, extract
and the configure package = to point to the location where the server has been extracted.

For UNIX systems things = are easy, I just download tarball and extract it with (call-process = =E2=80=9Etar=E2=80=9C .. =E2=80=9Exz=E2=80=9C..)

But on Windows things get tough, = apparently.

Instructing the user to install 7-zip or something else = manually kind of
invalidates the purpose of = automatic installation. I want to keep this functionality
low-noise and avoid any involvement of the user. Which I can = do on macOS & Linux
but I cannot find a = way to do non-intrusively on Windows...

BR,
-Saulius
= --Apple-Mail=_82C4A409-EF97-41C7-9BEF-9106588BD61E--