Skip to content
Browse files

HACK: Make windows not barf out vestigial stacktrace on irb/readline …

…init
  • Loading branch information...
1 parent 1240ff7 commit a3763d8e1c2d11da4ea5461bfd53b5a92106d6a3 @enebo enebo committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/org/jruby/Ruby.java
View
5 src/org/jruby/Ruby.java
@@ -1137,7 +1137,10 @@ private void init() {
loadService = config.createLoadService(this);
posix = POSIXFactory.getPOSIX(new JRubyPOSIXHandler(this), config.isNativeEnabled());
javaSupport = new JavaSupport(this);
-
+
+ // HACK HACK HACK (jansi (part of jline) + classloader + windows == stacktrace barf)
+ if (Platform.IS_WINDOWS) System.setProperty("jline.terminal", "none");
+
executor = new ThreadPoolExecutor(
RubyInstanceConfig.POOL_MIN,
RubyInstanceConfig.POOL_MAX,

0 comments on commit a3763d8

Please sign in to comment.
Something went wrong with that request. Please try again.