unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#30858: 27.0.50; tramp-error: Package `tramp-archive' not supported
@ 2018-03-19 17:52 Kaushal Modi
  2018-03-19 18:03 ` Noam Postavsky
  0 siblings, 1 reply; 6+ messages in thread
From: Kaushal Modi @ 2018-03-19 17:52 UTC (permalink / raw)
  To: 30858; +Cc: michael.albinus

[-- Attachment #1: Type: text/plain, Size: 1607 bytes --]

X-Debbugs-CC: michael.albinus@gmx.de

Hello,

I have been seeing this "tramp-error: Package `tramp-archive' not
supported" for may be about a month. This error happens whenever I try to
git stage an archive file like foo.tar.xz using Magit.

I cannot debug this error as M-x toggle-debug-on-error does not give any
backtrace, and even (setq debug-on-message "not supported") doesn't do
anything.

This issue looks the exact same like
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=30293, but I see that that is
already closed about a month back, whereas I still see this on the master
build as of 03/15 (last week).

I have seen this issue only when staging *new* *.tar.xz files in Magit, but
I cannot invoke backtrace by any means.. Please let me know what I can do
to better understand this problem, and help fix it.

Thanks.

---

Emacs version: GNU Emacs 27.0.50 (build 24, x86_64-pc-linux-gnu, GTK+
Version 2.24.23)
 of 2018-03-15, built using commit 64a1da4989b0551481600facb1781ac92089d182.

./configure options:
  --with-modules --prefix=/home/kmodi/usr_local/apps/6/emacs/master
'--program-transform-name=s/^ctags$/ctags_emacs/'
--enable-checking=yes,glyphs --enable-check-lisp-object-type
'CPPFLAGS=-I/home/kmodi/usr_local/6/include -I/usr/include/freetype2
-I/usr/include' 'CFLAGS=-ggdb3 -O0' 'CXXFLAGS=-ggdb3 -O0'
'LDFLAGS=-L/home/kmodi/usr_local/6/lib -L/home/kmodi/usr_local/6/lib64
-ggdb3'

Features:
  XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS
GTK2 X11 MODULES THREADS

-- 

Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 3050 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#30858: 27.0.50; tramp-error: Package `tramp-archive' not supported
  2018-03-19 17:52 bug#30858: 27.0.50; tramp-error: Package `tramp-archive' not supported Kaushal Modi
@ 2018-03-19 18:03 ` Noam Postavsky
  2018-03-19 18:08   ` Kaushal Modi
  0 siblings, 1 reply; 6+ messages in thread
From: Noam Postavsky @ 2018-03-19 18:03 UTC (permalink / raw)
  To: Kaushal Modi; +Cc: 30858, Michael Albinus

On 19 March 2018 at 13:52, Kaushal Modi <kaushal.modi@gmail.com> wrote:

> I cannot debug this error as M-x toggle-debug-on-error does not give any
> backtrace, and even (setq debug-on-message "not supported") doesn't do
> anything.

Try also

