nxhtml webvcs download error

Bug #667456 reported by malcolm cook on 2010-10-27
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
nXhtml
Medium
Unassigned

Bug Description

tring to install per instructions on http://www.emacswiki.org/emacs/NxhtmlMode

after succesfully installed web-vcs.el
  NOTE: which was installed using AutoInstall package ((http://www.emacswiki.org/emacs/AutoInstall)

                (auto-install-from-url "http://bazaar.launchpad.net/~nxhtml/nxhtml/main/annotate/head%3A/web-vcs.el")

calling web-vcs-nxhtml

and responding Y to to prompt

Debugger entered--Lisp error: (file-error "Cannot open load file" "/home/mec/.emacs.d/auto-install/nxhtml-web-vcs.el")
  load("/home/mec/.emacs.d/auto-install/nxhtml-web-vcs.el")
  (let* ((this-dir ...) (root-url ...) (files ...) (files2 ...) need-dl) (dolist (file files2) (unless ... ...)) (when need-dl (let ... ...)) (message nil) (unless (get-buffer-window "*Messages*") (web-vcs-display-messages t) (delete-other-windows)) (dolist (file files2) (unless ... ...)) (load (cdr ...)))
  (catch (quote command-level) (setq debug-on-error t) (let* (... ... ... ... need-dl) (dolist ... ...) (when need-dl ...) (message nil) (unless ... ... ...) (dolist ... ...) (load ...)) (call-interactively (quote nxhtml-setup-install)))
  web-vcs-nxhtml()
  eval((web-vcs-nxhtml))
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
  call-interactively(eval-last-sexp nil nil)

and, indeed, it is not there

I was able to install downloaded zip from http://ourcomments.org/Emacs/nXhtml/doc/nxhtml.html

lborgman (lennart-borgman) wrote :

Thanks malcolm, I wonder what is wrong.

Could you please tell me the value of web-vcs-el-this?

Changed in nxhtml:
importance: Undecided → Medium
status: New → In Progress
leth (leth) wrote :

I experience the same problem,
And it seems like the problem lies in the fact that launchpad is stupid. (just my not-so-humble opinion)
Or you might say that it's cause web-vcs-get-files-on-page-1 assumes the server is actually using real directories, but i prefere blaming this on launchpad. stupid launchpad.

(in essence the file we want to download is http://bazaar.launchpad.net/~nxhtml/nxhtml/main/annotate/head:/nxhtml-web-vcs.el but the directory ttp://bazaar.launchpad.net/~nxhtml/nxhtml/main/annotate/head:/ doesn't really exist. however the directory ttp://bazaar.launchpad.net/~nxhtml/nxhtml/main/files/head:/ exists but the file ttp://bazaar.launchpad.net/~nxhtml/nxhtml/main/files/head:/nxhtml-web-vcs.el does't exist and web-vcs-get-files-on-page-1 doesn't seem to like that. i didn't have time to look into nxhtml-web-vcs.el but i assume it uses the directory somehow)

As for more debugging i'm out of time and have to work now.
Enjoy!

Hi.

Thanks for looking into this.

eb-vcs-el-this
"/home/mec/.emacs.d/auto-install/web-vcs.elc"

Also, someone else wrote to me personally:

I experience the same problem,
>
And it seems like the problem lies in the fact that launchpad is stupid.
> (just my not-so-humble opinion)
> Or you might say that it's cause web-vcs-get-files-on-page-1 assumes the
> server is actually using real directories, but i prefere blaming this on
> launchpad. stupid launchpad.
>
> (in essence the file we want to download is
> http://bazaar.launchpad.net/~nxhtml/nxhtml/main/annotate/head:/nxhtml-<http://bazaar.launchpad.net/%7Enxhtml/nxhtml/main/annotate/head:/nxhtml-web-vcs.el>
> web-vcs.el<http://bazaar.launchpad.net/%7Enxhtml/nxhtml/main/annotate/head:/nxhtml-web-vcs.el>but the directory
> ttp://bazaar.launchpad.net/~nxhtml/nxhtml/main/annotate/head:/<http://bazaar.launchpad.net/%7Enxhtml/nxhtml/main/annotate/head:/>doesn't
> really exist. however the directory
> ttp://bazaar.launchpad.net/~nxhtml/nxhtml/main/files/head:/<http://bazaar.launchpad.net/%7Enxhtml/nxhtml/main/files/head:/>exists but
> the file ttp://bazaar.launchpad.net/~nxhtml/nxhtml/main/files/head<http://bazaar.launchpad.net/%7Enxhtml/nxhtml/main/files/head>
> :/nxhtml-web-vcs.el does't exist and web-vcs-get-files-on-page-1 doesn't
> seem to like that. i didn't have time to look into nxhtml-web-vcs.el but
> i assume it uses the directory somehow)
>
> As for more debugging i'm out of time and have to work now.
> Enjoy!
>

does that help?

Cheers,

Malcolm

On Wed, Oct 27, 2010 at 3:47 PM, lborgman <email address hidden> wrote:

> web-vcs-el-this

Manuel Gebauer (myops) wrote :

Same error here.

lborgman (lennart-borgman) wrote :

I finally got around to fix this. Please try with the new web-vcs.el that I just uploaded.

Changed in nxhtml:
status: In Progress → Fix Committed
Drew (drewwells) wrote :

Trying this today, I got this error:

Contacting host: bazaar.launchpad.net:80
Can't find revision number on "http://bazaar.launchpad.net/~nxhtml/nxhtml/main/files/head:/"
Coult not find rev no on "http://bazaar.launchpad.net/~nxhtml/nxhtml/main/files/head:/", visit page to see w\
hat is wrong? (y or n)

lborgman (lennart-borgman) wrote :

Thanks Drew, I will have to look into it again and see if I can find a more robust solution. Anyway I need bug reports and follow up like this!

Nick (nraphael1999) wrote :
Download full text (11.3 KiB)

I also get a problem.
I am running:

GNU Emacs 23.3.1 (i386-mingw-nt5.1.2600)
 of 2011-03-10 on 3249CTO

I downloaded web-vcs.el from the link you provide here: http://bazaar.launchpad.net/~nxhtml/nxhtml/main/annotate/head%3A/web-vcs.el

using the Download File button in the upper right-hand corner.
-------------------------

My web-vcs-log.org is:

* 2011-10-21
** Downloading file 17:30:32 GMT
   file [[file:d:/My Documents/.emacs.d/autostart.el][d:/My Documents/.emacs.d/autostart.el]]
   from http://bazaar.launchpad.net/~nxhtml/nxhtml/main/download/lennart.borgman%40gmail.com-20110313013000-drl16yyp60auegw9/autostart.el-20080724174035-zgon4j679232cch3-2/autostart.el

----------------------------

My *Messages* output is:

Welcome to install nXhtml.
First the nXhtml specific web install file must be downloaded.
You will get a chance to review it before it is used.

Do you want to continue? (y or n)
(New file)
OVERVIEW
Contacting host: bazaar.launchpad.net:80
HTTP/0.9 How I hate thee!
Entering debugger...
Wrote d:/My Documents/.emacs.d/web-vcs-log.org
HTTP/0.9 How I hate thee!
error in process filter: url-http-generic-filter: Wrong type argument: number-or-marker-p, nil
error in process filter: Wrong type argument: number-or-marker-p, nil
HTTP/0.9 How I hate thee!
error in process filter: url-http-generic-filter: Wrong type argument: number-or-marker-p, nil
error in process filter: Wrong type argument: number-or-marker-p, nil
HTTP/0.9 How I hate thee!
error in process filter: url-http-generic-filter: Wrong type argument: number-or-marker-p, nil
error in process filter: Wrong type argument: number-or-marker-p, nil
HTTP/0.9 How I hate thee!
error in process filter: url-http-generic-filter: Wrong type argument: number-or-marker-p, nil
error in process filter: Wrong type argument: number-or-marker-p, nil
HTTP/0.9 How I hate thee!
error in process filter: url-http-generic-filter: Wrong type argument: number-or-marker-p, nil
error in process filter: Wrong type argument: number-or-marker-p, nil
byte-code: Beginning of buffer [3 times]
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...
Quit
read-buffer-to-switch: Command attempted to use minibuffer while in minibuffer
posn-set-point: Position not in text area of window
Saved text from "Debugger entered--Lisp error: (wrong-typ"

-------------------

My backtrace is (sorry about the yucky paste):

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  url-http-wait-for-headers-change-function(1 3 2)
  url-http-generic-filter(#<process bazaar.launchpad.net> "
\n")
  accept-process-output(#<process bazaar.launchpad.net>)
  byte-code("\302\303 !)\207" [inhibit-quit proc nil accept-process-output] 2)
  url-retrieve-synchronously("http://bazaar.launchpad.net/~nxhtml/nxhtml/main/download/lennart.borgman%40gmail.com-20110313013000-drl16yyp60auegw9/autostart.el-20080724174035-zgon4j679232cch3-2/autostart.el")
  (let ((buffer ...) (handle nil) (ret nil)) (if (not buffer) (error "Retrieving url %s gave no buffer" url)) (with-current-buffer buffer (if ... ... ... ... ... ... ...)) ret)
  web-vcs-url-copy-file("http://bazaar.launchpad.net/~nxht...

Nick (nraphael1999) wrote :
Download full text (4.7 KiB)

P.S. Here is my init.el

(setq load-path (cons "~/.xemacs/tnt-2.6" (cons "~/.emacs.d" (cons "~/.emacs.d/tsgates-git-emacs-799d9a8" load-path))))

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 '(comint-input-ring-file-name "(concat \"d:/My Documents/.history/\" (format-time-string \"%Y%m%d\") \".hist\")")
 '(cygwin-mount-cygwin-bin-directory "d:/cygwin/bin")
 '(desktop-save-mode t)
 '(ediff-cmp-program "d:/cygwin/usr/bin/cmp")
 '(ediff-custom-diff-program "")
 '(ediff-diff-program "d:/cygwin/usr/bin/diff")
 '(explicit-shell-file-name "d:\\cygwin\\bin\\bash.exe")
 '(gitk-program "/usr/bin/gitk")
 '(tramp-default-method "scp")
 '(tramp-encoding-command-switch "-c")
 '(tramp-encoding-shell "d:/cygwin/usr/bin/bash.exe"))
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
 )

;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Initial setup
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;; This assumes that Cygwin is installed in C:\cygwin (the
;; default) and that C:\cygwin\bin is not already in your
;; Windows Path (it generally should not be).

(setq exec-path (cons "D:/cygwin/bin" exec-path))
(setenv "PATH" (concat "D:\\cygwin\\bin;" (getenv "PATH")))

;; LOGNAME and USER are expected in many Emacs packages
;; Check these environment variables.

(if (and (null (getenv "USER"))
  ;; Windows includes variable USERNAME, which is copied to
  ;; LOGNAME and USER respectively.
  (getenv "USERNAME"))
    (setenv "USER" (getenv "USERNAME")))

(if (and (getenv "LOGNAME")
  ;; Bash shell defines only LOGNAME
  (null (getenv "USER")))
    (setenv "USER" (getenv "LOGNAME")))

(if (and (getenv "USER")
  (null (getenv "LOGNAME")))
    (setenv "LOGNAME" (getenv "USER")))

;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; (A) M-x shell: This change M-x shell permanently
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;; Would call Windows command interpreter. Change it.

(setq shell-file-name "bash")
(setenv "SHELL" shell-file-name)
(setq explicit-shell-file-name shell-file-name)

;; Remove C-m (^M) characters that appear in output

(add-hook 'comint-output-filter-functions
   'comint-strip-ctrl-m)

;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; (B) *OR* call following function with M-x my-bash
;; The M-x shell would continue to run standard Windows shell
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(defun my-bash (&optional buffer)
  "Run Cygwin Bash shell in optional BUFFER; default *shell-bash*."
  (autoload 'comint-check-proc "comint")
  (interactive
   (let ((name "*shell-bash*"))
     (if current-prefix-arg
  (setq name (read-string
       (format "Cygwin shell buffer (default %s): " name)
       (not 'initial-input)
       (not 'history)
       name)))
     (list n...

Read more...

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers