Add more debug statements

This commit is contained in:
Nathaniel Nicandro 2018-05-13 11:10:14 -05:00
parent b49d138fdb
commit c0e4383c49
2 changed files with 9 additions and 1 deletions

View file

@ -527,17 +527,24 @@ by `jupyter--ioloop'."
(jupyter-queue-message channel (cons idents msg))
(run-with-timer 0.0001 nil #'jupyter-handle-message client channel))))
(`(start-channel ,ctype)
(when jupyter--debug
(message "STARTING-CHANNEL: %s" ctype))
(let ((channel (jupyter--get-channel client ctype)))
(oset channel status 'running)))
(`(stop-channel ,ctype)
(when jupyter--debug
(message "STOPPING-CHANNEL: %s" ctype))
(let ((channel (jupyter--get-channel client ctype)))
(oset channel status 'stopped)))
('(start)
(when jupyter--debug
(message "CLIENT STARTING"))
;; TODO: Generalize setting flag variables for IOLoop events and having
;; event callbacks.
(process-put (oref client ioloop) :start t))
('(quit)
;; Cleanup handled in sentinel
(process-put (oref client ioloop) :quit t)
(when jupyter--debug
(message "CLIENT CLOSED")))))

View file

@ -1225,7 +1225,8 @@ execute the current cell."
:code (jupyter-repl-cell-code)))
jupyter-repl-maximum-is-complete-timeout)))
(unless res
(message "Kernel did not respond to is-complete-request, using built-in is-complete")
(message "Kernel did not respond to is-complete-request, using built-in is-complete.
Reset `jupyter-repl-use-builtin-is-complete' to nil if this is only temporary.")
(setq-local jupyter-repl-use-builtin-is-complete t)
(jupyter-repl-ret force)))
(goto-char (point-max))