(setq debug-ignored-errors (remq 'user-error debug-ignored-errors))





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#30858: 27.0.50; tramp-error: Package `tramp-archive' not supported
  2018-03-19 18:03 ` Noam Postavsky
@ 2018-03-19 18:08   ` Kaushal Modi
  2018-03-19 18:21     ` Noam Postavsky
  0 siblings, 1 reply; 6+ messages in thread
From: Kaushal Modi @ 2018-03-19 18:08 UTC (permalink / raw)
  To: Noam Postavsky; +Cc: 30858, Michael Albinus

[-- Attachment #1: Type: text/plain, Size: 1426 bytes --]

On Mon, Mar 19, 2018 at 2:04 PM Noam Postavsky <npostavs@gmail.com> wrote:

>
> Try also
>
> (setq debug-ignored-errors (remq 'user-error debug-ignored-errors))
>

 Thanks! So that error was a user-error.. After evaluating that, and M-x
toggle-debug-on-error.. trying to git stage that same tar.xz in Magit
finally gave this backtrace:

Debugger entered--Lisp error: (user-error "Package `tramp-archive' not
supported")
  signal(user-error ("Package `tramp-archive' not supported"))
  tramp-error(nil user-error "Package `tramp-archive' not supported")
  apply(tramp-error nil user-error "Package `tramp-archive' not supported"
nil)
  tramp-archive-file-name-handler(file-regular-p "/home/kmodi/hugo/
kaushalmodi.gitlab.io/bin/tidy_html5_DEV-Linux-64bit.tar.xz/.git")
  file-regular-p("/home/kmodi/hugo/
kaushalmodi.gitlab.io/bin/tidy_html5_DEV-Linux-64bit.tar.xz/.git")
  magit-git-repo-p("tidy_html5_DEV-Linux-64bit.tar.xz" t)
  magit-stage-untracked(nil)
  magit-stage(nil)
  funcall-interactively(magit-stage nil)
  call-interactively(magit-stage nil nil)
  command-execute(magit-stage)

Looks like something wrong is happening at 2 places?

1. Magit is trying to do something with
"tidy_html5_DEV-Linux-64bit.tar.xz/.git"? When
"tidy_html5_DEV-Linux-64bit.tar.xz" is not actually a dir?
2. And that in turn triggering that tramp error, even when this is a local
file, and shouldn't have tramp involved?
-- 

Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 2183 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#30858: 27.0.50; tramp-error: Package `tramp-archive' not supported
  2018-03-19 18:08   ` Kaushal Modi
@ 2018-03-19 18:21     ` Noam Postavsky
  2018-03-19 21:53       ` Kaushal Modi
  0 siblings, 1 reply; 6+ messages in thread
From: Noam Postavsky @ 2018-03-19 18:21 UTC (permalink / raw)
  To: Kaushal Modi; +Cc: 30858, Michael Albinus

On 19 March 2018 at 14:08, Kaushal Modi <kaushal.modi@gmail.com> wrote:

> Looks like something wrong is happening at 2 places?
>
> 1. Magit is trying to do something with
> "tidy_html5_DEV-Linux-64bit.tar.xz/.git"? When
> "tidy_html5_DEV-Linux-64bit.tar.xz" is not actually a dir?
> 2. And that in turn triggering that tramp error, even when this is a local
> file, and shouldn't have tramp involved?

Magit is trying to figure out whether
"tidy_html5_DEV-Linux-64bit.tar.xz" refers to a git repo (in which
case it would add it as a git submodule, instead of plain 'git add').
It does this by checking whether there's ".git" file beneath it.
This seems to conflict with the new archive handling feature of tramp.
Not sure if there is a way to resolve it. If not, then I guess magit
must explicitly check whether "tidy_html5_DEV-Linux-64bit.tar.xz" is a
directory first.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#30858: 27.0.50; tramp-error: Package `tramp-archive' not supported
  2018-03-19 18:21     ` Noam Postavsky
@ 2018-03-19 21:53       ` Kaushal Modi
  2018-03-20  7:54         ` Michael Albinus
  0 siblings, 1 reply; 6+ messages in thread
From: Kaushal Modi @ 2018-03-19 21:53 UTC (permalink / raw)
  To: Noam Postavsky, Michael Albinus; +Cc: 30858

[-- Attachment #1: Type: text/plain, Size: 474 bytes --]

On Mon, Mar 19, 2018 at 2:21 PM Noam Postavsky <npostavs@gmail.com> wrote:

> I guess magit
> must explicitly check whether "tidy_html5_DEV-Linux-64bit.tar.xz" is a
> directory first.
>

Thanks. Jonas just implemented that fix in Magit[1].

With that, this debbugs is auto-resolved. But I will leave it open for
Michael to decide, and he can close this debbugs by marking it as done.

[1]: https://github.com/magit/magit/issues/3397#issuecomment-374386881
-- 

Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 968 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#30858: 27.0.50; tramp-error: Package `tramp-archive' not supported
  2018-03-19 21:53       ` Kaushal Modi
@ 2018-03-20  7:54         ` Michael Albinus
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Albinus @ 2018-03-20  7:54 UTC (permalink / raw)
  To: Kaushal Modi; +Cc: Noam Postavsky, 30858-done

Kaushal Modi <kaushal.modi@gmail.com> writes:

Hi,

> Thanks. Jonas just implemented that fix in Magit[1].

I've just checked. The patch in magit looks good to me.

> With that, this debbugs is auto-resolved. But I will leave it open for
> Michael to decide, and he can close this debbugs by marking it as
> done.

It is not a tramp-archive error. Any file name with the syntax
".../xxx.tar/..." is regarded as file archive, and handled as
such. ".tar" could be any extension from the list
tramp-archive-suffixes combined with tramp-archive-compression-suffixes.

See also etc/NEWS of Emacs 27.

Closing the bug.

Best regards, Michael.





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-03-20  7:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-19 17:52 bug#30858: 27.0.50; tramp-error: Package `tramp-archive' not supported Kaushal Modi
2018-03-19 18:03 ` Noam Postavsky
2018-03-19 18:08   ` Kaushal Modi
2018-03-19 18:21     ` Noam Postavsky
2018-03-19 21:53       ` Kaushal Modi
2018-03-20  7:54         ` Michael Albinus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).