Using today's trunk and the simplest possible Python file (no shebang),
------
a = 3
-----
I now get:
Debugger entered--Lisp error: (wrong-type-argument stringp nil) set-buffer(nil) (save-excursion (set-buffer buf) (goto-char (point-max)) (forward-line -1) (end-of-line) (save-excursion (if (re-search-backward py-shell-prompt-regexp nil t 1) (progn (and (re-search-forward "File \"<stdin>\", line 1,.*\n" nil t) (replace-match "")) (if (and (re-search-forward py-traceback-line-re limit t) (or (match-string 1) (match-string 3))) (progn (if (match-string-no-properties 1) (progn ... ... ... ... ...)) (add-to-list (quote err-p) line) (add-to-list (quote err-p) file) (overlay-put (make-overlay ... ...) (quote face) (quote highlight)) (forward-line 1) (if (looking-at "[ ]*\\([^ \n \f]+\\)[ ]*$") (progn ... ... ... ... ...)))) err-p)))) (let (line file bol err-p estring ecode limit) (save-excursion (set-buffer buf) (goto-char (point-max)) (forward-line -1) (end-of-line) (save-excursion (if (re-search-backward py-shell-prompt-regexp nil t 1) (progn (and (re-search-forward "File \"<stdin>\", line 1,.*\n" nil t) (replace-match "")) (if (and (re-search-forward py-traceback-line-re limit t) (or ... ...)) (progn (if ... ...) (add-to-list ... line) (add-to-list ... file) (overlay-put ... ... ...) (forward-line 1) (if ... ...))) err-p))))) py-postprocess-output-buffer(nil) (setq err-p (py-postprocess-output-buffer py-buffer-name)) (progn (setq erg (py-execute-file-base nil file nil nil (or (and (boundp (quote py-orig-buffer-or-file)) py-orig-buffer-or-file) file))) (sit-for 0.1) (setq err-p (py-postprocess-output-buffer py-buffer-name)) (if py-enforce-output-buffer-p (progn (set-buffer (get-buffer-create py-output-buffer)) (erase-buffer) (insert erg) (py-shell-manage-windows py-output-buffer nil windows-config err-p)) (py-shell-manage-windows py-buffer-name nil windows-config err-p)) (if py-verbose-p (progn (message "Output buffer: %s" py-buffer-name))) (sit-for 0.1)) (if (file-readable-p file) (progn (setq erg (py-execute-file-base nil file nil nil (or (and (boundp (quote py-orig-buffer-or-file)) py-orig-buffer-or-file) file))) (sit-for 0.1) (setq err-p (py-postprocess-output-buffer py-buffer-name)) (if py-enforce-output-buffer-p (progn (set-buffer (get-buffer-create py-output-buffer)) (erase-buffer) (insert erg) (py-shell-manage-windows py-output-buffer nil windows-config err-p)) (py-shell-manage-windows py-buffer-name nil windows-config err-p)) (if py-verbose-p (progn (message "Output buffer: %s" py-buffer-name))) (sit-for 0.1)) (message "%s not readable. %s" file "Do you have write permissions?")) (let ((windows-config (window-configuration-to-register 313465889)) erg err-p) (if (file-readable-p file) (progn (setq erg (py-execute-file-base nil file nil nil (or (and (boundp ...) py-orig-buffer-or-file) file))) (sit-for 0.1) (setq err-p (py-postprocess-output-buffer py-buffer-name)) (if py-enforce-output-buffer-p (progn (set-buffer (get-buffer-create py-output-buffer)) (erase-buffer) (insert erg) (py-shell-manage-windows py-output-buffer nil windows-config err-p)) (py-shell-manage-windows py-buffer-name nil windows-config err-p)) (if py-verbose-p (progn (message "Output buffer: %s" py-buffer-name))) (sit-for 0.1)) (message "%s not readable. %s" file "Do you have write permissions?"))) py-execute-file("/Users/stanton/projects/ESOest/test2.py") (if file (py-execute-file file) (py-execute-region beg end)) (let* ((py-master-file (or py-master-file (py-fetch-py-master-file))) (file (if py-master-file (expand-file-name py-master-file) (buffer-file-name))) (beg (point-min)) (end (point-max))) (if file (py-execute-file file) (py-execute-region beg end))) py-execute-buffer-base() py-execute-buffer() call-interactively(py-execute-buffer nil nil)
Using today's trunk and the simplest possible Python file (no shebang),
------
a = 3
-----
I now get:
Debugger entered--Lisp error: (wrong- type-argument stringp nil) prompt- regexp nil t 1) (progn (and (re-search-forward "File \"<stdin>\", line 1,.*\n" nil t) (replace-match "")) (if (and (re-search-forward py-traceback- line-re limit t) (or (match-string 1) (match-string 3))) (progn (if (match- string- no-properties 1) (progn ... ... ... ... ...)) (add-to-list (quote err-p) line) (add-to-list (quote err-p) file) (overlay-put (make-overlay ... ...) (quote face) (quote highlight)) (forward-line 1) (if (looking-at "[ ]*\\([^ \n prompt- regexp nil t 1) (progn (and (re-search-forward "File \"<stdin>\", line 1,.*\n" nil t) (replace-match "")) (if (and (re-search-forward py-traceback- line-re limit t) (or ... ...)) (progn (if ... ...) (add-to-list ... line) (add-to-list ... file) (overlay-put ... ... ...) (forward-line 1) (if ... ...))) err-p))))) s-output- buffer( nil) -output- buffer py-buffer-name)) file-base nil file nil nil (or (and (boundp (quote py-orig- buffer- or-file) ) py-orig- buffer- or-file) file))) (sit-for 0.1) (setq err-p (py-postprocess -output- buffer py-buffer-name)) (if py-enforce- output- buffer- p (progn (set-buffer (get-buffer-create py-output-buffer)) (erase-buffer) (insert erg) (py-shell- manage- windows py-output-buffer nil windows-config err-p)) (py-shell- manage- windows py-buffer-name nil windows-config err-p)) (if py-verbose-p (progn (message "Output buffer: %s" py-buffer-name))) (sit-for 0.1)) file-base nil file nil nil (or (and (boundp (quote py-orig- buffer- or-file) ) py-orig- buffer- or-file) file))) (sit-for 0.1) (setq err-p (py-postprocess -output- buffer py-buffer-name)) (if py-enforce- output- buffer- p (progn (set-buffer (get-buffer-create py-output-buffer)) (erase-buffer) (insert erg) (py-shell- manage- windows py-output-buffer nil windows-config err-p)) (py-shell- manage- windows py-buffer-name nil windows-config err-p)) (if py-verbose-p (progn (message "Output buffer: %s" py-buffer-name))) (sit-for 0.1)) (message "%s not readable. %s" file "Do you have write permissions?")) configuration- to-register 313465889)) erg err-p) (if (file-readable-p file) (progn (setq erg (py-execute- file-base nil file nil nil (or (and (boundp ...) py-orig- buffer- or-file) file))) (sit-for 0.1) (setq err-p (py-postprocess -output- buffer py-buffer-name)) (if py-enforce- output- buffer- p (progn (set-buffer (get-buffer-create py-output-buffer)) (erase-buffer) (insert erg) (py-shell- manage- windows py-output-buffer nil windows-config err-p)) (py-shell- manage- windows py-buffer-name nil windows-config err-p)) (if py-verbose-p (progn (message "Output buffer: %s" py-buffer-name))) (sit-for 0.1)) (message "%s not readable. %s" file "Do you have write permissions?"))) file("/ Users/stanton/ projects/ ESOest/ test2.py" ) py-master- file))) (file (if py-master-file (expand-file-name py-master-file) (buffer- file-name) )) (beg (point-min)) (end (point-max))) (if file (py-execute-file file) (py-execute-region beg end))) buffer- base() buffer( ) interactively( py-execute- buffer nil nil)
set-buffer(nil)
(save-excursion (set-buffer buf) (goto-char (point-max)) (forward-line -1) (end-of-line) (save-excursion (if (re-search-backward py-shell-
\f]+\\)[ ]*$") (progn ... ... ... ... ...)))) err-p))))
(let (line file bol err-p estring ecode limit) (save-excursion (set-buffer buf) (goto-char (point-max)) (forward-line -1) (end-of-line) (save-excursion (if (re-search-backward py-shell-
py-postproces
(setq err-p (py-postprocess
(progn (setq erg (py-execute-
(if (file-readable-p file) (progn (setq erg (py-execute-
(let ((windows-config (window-
py-execute-
(if file (py-execute-file file) (py-execute-region beg end))
(let* ((py-master-file (or py-master-file (py-fetch-
py-execute-
py-execute-
call-