[ https://issues.apache.org/jira/browse/SPARK-40221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ziqi Liu updated SPARK-40221: ----------------------------- Description: I'm following the guidance in [https://spark.apache.org/developer-tools.html] using {code:java} ./dev/scalafmt{code} to format the code, but getting this error: {code:java} [ERROR] Failed to execute goal org.antipathy:mvn-scalafmt_2.12:1.1.1640084764.9f463a9:format (default-cli) on project spark-parent_2.12: Error formatting Scala files: missing setting 'version'. To fix this problem, add the following line to .scalafmt.conf: 'version=3.2.1'. -> [Help 1] [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/MojoExecutionException {code} was: I'm following the guidance in [https://spark.apache.org/developer-tools.html] using ./dev/scalafmt to format the code, but getting this error: {code:java} [ERROR] Failed to execute goal org.antipathy:mvn-scalafmt_2.12:1.1.1640084764.9f463a9:format (default-cli) on project spark-parent_2.12: Error formatting Scala files: missing setting 'version'. To fix this problem, add the following line to .scalafmt.conf: 'version=3.2.1'. -> [Help 1] [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/MojoExecutionException {code} > Not able to format using scalafmt > --------------------------------- > > Key: SPARK-40221 > URL: https://issues.apache.org/jira/browse/SPARK-40221 > Project: Spark > Issue Type: Question > Components: Build > Affects Versions: 3.4.0 > Reporter: Ziqi Liu > Priority: Major > > I'm following the guidance in [https://spark.apache.org/developer-tools.html] > using > {code:java} > ./dev/scalafmt{code} > to format the code, but getting this error: > {code:java} > [ERROR] Failed to execute goal > org.antipathy:mvn-scalafmt_2.12:1.1.1640084764.9f463a9:format (default-cli) > on project spark-parent_2.12: Error formatting Scala files: missing setting > 'version'. To fix this problem, add the following line to .scalafmt.conf: > 'version=3.2.1'. -> [Help 1] > [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/MojoExecutionException {code} > -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org