Skip to content

Instantly share code, notes, and snippets.

@cshupp1
Created January 29, 2018 17:31
Show Gist options
  • Save cshupp1/7916b7027d0163a6b7d8ec32643743bf to your computer and use it in GitHub Desktop.
Save cshupp1/7916b7027d0163a6b7d8ec32643743bf to your computer and use it in GitHub Desktop.
building improve_windows_open3
C:\work\jruby\jruby>git show
commit f58ddad8040453486537c56690a102e6b9c71524
Author: Charles Oliver Nutter <headius@headius.com>
Date: Thu Jan 11 10:55:42 2018 -0600
Restructure Windows monkey patch for Open3. #4943
diff --git a/core/src/main/java/org/jruby/RubyIO.java b/core/src/main/java/org/jruby/RubyIO.java
index 169176a..593bf68 100644
--- a/core/src/main/java/org/jruby/RubyIO.java
+++ b/core/src/main/java/org/jruby/RubyIO.java
@@ -42,6 +42,7 @@ import jnr.enxio.channels.NativeSelectableChannel;
import jnr.posix.POSIX;
import org.jcodings.transcode.EConvFlags;
C:\work\jruby\jruby>mvn clean package
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=12288M; support was removed in 8.0
[INFO] Scanning for projects...
SyntaxError: C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/net/http.rb:1070: syntax error, unexpected tDOT
proxy_uri&.hostname
require at org/jruby/RubyKernel.java:937
(root) at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
<top> at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
require at org/jruby/RubyKernel.java:937
(root) at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/request.rb:2
<top> at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
require at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
(root) at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/jars/maven_settings.rb:1
(root) at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/jar_dependencies.rb:1
maven_local_settings at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/jar_dependencies.rb:162
block in local_maven_repo at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/jar_dependencies.rb:178
home at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/jar_dependencies.rb:186
do_require at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/jar_dependencies.rb:333
require_jar at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/jar_dependencies.rb:255
<top> at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/jar_dependencies.rb:297
require at org/jruby/RubyKernel.java:937
require_jar at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/jar_dependencies.rb:254
<top> at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/jar_dependencies.rb:357
require at org/jruby/RubyKernel.java:937
(root) at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/psych_jars.rb:5
<top> at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
require at org/jruby/RubyKernel.java:937
require at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
<top> at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/psych.rb:5
require at org/jruby/RubyKernel.java:937
(root) at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
<top> at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
require at org/jruby/RubyKernel.java:937
(root) at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/yaml.rb:6
<top> at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
require at org/jruby/RubyKernel.java:937
require at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
<top> at uri:classloader:/maven/tools/dsl/jarfile_lock.rb:22
require at org/jruby/RubyKernel.java:937
(root) at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
<top> at C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
[ERROR] Internal error: org.jruby.embed.EvalFailedException: (SyntaxError) C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/net/http.rb:1070: syntax error, unexpected tDOT
[ERROR] proxy_uri&.hostname
[ERROR] -> [Help 1]
org.apache.maven.InternalErrorException: Internal error: org.jruby.embed.EvalFailedException: (SyntaxError) C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/net/http.rb:1070: syntax error, unexpected tDOT
proxy_uri&.hostname
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:121)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.jruby.embed.EvalFailedException: (SyntaxError) C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/net/http.rb:1070: syntax error, unexpected tDOT
proxy_uri&.hostname
at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:131)
at org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1307)
at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1338)
at org.sonatype.maven.polyglot.ruby.RubyParser.runScript(RubyParser.java:56)
at org.sonatype.maven.polyglot.ruby.RubyParser.<init>(RubyParser.java:43)
at org.sonatype.maven.polyglot.ruby.RubyModelReader.read(RubyModelReader.java:56)
at org.sonatype.maven.polyglot.io.ModelReaderSupport.read(ModelReaderSupport.java:48)
at org.sonatype.maven.polyglot.TeslaModelProcessor.read(TeslaModelProcessor.java:114)
at org.sonatype.maven.polyglot.TeslaModelProcessor.read(TeslaModelProcessor.java:95)
at org.apache.maven.model.building.DefaultModelBuilder.readModel(DefaultModelBuilder.java:533)
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:273)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:469)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:438)
at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:401)
at org.apache.maven.graph.DefaultGraphBuilder.collectProjects(DefaultGraphBuilder.java:419)
at org.apache.maven.graph.DefaultGraphBuilder.getProjectsForMavenReactor(DefaultGraphBuilder.java:410)
at org.apache.maven.graph.DefaultGraphBuilder.build(DefaultGraphBuilder.java:83)
at org.apache.maven.DefaultMaven.buildGraph(DefaultMaven.java:491)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:219)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
... 11 more
Caused by: org.jruby.exceptions.RaiseException: (SyntaxError) C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/net/http.rb:1070: syntax error, unexpected tDOT
proxy_uri&.hostname
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:937)
at RUBY.(root)(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1)
at RUBY.<top>(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:937)
at RUBY.(root)(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/request.rb:2)
at RUBY.<top>(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1)
at RUBY.require(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55)
at RUBY.(root)(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/jars/maven_settings.rb:1)
at RUBY.(root)(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/jar_dependencies.rb:1)
at RUBY.maven_local_settings(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/jar_dependencies.rb:162)
at RUBY.block in local_maven_repo(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/jar_dependencies.rb:178)
at RUBY.home(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/jar_dependencies.rb:186)
at RUBY.do_require(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/jar_dependencies.rb:333)
at RUBY.require_jar(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/jar_dependencies.rb:255)
at RUBY.<top>(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/jar_dependencies.rb:297)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:937)
at RUBY.require_jar(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/jar_dependencies.rb:254)
at RUBY.<top>(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/jar_dependencies.rb:357)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:937)
at RUBY.(root)(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/psych_jars.rb:5)
at RUBY.<top>(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:937)
at RUBY.require(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55)
at RUBY.<top>(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/psych.rb:5)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:937)
at RUBY.(root)(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1)
at RUBY.<top>(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:937)
at RUBY.(root)(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/yaml.rb:6)
at RUBY.<top>(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:937)
at RUBY.require(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55)
at RUBY.<top>(uri:classloader:/maven/tools/dsl/jarfile_lock.rb:22)
at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:937)
at RUBY.(root)(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1)
at RUBY.<top>(C:/languages/ruby/jruby-9.1.15.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55)
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment