You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by Zack Shoylev <no...@github.com> on 2016/10/26 21:39:14 UTC

[jclouds/jclouds] Update errorprone version (#1030)

The new errorprone checks break the build on Windows, for example: https://github.com/google/error-prone/issues/432

However, some additional fixes are needed to update the errorprone version.
You can view, comment on, or merge this pull request online at:

  https://github.com/jclouds/jclouds/pull/1030

-- Commit Summary --

  * Update errorprone version

-- File Changes --

    M project/pom.xml (2)

-- Patch Links --

https://github.com/jclouds/jclouds/pull/1030.patch
https://github.com/jclouds/jclouds/pull/1030.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1030

Re: [jclouds/jclouds] Update errorprone version (#1030)

Posted by Zack Shoylev <no...@github.com>.
Ah, I see.

If I am reading this correctly, it's the PackageLocation one.

error-prone version: 2.0.5
  Stack Trace:
  java.nio.file.InvalidPathException: Illegal char <:> at index 2: /C:/programming/projects/jclouds/apis/filesystem/src/main/java/org/jclouds/filesystem/reference/FilesystemConstants.java
        at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
        at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
        at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
        at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
        at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
        at java.nio.file.Paths.get(Paths.java:84)
        at com.google.errorprone.bugpatterns.PackageLocation.getFilePath(PackageLocation.java:77)
        at com.google.errorprone.bugpatterns.PackageLocation.matchCompilationUnit(PackageLocation.java:58)
        at com.google.errorprone.scanner.ErrorProneScanner.visitCompilationUnit(ErrorProneScanner.java:594)
        at com.google.errorprone.scanner.ErrorProneScanner.visitCompilationUnit(ErrorProneScanner.java:142)
        at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:563)
        at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:53)
        at com.google.errorprone.scanner.Scanner.scan(Scanner.java:70)
        at com.google.errorprone.scanner.ErrorProneScannerTransformer.apply(ErrorProneScannerTransformer.java:45)
        at com.google.errorprone.ErrorProneAnalyzer.reportReadyForAnalysis(ErrorProneAnalyzer.java:151)
        at com.google.errorprone.ErrorProneAnalyzer.finished(ErrorProneAnalyzer.java:115)
        at com.google.errorprone.ErrorProneJavacJavaCompiler.postFlow(ErrorProneJavacJavaCompiler.java:123)
        at com.google.errorprone.ErrorProneJavacJavaCompiler.flow(ErrorProneJavacJavaCompiler.java:97)
        at com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1262)
        at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:859)
        at com.sun.tools.javac.main.Main.compile(Main.java:249)
        at com.google.errorprone.ErrorProneCompiler.run(ErrorProneCompiler.java:249)
        at com.google.errorprone.ErrorProneCompiler.run(ErrorProneCompiler.java:159)
        at com.google.errorprone.ErrorProneCompiler.compile(ErrorProneCompiler.java:88)
        at org.codehaus.plexus.compiler.javac.errorprone.JavacCompilerWithErrorProne$CompilerInvoker.compile(JavacCompilerWithErrorProne.java:219)
        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.compiler.javac.errorprone.JavacCompilerWithErrorProne.performCompile(JavacCompilerWithErrorProne.java:91)
        at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:785)
        at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        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)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1030#issuecomment-256489335

