* error in process filter: Stack overflow in regexp matcher
@ 2018-12-24 21:17 nenadmitrovic04
2018-12-25 11:08 ` tomas
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: nenadmitrovic04 @ 2018-12-24 21:17 UTC (permalink / raw)
To: help-gnu-emacs
I am trying to execute this piece of code:
(rest (file-seq (file (str "corpus/" "ham"))).
When I execute I get this error: "error in process filter: Stack overflow in regexp matcher".
I have 1400 files in corpus/ham folder. But when I execute only three file it works.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: error in process filter: Stack overflow in regexp matcher
2018-12-24 21:17 error in process filter: Stack overflow in regexp matcher nenadmitrovic04
@ 2018-12-25 11:08 ` tomas
2018-12-26 17:53 ` Stefan Monnier
2018-12-28 16:02 ` Gene
2 siblings, 0 replies; 6+ messages in thread
From: tomas @ 2018-12-25 11:08 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 969 bytes --]
On Mon, Dec 24, 2018 at 01:17:42PM -0800, nenadmitrovic04@gmail.com wrote:
> I am trying to execute this piece of code:
> (rest (file-seq (file (str "corpus/" "ham"))).
To be able to help, people here would need at least
- a clue on what `file-seq' does (it doesn't seem to be in
the "standard" set of functions
- an idea about the regular expression you are applying
> When I execute I get this error: "error in process filter: Stack overflow in regexp matcher".
> I have 1400 files in corpus/ham folder. But when I execute only three file it works.
As a very uneducated guess: file-seq concatenates the content of those
1400 files, and the regexp is anchored in some way that it can't let
go partial matches anchored at the beginning of this huge text. Or
something similar.
Perhaps you'll have to break up the problem into smaller pieces, but it's
difficult to say without having an idea of what "the problem" is.
Cheers
-- tomás
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: error in process filter: Stack overflow in regexp matcher
2018-12-24 21:17 error in process filter: Stack overflow in regexp matcher nenadmitrovic04
2018-12-25 11:08 ` tomas
@ 2018-12-26 17:53 ` Stefan Monnier
2018-12-26 18:18 ` John Shahid
2018-12-26 18:29 ` Kevin J. McCarthy
2018-12-28 16:02 ` Gene
2 siblings, 2 replies; 6+ messages in thread
From: Stefan Monnier @ 2018-12-26 17:53 UTC (permalink / raw)
To: help-gnu-emacs
> I am trying to execute this piece of code:
> (rest (file-seq (file (str "corpus/" "ham"))).
I can't find any `file-seq` in Emacs's source code. So you seem to be
using some external library. Would be useful to give that kind
of information.
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: error in process filter: Stack overflow in regexp matcher
2018-12-24 21:17 error in process filter: Stack overflow in regexp matcher nenadmitrovic04
2018-12-25 11:08 ` tomas
2018-12-26 17:53 ` Stefan Monnier
@ 2018-12-28 16:02 ` Gene
2 siblings, 0 replies; 6+ messages in thread
From: Gene @ 2018-12-28 16:02 UTC (permalink / raw)
To: help-gnu-emacs
On Monday, December 24, 2018 at 4:17:44 PM UTC-5, nenadmi...@gmail.com wrote:
> I am trying to execute this piece of code:
> (rest (file-seq (file (str "corpus/" "ham"))).
> When I execute I get this error: "error in process filter: Stack overflow in regexp matcher".
> I have 1400 files in corpus/ham folder. But when I execute only three file it works.
At first the `str' -- not being `concat' -- led me to beleive that your sexp might be autolisp or visual lisp.
Further research leads me to believe it may be clojure.
If so, you can place your code in an org-mode file and wrap
#+begin_src clojure
(rest
(file-seq
(file
(str "corpus/" "ham")
)))
#+end_src
;;^-- note may not be accurate, but was presented as a gist representation of
;; the form
There is at least one clojure REPL available for use in emacs as well.
Best of luck in your debugging attempts.
Gene
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-12-28 16:02 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-24 21:17 error in process filter: Stack overflow in regexp matcher nenadmitrovic04
2018-12-25 11:08 ` tomas
2018-12-26 17:53 ` Stefan Monnier
2018-12-26 18:18 ` John Shahid
2018-12-26 18:29 ` Kevin J. McCarthy
2018-12-28 16:02 ` Gene
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).