You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2015/03/25 17:58:53 UTC
[jira] [Comment Edited] (SPARK-6532) LDAModel.scala fails
scalastyle on Windows
[ https://issues.apache.org/jira/browse/SPARK-6532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14380223#comment-14380223 ]
Sean Owen edited comment on SPARK-6532 at 3/25/15 4:58 PM:
-----------------------------------------------------------
OK, I think it would be pretty safe to specify inputEncoding here if it makes a difference. Really it would be nice to set it to ${project.build.sourceEncoding} and set outputEncoding in this plugin to ${project.reporting.outputEncoding}. If that works (and it should; they're all set to UTF-8), would you care to open a PR?
I'm still really curious what about the file reads differently in Windows, but I bet it is some crazy invisible unicode char that we'll have trouble finding.
was (Author: srowen):
OK, I think it would be pretty safe to specify inputEncoding here if it makes a difference. Really it would be nice to set it to {{${project.build.sourceEncoding}}} and set outputEncoding in this plugin to {{${project.reporting.outputEncoding}}}. If that works (and it should; they're all set to UTF-8), would you care to open a PR?
I'm still really curious what about the file reads differently in Windows, but I bet it is some crazy invisible unicode char that we'll have trouble finding.
> LDAModel.scala fails scalastyle on Windows
> ------------------------------------------
>
> Key: SPARK-6532
> URL: https://issues.apache.org/jira/browse/SPARK-6532
> Project: Spark
> Issue Type: Bug
> Components: Build, Windows
> Affects Versions: 1.3.0
> Environment: Windows 7, Maven 3.1.0
> Reporter: Brian O'Keefe
> Priority: Minor
>
> When executing mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.5.2 -DskipTests -X clean package, the build fails with the error:
> [DEBUG] Configuring mojo org.scalastyle:scalastyle-maven-plugin:0.4.0:check from plugin realm ClassRealm[plugin>org.sca
> astyle:scalastyle-maven-plugin:0.4.0, parent: sun.misc.Launcher$AppClassLoader@1174ec5]
> [DEBUG] Configuring mojo 'org.scalastyle:scalastyle-maven-plugin:0.4.0:check' with basic configurator -->
> [DEBUG] (f) baseDirectory = C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib
> [DEBUG] (f) buildDirectory = C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\target
> [DEBUG] (f) configLocation = scalastyle-config.xml
> [DEBUG] (f) failOnViolation = true
> [DEBUG] (f) failOnWarning = false
> [DEBUG] (f) includeTestSourceDirectory = false
> [DEBUG] (f) outputEncoding = UTF-8
> [DEBUG] (f) outputFile = C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\scalastyle-output.xml
> [DEBUG] (f) quiet = false
> [DEBUG] (f) skip = false
> [DEBUG] (f) sourceDirectory = C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\src\main\scala
> [DEBUG] (f) testSourceDirectory = C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\src\test\scala
> [DEBUG] (f) verbose = false
> [DEBUG] (f) project = MavenProject: org.apache.spark:spark-mllib_2.10:1.3.0 @ C:\Users\u6013553\spark-1.3.0\spark-1.3
> 0\mllib\dependency-reduced-pom.xml
> [DEBUG] -- end configuration --
> [DEBUG] failOnWarning=false
> [DEBUG] verbose=false
> [DEBUG] quiet=false
> [DEBUG] sourceDirectory=C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\src\main\scala
> [DEBUG] includeTestSourceDirectory=false
> [DEBUG] buildDirectory=C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\target
> [DEBUG] baseDirectory=C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib
> [DEBUG] outputFile=C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\scalastyle-output.xml
> [DEBUG] outputEncoding=UTF-8
> [DEBUG] inputEncoding=null
> [DEBUG] processing sourceDirectory=C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\src\main\scala encoding=null
> error file=C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\src\main\scala\org\apache\spark\mllib\clustering\LDAModel.sc
> la message=Input length = 1
> Saving to outputFile=C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\scalastyle-output.xml
> Processed 143 file(s)
> Found 1 errors
> Found 0 warnings
> Found 0 infos
> Finished in 1571 ms
> scalastyle-output.xml reports
> <?xml version="1.0" encoding="UTF-8"?>
> <checkstyle version="5.0">
> <file name="C:\Users\u6013553\spark-1.3.0\spark-1.3.0\mllib\src\main\scala\org\apache\spark\mllib\clustering\LDAModel.scala">
> <error severity="error" message="Input length = 1"></error>
> </file>
> </checkstyle>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org