Re: [jclouds/jclouds] Remove PackageLocation check (#1030)

Posted by Andrew Gaul <no...@github.com>.
andrewgaul commented on this pull request.



> @@ -807,7 +807,8 @@
               <compilerArg>-Xep:NonCanonicalStaticImport:ERROR</compilerArg>
               <compilerArg>-Xep:NonFinalCompileTimeConstant:ERROR</compilerArg>
               <compilerArg>-Xep:Overrides:ERROR</compilerArg>
-              <compilerArg>-Xep:PackageLocation:ERROR</compilerArg>
+              <!-- Disabled because of https://github.com/google/error-prone/issues/432 -->

Can you add a comment in a style like others, "internal error with 2.0.5 on Windows"?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1030#pullrequestreview-5959278

Re: [jclouds/jclouds] Remove PackageLocation check (#1030)

Posted by Zack Shoylev <no...@github.com>.
zack-shoylev commented on this pull request.



> @@ -807,7 +807,8 @@
               <compilerArg>-Xep:NonCanonicalStaticImport:ERROR</compilerArg>
               <compilerArg>-Xep:NonFinalCompileTimeConstant:ERROR</compilerArg>
               <compilerArg>-Xep:Overrides:ERROR</compilerArg>
-              <compilerArg>-Xep:PackageLocation:ERROR</compilerArg>
+              <!-- Disabled because of https://github.com/google/error-prone/issues/432 -->
+              <!-- <compilerArg>-Xep:PackageLocation:WARNING</compilerArg> -->

I tried, but it says it cannot be disabled. Setting it to OFF or WARNING does not work.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1030

Re: [jclouds/jclouds] Update errorprone version (#1030)

Posted by Andrew Gaul <no...@github.com>.
Mailing list discussion about Java dependencies:

https://www.mail-archive.com/dev@jclouds.apache.org/msg06549.html

Which check fails and can we selectively disable it?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1030#issuecomment-256487597

Re: [jclouds/jclouds] Update errorprone version (#1030)

Posted by Zack Shoylev <no...@github.com>.
@andrewgaul  I'll repurpose this PR to taking out the PackageLocation check, then? Seems to work fine without it.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1030#issuecomment-256490757

Re: [jclouds/jclouds] Remove PackageLocation check (#1030)

Posted by Zack Shoylev <no...@github.com>.
zack-shoylev commented on this pull request.



> @@ -807,7 +807,8 @@
               <compilerArg>-Xep:NonCanonicalStaticImport:ERROR</compilerArg>
               <compilerArg>-Xep:NonFinalCompileTimeConstant:ERROR</compilerArg>
               <compilerArg>-Xep:Overrides:ERROR</compilerArg>
-              <compilerArg>-Xep:PackageLocation:ERROR</compilerArg>
+              <!-- Disabled because of https://github.com/google/error-prone/issues/432 -->

Yep

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1030

Re: [jclouds/jclouds] Remove PackageLocation check (#1030)

Posted by Zack Shoylev <no...@github.com>.
Closed #1030.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1030#event-837931367

Re: [jclouds/jclouds] Remove PackageLocation check (#1030)

Posted by Zack Shoylev <no...@github.com>.
@zack-shoylev pushed 1 commit.

c01f796  Review fixes


-- 
You are receiving this because you are subscribed to this thread.
View it on GitHub:
https://github.com/jclouds/jclouds/pull/1030/files/ca977459e2e468ad44a729ed7ac78716b86c3af6..c01f7961beb0664448f7cb47c363f1531ff882d6

Re: [jclouds/jclouds] Remove PackageLocation check (#1030)

Posted by Andrew Gaul <no...@github.com>.
andrewgaul commented on this pull request.



> @@ -807,7 +807,8 @@
               <compilerArg>-Xep:NonCanonicalStaticImport:ERROR</compilerArg>
               <compilerArg>-Xep:NonFinalCompileTimeConstant:ERROR</compilerArg>
               <compilerArg>-Xep:Overrides:ERROR</compilerArg>
-              <compilerArg>-Xep:PackageLocation:ERROR</compilerArg>
+              <!-- Disabled because of https://github.com/google/error-prone/issues/432 -->
+              <!-- <compilerArg>-Xep:PackageLocation:WARNING</compilerArg> -->

Just change `WARNING` to `OFF`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1030#pullrequestreview-5959192

Re: [jclouds/jclouds] Remove PackageLocation check (#1030)

Posted by Zack Shoylev <no...@github.com>.
zack-shoylev commented on this pull request.



> @@ -878,7 +879,7 @@
           <dependency>
             <groupId>com.google.errorprone</groupId>
             <artifactId>error_prone_core</artifactId>
-            <version>2.0.5</version>
+            <version>2.0.13</version>

Ah, right.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1030

Re: [jclouds/jclouds] Remove PackageLocation check (#1030)

Posted by Zack Shoylev <no...@github.com>.
merged

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1030#issuecomment-256518079

Re: [jclouds/jclouds] Remove PackageLocation check (#1030)

Posted by Andrew Gaul <no...@github.com>.
andrewgaul commented on this pull request.



> @@ -878,7 +879,7 @@
           <dependency>
             <groupId>com.google.errorprone</groupId>
             <artifactId>error_prone_core</artifactId>
-            <version>2.0.5</version>
+            <version>2.0.13</version>

Do you intend to make this change?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1030#pullrequestreview-5967012