Error in process filter #2

Open
mchampine opened this Issue Jul 2, 2012 · 7 comments

Projects

None yet

3 participants

@mchampine

If I run M-x 4clojure-problem and supply a problem #, I get "error in process filter: End of buffer". GNU Emacs version 22.3.1. Json version 1.2. This occurs whether or not I'm in slime or not, in a clojure-mode buffer or not.

@dcluna
Owner
dcluna commented Jul 2, 2012

Could you please run the following commands:

(4clj-get-problem 1 '4clj-parse-problem)

(make-4clj-buffer "test")

In your scratch buffer? Which one of them returns an error?

@mchampine

The command

(4clj-get-problem 1 '4clj-parse-problem)

returns the error. Is there anything I can do to get a debug trace that
will help?

Thanks,

M.

On Mon, Jul 2, 2012 at 3:24 PM, dcluna <
reply@reply.github.com

wrote:

Could you please run the following commands:

(4clj-get-problem 1 '4clj-parse-problem)

(make-4clj-buffer "test")

In your scratch buffer? Which one of them returns an error?


Reply to this email directly or view it on GitHub:
#2 (comment)

@dcluna
Owner
dcluna commented Jul 2, 2012
(let ((debug-on-error t))
  (4clj-get-problem 1 '4clj-parse-problem))

should do.

Also, can you show the contents of the "http www.4clojure.com" buffer?

@mchampine

I just tried this on a different system (emacs 24) and it works fine. Must
be something flaky about the other one. I did try debug-on-error but it
just jumps into the debugger as before and I can't pinpoint the error. I
never get a buffer loaded from the GET request that I could see.

I won't be able to work on this for a while (going out of town), so let's
assume the problem is with my unusual setup. Hopefully I it's just me!

Thank you for trying to help me sort it out. Fun tool.

M.

On Mon, Jul 2, 2012 at 8:51 PM, dcluna <
reply@reply.github.com

wrote:

(let ((debug-on-error t))
  (4clj-get-problem 1 '4clj-parse-problem))

should do.

Also, can you show the contents of the "http www.4clojure.com" buffer?


Reply to this email directly or view it on GitHub:
#2 (comment)

@cannyboy

I'm getting the same issue. "error in process filter: End of buffer" after I've entered problem number.

Emacs 24.2 on mac. With Emacs Live - https://github.com/overtone/emacs-live ..

(4clj-get-problem 1 '4clj-parse-problem)
#<buffer *http www.4clojure.com:80*<51>> 
error in process filter: End of buffer


(make-4clj-buffer "test")  
nil


(let ((debug-on-error t))
   (4clj-get-problem 1 '4clj-parse-problem))
#<buffer  *http www.4clojure.com:80*<55>> 
@dcluna
Owner
dcluna commented Feb 10, 2013

Can you provide a stacktrace? I've installed emacs-live here, but I was not
able to reproduce the problem.

On Sun, Feb 10, 2013 at 12:00 PM, cannyboy notifications@github.com wrote:

I'm getting the same issue. "error in process filter: End of buffer" after
I've entered problem number.

Emacs 24.2 on mac. With Emacs Live -
https://github.com/overtone/emacs-live ..

(4clj-get-problem 1 '4clj-parse-problem)
#<buffer http www.4clojure.com:80<51>>
error in process filter: End of buffer

(make-4clj-buffer "test")
nil

(let ((debug-on-error t))
(4clj-get-problem 1 '4clj-parse-problem))
#<buffer http www.4clojure.com:80<55>>


Reply to this email directly or view it on GitHubhttps://github.com/dcluna/4clj-el/issues/2#issuecomment-13350147..

Daniel Luna (Belém)
Engenheiro de Computação - USP São Carlos

"If you can fill the unforgiving minute
With sixty seconds' worth of distance run,
Yours is the Earth and everything that's in it,
And - which is more - you'll be a Man, my son!"

@cannyboy

Sorry, I'm not sure how to do a stacktrace in emacs. Anyway, I got in working.

It's true that I could have got it working by following the instructions by the letter... by adding code to init.el in .emacs.d

(add-to-list 'load-path "~/.emacs.d/4clj-el/")
(require 'four-clj)

.. and then I putting four-el.clj in the 4clj-el folder.

However, my issue is that Emacs Live has a method to install extra stuff, so that it doesn't mess with the original (which means I can also pull the latest version without worrying about customisations). The installer creates a folder for the additional stuff (see lines 170-177 in this: https://github.com/overtone/emacs-live/blob/master/installer/install-emacs-live.sh ).

For future reference, in order to get it working, I put

 (live-load-config-file "four-clj.el")

in the init.el in the .live-packs folder, and put the four-clj.el file in the config folder.

Thanks for the 4clojure file!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment