Re: error in process filter: Stack overflow in regexp matcher

2018-12-24 Thread Justin Smith
This isn't a clojure issue.

A reference to "process filter" indicates this is an emacs problem. Its
regex syntax matcher tends to blow up on long lines.

On Mon, Dec 24, 2018, 14:57 Andy Fingerhut  wrote:

> I would recommend trying to temporarily rename ~/.lein/profiles.clj to a
> different name, so that there is no such file with that name any more, and
> try your file-seq expression again to see if it behaves any differently.
>
> Andy
>
> On Mon, Dec 24, 2018 at 1:38 PM nenad mitrovic 
> wrote:
>
>> Sorry, here is profiles.clj
>>
>> {:user
>>   {
>>   :java-cmd "C:\\Program Files\\Java\\jdk1.8.0_111\\bin\\java.exe"
>>   :plugins [
>>
>> [cider/cider-nrepl "0.8.1"]
>> [luminus/lein-template "2.9.9.2"]
>>
>> ]
>>}
>>  }
>>
>> On Monday, December 24, 2018 at 10:12:04 PM UTC+1, nenad mitrovic 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.
>>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clojure@googlegroups.com
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: error in process filter: Stack overflow in regexp matcher

2018-12-24 Thread Andy Fingerhut
I would recommend trying to temporarily rename ~/.lein/profiles.clj to a
different name, so that there is no such file with that name any more, and
try your file-seq expression again to see if it behaves any differently.

Andy

On Mon, Dec 24, 2018 at 1:38 PM nenad mitrovic 
wrote:

> Sorry, here is profiles.clj
>
> {:user
>   {
>   :java-cmd "C:\\Program Files\\Java\\jdk1.8.0_111\\bin\\java.exe"
>   :plugins [
>
> [cider/cider-nrepl "0.8.1"]
> [luminus/lein-template "2.9.9.2"]
>
> ]
>}
>  }
>
> On Monday, December 24, 2018 at 10:12:04 PM UTC+1, nenad mitrovic 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.
>>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: error in process filter: Stack overflow in regexp matcher

2018-12-24 Thread nenad mitrovic
windows 8.1, java 1.8.0_191, clojure 1.8.0


profiles.clj contains the following content:

{:profiles/dev  {:env {:database-url 
"jdbc:postgresql://localhost/spam_filter_dev?user=db_user_name_here&password=db_user_password_here"}}
 :profiles/test {:env {:database-url 
"jdbc:postgresql://localhost/spam_filter_test?user=db_user_name_here&password=db_user_password_here"}}}

and here is project.clj

(defproject spam-filter "0.1.0-SNAPSHOT"



  :description "FIXME: write description"

  :url "http://example.com/FIXME";



  :dependencies [[org.clojure/clojure "1.8.0"]

 [selmer "1.0.0"]

 [markdown-clj "0.9.85"]

 [luminus/config "0.5"]

 [ring-middleware-format "0.7.0"]

 [metosin/ring-http-response "0.6.5"]

 [bouncer "1.0.0"]

 [org.webjars/bootstrap "4.0.0-alpha.2"]

 [org.webjars/font-awesome "4.5.0"]

 [org.webjars.bower/tether "1.1.1"]

 [org.webjars/jquery "2.2.0"]

 [org.clojure/tools.logging "0.3.1"]

 [com.taoensso/tower "3.0.2"]

 [compojure "1.4.0"]

 [ring-webjars "0.1.1"]

 [ring/ring-defaults "0.1.5"]

 [ring "1.4.0" :exclusions [ring/ring-jetty-adapter]]

 [mount "0.1.8"]

 [luminus-nrepl "0.1.2"]

 [migratus "0.8.9"]
 [conman "0.3.0"]
 [org.postgresql/postgresql "9.4-1206-jdbc4"]
 [org.webjars/webjars-locator-jboss-vfs "0.1.0"]
 [luminus-immutant "0.1.0"]
 [luminus-log4j "0.1.2"]]



  :min-lein-version "2.0.0"

  :uberjar-name "spam-filter.jar"

  :jvm-opts ["-server"]

  :source-paths ["src/clj"]

  :resource-paths ["resources"]



  :main spam-filter.core

  :migratus {:store :database}



  :plugins [[lein-environ "1.0.1"]

[migratus-lein "0.2.1"]]

  :profiles

  {:uberjar {:omit-source true

 :env {:production true}

 :aot :all

 :source-paths ["env/prod/clj"]

 :resource-paths ["env/prod/resources"]}

   :dev   [:project/dev :profiles/dev]

   :test  [:project/test :profiles/test]

   :project/dev  {:dependencies [[prone "1.0.1"]

 [ring/ring-mock "0.3.0"]

 [ring/ring-devel "1.4.0"]

 [pjstadig/humane-test-output "0.7.1"]

 [mvxcvi/puget "1.0.0"]]

  

  

  :source-paths ["env/dev/clj" "test/clj"]

  :resource-paths ["env/dev/resources"]

  :repl-options {:init-ns user}

  :injections [(require 'pjstadig.humane-test-output)

   (pjstadig.humane-test-output/activate!)]

  ;;when :nrepl-port is set the application starts the 
nREPL server on load

  :env {:devtrue

:port   3000

:nrepl-port 7000}}

   :project/test {:env {:test   true

:port   3001

:nrepl-port 7001}}

   :profiles/dev {}

   :profiles/test {}})


On Monday, December 24, 2018 at 10:12:04 PM UTC+1, nenad mitrovic 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.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: error in process filter: Stack overflow in regexp matcher

2018-12-24 Thread nenad mitrovic
Sorry, here is profiles.clj

{:user
  {
  :java-cmd "C:\\Program Files\\Java\\jdk1.8.0_111\\bin\\java.exe"
  :plugins [
  
[cider/cider-nrepl "0.8.1"]
[luminus/lein-template "2.9.9.2"]

]
   }
 }

On Monday, December 24, 2018 at 10:12:04 PM UTC+1, nenad mitrovic 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.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: error in process filter: Stack overflow in regexp matcher

2018-12-24 Thread Andy Fingerhut
I have just tried to reproduce a similar case on a system running Mac OS X
10.13.6, Oracle/Apple Java 1.8.0_192, Clojure 1.9.0, and Leiningen 2.8.3,
and a directory containing 1400 files.  I did not see the error you did.

What versions of OS, Java, Clojure, and anything on top of Clojure (e.g.
Leiningen) are you using?

If you are using Leiningen, what is the contents of your
~/.lein/profiles.clj and project.clj files, if any?  Some add-on plugins
that modify what is shown in the REPL, e.g. that auto-pretty-print results,
can have errors parsing some input, or printing some output, even if
Clojure by itself has no problems.  If you can reproduce your problem using
a `clj` command line that avoids using Leiningen, for example, that would
help determine whether it is caused by something in your Leiningen setup,
vs. elsewhere.

Andy

On Mon, Dec 24, 2018 at 1:12 PM nenad mitrovic 
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.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


error in process filter: Stack overflow in regexp matcher

2018-12-24 Thread nenad mitrovic
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.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ANN] Java 11 based Docker images for Clojure now available

2018-12-24 Thread stardiviner


I have an off-topic question, How can I use Clojure Docker container binary for 
Emacs CIDER? I want to try it in Emacs CIDER.

-- 
[ stardiviner ]
   I try to make every word tell the meaning what I want to express.

   Blog: https://stardiviner.github.io/
   IRC(freenode): stardiviner, Matrix: stardiviner
   GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
  

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Exception: clojure.lang.ExceptionInfo thrown from the UncaughtExceptionHandler in thread "main"

2018-12-24 Thread Sean Corfield
Did you change your ~/.lein/profiles.clj file? That’s the most common cause of 
mysterious startup failures with Leiningen it seems. Try removing/renaming that 
file and see if your problems go away.

If you have more of the stacktrace to share (via pastebin or a gist etc), that 
might help folks offer suggestions.

Sean Corfield -- (970) FOR-SEAN -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood


From: clojure@googlegroups.com  on behalf of 
lawrence.krub...@gmail.com 
Sent: Monday, December 24, 2018 8:39:11 AM
To: Clojure
Subject: Exception: clojure.lang.ExceptionInfo thrown from the 
UncaughtExceptionHandler in thread "main"

I'm not sure what I did, but suddenly I'm getting this:

Exception: clojure.lang.ExceptionInfo thrown from the UncaughtExceptionHandler 
in thread "main"

Exception: clojure.lang.ExceptionInfo thrown from the UncaughtExceptionHandler 
in thread "Thread-0"

I had been using println to do some debugging, but then I added :

 [com.taoensso/timbre "4.10.0"]

I think that is the last think I did. Then I did:

lein uberjar

And then I tried to run that from the command line.

I've added a bunch of logging to try to get a stacktrace, but none of this is 
working so far:

(defn -main [& args]

  (slingshot/try+

   ;; 2017-10-04 -- see this:
   ;; 
https://stackoverflow.com/questions/28908835/ssl-peer-shut-down-incorrectly-in-java
   (System/setProperty "https.protocols" "TLSv1.1")

   (.addShutdownHook (Runtime/getRuntime)
 (Thread.
  #(do (error "addShutdownHook triggered. This app is 
shutting down.")
   (stop

   ;; 2017-07-12 -- stealing code from here:
   ;; https://stuartsierra.com/2015/05/27/clojure-uncaught-exceptions
   ;; Assuming require [clojure.tools.logging :as log]
   (Thread/setDefaultUncaughtExceptionHandler
(reify Thread$UncaughtExceptionHandler
  (uncaughtException [_ thread ex]
(log "the app has died ")
(log ex)
(log "Uncaught background exception on thread " (.getName thread) " 
Caught by Thread/setDefaultUncaughtExceptionHandler in core/main.")
(System/exit 1

   (slingshot/try+
(start)
(catch Exception e
  (stack/parse-exception e)
  (log (str e))
  (log "the app has died!")
  (System/exit 1))
(catch Throwable t
  (log t)
  (log "the app has died!")
  (System/exit 1))
(catch Object o
  (log o)
  (log "the app has died!")
  (System/exit 1)


And yet all I get is:

Exception: clojure.lang.ExceptionInfo thrown from the UncaughtExceptionHandler 
in thread "main"

Exception: clojure.lang.ExceptionInfo thrown from the UncaughtExceptionHandler 
in thread "Thread-0"

Somehow the other lines that I try to print never get called. Nor my call to my 
log function which should give me a stacktrace.

What is the obvious thing to do here?







--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Exception: clojure.lang.ExceptionInfo thrown from the UncaughtExceptionHandler in thread "main"

2018-12-24 Thread lawrence . krubner
I'm not sure what I did, but suddenly I'm getting this:

Exception: clojure.lang.ExceptionInfo thrown from the 
UncaughtExceptionHandler in thread "main"

Exception: clojure.lang.ExceptionInfo thrown from the 
UncaughtExceptionHandler in thread "Thread-0"

I had been using println to do some debugging, but then I added :

 [com.taoensso/timbre "4.10.0"]

I think that is the last think I did. Then I did: 

lein uberjar

And then I tried to run that from the command line. 

I've added a bunch of logging to try to get a stacktrace, but none of this 
is working so far: 

(defn -main [& args]

  (slingshot/try+

   ;; 2017-10-04 -- see this:
   ;; 
https://stackoverflow.com/questions/28908835/ssl-peer-shut-down-incorrectly-in-java
   (System/setProperty "https.protocols" "TLSv1.1")
   
   (.addShutdownHook (Runtime/getRuntime)
 (Thread.
  #(do (error "addShutdownHook triggered. This app is 
shutting down.")
   (stop

   ;; 2017-07-12 -- stealing code from here:
   ;; https://stuartsierra.com/2015/05/27/clojure-uncaught-exceptions
   ;; Assuming require [clojure.tools.logging :as log]
   (Thread/setDefaultUncaughtExceptionHandler
(reify Thread$UncaughtExceptionHandler
  (uncaughtException [_ thread ex]
(log "the app has died ")
(log ex)
(log "Uncaught background exception on thread " (.getName thread) " 
Caught by Thread/setDefaultUncaughtExceptionHandler in core/main.")
(System/exit 1

   (slingshot/try+
(start)
(catch Exception e
  (stack/parse-exception e)
  (log (str e))
  (log "the app has died!")
  (System/exit 1))
(catch Throwable t
  (log t)
  (log "the app has died!")
  (System/exit 1))
(catch Object o
  (log o)
  (log "the app has died!")
  (System/exit 1)


And yet all I get is:

Exception: clojure.lang.ExceptionInfo thrown from the 
UncaughtExceptionHandler in thread "main"

Exception: clojure.lang.ExceptionInfo thrown from the 
UncaughtExceptionHandler in thread "Thread-0"

Somehow the other lines that I try to print never get called. Nor my call 
to my log function which should give me a stacktrace. 

What is the obvious thing to do here?






-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.