Skip to content

Not working #13

@pavpanchekha

Description

@pavpanchekha

I got this issue over email a year ago. Well, I'm obviously not working on, let's leave it as an issue instead. It's a pity, it's one of the best bug reports I've ever received:


Hi. I just discovered dropbox.el. I'm having issues getting /db:
to actually call the underlying mechanism, though calling
dropbox-handle-directory-files does actually see files.

I'm running "Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21)
of 2017-09-22, modified by Debian" under Ubuntu 18.04.3 LTS.

To install dropbox.el, I first had to retrieve "request" from [1].
I byte-compiled and loaded just request.el from that package, then
byte-compiled dropbox.el from yours [2] and loaded that. I then setq'd
dropbox-access-token to the token I got when I created the app on Dropbox.

[1] https://github.com/tkf/emacs-request
[2] https://github.com/pavpanchekha/dropbox.el

After reading the only open issue in your Github (re Helm #7), I saw the
clue about first calling dropbox-connect, which either isn't in your
README or I missed it somewhere, so I also called that after some
previous attempts didn't work, but it doesn't seem to have helped.

Instead, if I try something like C-x d /db: or (directory-files "/db:"),
I get:

ssh: Could not resolve hostname db: Name or service not known^M"

so clearly it's trying to connect to a host called "db" instead of the
actual Dropbox API endpoints.

*Messages* has:

Dropbox’ing operation substitute-in-file-name for (/db:)
... returning /db:
Dropbox’ing operation substitute-in-file-name for (/db:)
... returning /db:
Dropbox’ing operation substitute-in-file-name for (/db:)
... returning /db:
Dropbox’ing operation file-name-as-directory for (/db:)
... returning /db:
Dropbox’ing operation directory-file-name for (/db:)
... returning /db:
Dropbox’ing operation expand-file-name for (/db: nil)
Tramp: Opening connection for db using scp...
Tramp: Sending command ‘exec ssh   -o ControlMaster=auto -o
ControlPath='tramp.%C' -o ControlPersist=no -e none db’
Tramp: Waiting for prompts from remote shell...
Tramp failed to connect.  If this happens repeatedly, try
    ‘M-x tramp-cleanup-this-connection’
Tramp: Waiting for prompts from remote shell...failed
Tramp: Opening connection for db using scp...failed
tramp-file-name-handler: Tramp failed to connect.  If this happens
repeatedly, try
    ‘M-x tramp-cleanup-this-connection’

file-name-handler-alist is:

(("\\`/db:" . dropbox-handler)
("\\(?:\\.dz\\|\\.txz\\|\\.xz\\|\\.lzma\\|\\.lz\\|\\.g?z\\|\\.\\(?:tgz\\|svgz\\|sifz\\)\\|\\.tbz2?\\|\\.bz2\\|\\.Z\\)\\(?:~\\|\\.~[-[:alnum:]:#@^._]+\\(?:~[[:digit:]]+\\)?~\\)?\\'"
. jka-compr-handler) ("\\.\
gpg\\(~\\|\\.~[0-9]+~\\)?\\'" . epa-file-handler) ("\\`/[^/]*\\'"
. tramp-completion-file-name-handler) ("\\`/[^/|:][^/|]*:"
. tramp-file-name-handler) ("\\`/:" . file-name-non-special))

I tried again via emacs -q so it would not run my init,
and loaded request.elc, dropbox.elc, and setq'd the token.
No change in behavior.

What am I missing?

P.S. My *Compile Log* buffer had this in it:

Leaving directory ‘~/’
^L
Compiling file /home/foner/request.el at Mon Dec 30 15:33:56 2019
Entering directory ‘/home/foner/’
^L
Compiling file /home/foner/dropbox.el at Mon Dec 30 15:34:04 2019

In dropbox-handler:
dropbox.el:237:40:Warning: reference to free variable
‘dropbox-handler-alist’

In dropbox-handle-file-selinux-context:
dropbox.el:521:8:Warning: function ‘dropbox-handle-file-selinux-context’
    defined multiple times in this file

In dropbox-handle-verify-visited-file-modtile:
dropbox.el:533:26:Warning: assignment to free variable ‘newmetadata’
dropbox.el:534:60:Warning: reference to free variable ‘newmetadata’

In dropbox-handle-copy-directory:
dropbox.el:721:26:Warning: reference to free variable ‘file’

In end of data:
dropbox.el:885:1:Warning: the following functions are not known to be
defined: list*,
    move-file

P.P.S. Next-older Emacs I have available easily is Emacs 24.3.1,
in Ubuntu 14.04.6, but that didn't know about request either and
might also be missing the json package, IIRC, so I stopped testing
there and tried a machine with Emacs 25 on it instead.

Thanks again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions