[jira] [Created] (SPARK-23732) Broken link to scala source code in Spark Scala api Scaladoc
Yogesh Tewari created SPARK-23732: - Summary: Broken link to scala source code in Spark Scala api Scaladoc Key: SPARK-23732 URL: https://issues.apache.org/jira/browse/SPARK-23732 Project: Spark Issue Type: Bug Components: Build, Documentation, Project Infra Affects Versions: 2.3.0, 2.3.1 Environment: {code:java} ~/spark/docs$ cat /etc/*release* DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS" NAME="Ubuntu" VERSION="16.04.4 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.4 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/"; SUPPORT_URL="http://help.ubuntu.com/"; BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"; VERSION_CODENAME=xenial UBUNTU_CODENAME=xenial {code} Using spark packaged sbt. Other versions: {code:java} ~/spark/docs$ ruby -v ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu] ~/spark/docs$ gem -v 2.5.2.1 ~/spark/docs$ jekyll -v jekyll 3.7.3 ~/spark/docs$ java -version java version "1.8.0_112" Java(TM) SE Runtime Environment (build 1.8.0_112-b15) Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode) {code} Reporter: Yogesh Tewari Scala source code link in Spark api scaladoc is broken. Turns out instead of the relative path to the scala files the "€\{FILE_PATH}.scala" expression in [https://github.com/apache/spark/blob/master/project/SparkBuild.scala] is generating the absolute path from the developers computer. In this case, if I try to access the source link on [https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.Accumulable], it tries to take me to [https://github.com/apache/spark/tree/v2.3.0{color:#FF}/Users/sameera/dev/spark{color}/core/src/main/scala/org/apache/spark/Accumulable.scala] where "/Users/sameera/dev/spark" portion of the URL is coming from the developers macos home folder. There seems to be no change in the code responsible for generating this path during the build in /project/SparkBuild.scala : Line # 252: {code:java} scalacOptions in Compile ++= Seq( s"-target:jvm-${scalacJVMVersion.value}", "-sourcepath", (baseDirectory in ThisBuild).value.getAbsolutePath // Required for relative source links in scaladoc ), {code} Line # 726 {code:java} // Use GitHub repository for Scaladoc source links unidocSourceBase := s"https://github.com/apache/spark/tree/v${version.value}";, scalacOptions in (ScalaUnidoc, unidoc) ++= Seq( "-groups", // Group similar methods together based on the @group annotation. "-skip-packages", "org.apache.hadoop" ) ++ ( // Add links to sources when generating Scaladoc for a non-snapshot release if (!isSnapshot.value) { Opts.doc.sourceUrl(unidocSourceBase.value + "€{FILE_PATH}.scala") } else { Seq() } ){code} It seems more like a developers dev environment issue. I was successfully able to reproduce this in my dev environment. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Updated] (SPARK-23732) Broken link to scala source code in Spark Scala api Scaladoc
[ https://issues.apache.org/jira/browse/SPARK-23732?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yogesh Tewari updated SPARK-23732: -- Description: Scala source code link in Spark api scaladoc is broken. Turns out instead of the relative path to the scala files the "€\{FILE_PATH}.scala" expression in [https://github.com/apache/spark/blob/master/project/SparkBuild.scala] is generating the absolute path from the developers computer. In this case, if I try to access the source link on [https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.Accumulable], it tries to take me to [/Users/sameera/dev/spark/core/src/main/scala/org/apache/spark/Accumulable.scala" class="external-link" rel="nofollow">https://github.com/apache/spark/tree/v2.3.0{color:#ff}/Users/sameera/dev/spark{color}/core/src/main/scala/org/apache/spark/Accumulable.scala|https://github.com/apache/spark/tree/v2.3.0%3Cfont%20color=] where "/Users/sameera/dev/spark" portion of the URL is coming from the developers macos home folder. There seems to be no change in the code responsible for generating this path during the build in /project/SparkBuild.scala : Line # 252: {code:java} scalacOptions in Compile ++= Seq( s"-target:jvm-${scalacJVMVersion.value}", "-sourcepath", (baseDirectory in ThisBuild).value.getAbsolutePath // Required for relative source links in scaladoc ), {code} Line # 726 {code:java} // Use GitHub repository for Scaladoc source links unidocSourceBase := s"https://github.com/apache/spark/tree/v${version.value}";, scalacOptions in (ScalaUnidoc, unidoc) ++= Seq( "-groups", // Group similar methods together based on the @group annotation. "-skip-packages", "org.apache.hadoop" ) ++ ( // Add links to sources when generating Scaladoc for a non-snapshot release if (!isSnapshot.value) { Opts.doc.sourceUrl(unidocSourceBase.value + "€{FILE_PATH}.scala") } else { Seq() } ){code} It seems more like a developers dev environment issue. I was successfully able to reproduce this in my dev environment. Environment details attached. was: Scala source code link in Spark api scaladoc is broken. Turns out instead of the relative path to the scala files the "€\{FILE_PATH}.scala" expression in [https://github.com/apache/spark/blob/master/project/SparkBuild.scala] is generating the absolute path from the developers computer. In this case, if I try to access the source link on [https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.Accumulable], it tries to take me to [https://github.com/apache/spark/tree/v2.3.0{color:#FF}/Users/sameera/dev/spark{color}/core/src/main/scala/org/apache/spark/Accumulable.scala] where "/Users/sameera/dev/spark" portion of the URL is coming from the developers macos home folder. There seems to be no change in the code responsible for generating this path during the build in /project/SparkBuild.scala : Line # 252: {code:java} scalacOptions in Compile ++= Seq( s"-target:jvm-${scalacJVMVersion.value}", "-sourcepath", (baseDirectory in ThisBuild).value.getAbsolutePath // Required for relative source links in scaladoc ), {code} Line # 726 {code:java} // Use GitHub repository for Scaladoc source links unidocSourceBase := s"https://github.com/apache/spark/tree/v${version.value}";, scalacOptions in (ScalaUnidoc, unidoc) ++= Seq( "-groups", // Group similar methods together based on the @group annotation. "-skip-packages", "org.apache.hadoop" ) ++ ( // Add links to sources when generating Scaladoc for a non-snapshot release if (!isSnapshot.value) { Opts.doc.sourceUrl(unidocSourceBase.value + "€{FILE_PATH}.scala") } else { Seq() } ){code} It seems more like a developers dev environment issue. I was successfully able to reproduce this in my dev environment. > Broken link to scala source code in Spark Scala api Scaladoc > > > Key: SPARK-23732 > URL: https://issues.apache.org/jira/browse/SPARK-23732 > Project: Spark > Issue Type: Bug > Components: Build, Documentation, Project Infra >Affects Versions: 2.3.0, 2.3.1 > Environment: {code:java} > ~/spark/docs$ cat /etc/*release* > DISTRIB_ID=Ubuntu > DISTRIB_RELEASE=16.04 > DISTRIB_CODENAME=xenial > DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS" > NAME="Ubuntu" > VERSION="16.04.4 LTS (Xenial Xerus)" > ID=ubuntu > ID_LIKE=debian > PRETTY_NAME="Ubuntu 16.04.4 LTS" > VERSION_ID="16.04" > HOME_URL="http://www.ubuntu.com/"; > SUPPORT_URL="http://help.ubuntu.com/"; > BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"; > VERSION_CODENAME=xenial > UBUNTU_CODENAME=xenial > {code} > Using spark packaged sbt. > Other versions: > {code:java} > ~/spark/docs$ ruby -v > ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu] > ~/spark/docs$ gem -v > 2.5.2.1 > ~/spark/docs$ jekyll -v > jekyll 3.7.3 > ~/spark/docs$ java -vers
[jira] [Created] (SPARK-23733) Broken link to java source code in Spark Scala api Scaladoc
Yogesh Tewari created SPARK-23733: - Summary: Broken link to java source code in Spark Scala api Scaladoc Key: SPARK-23733 URL: https://issues.apache.org/jira/browse/SPARK-23733 Project: Spark Issue Type: Bug Components: Build, Documentation, Project Infra Affects Versions: 2.3.0, 2.3.1 Environment: {code:java} ~/spark/docs$ cat /etc/*release* DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS" NAME="Ubuntu" VERSION="16.04.4 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.4 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/"; SUPPORT_URL="http://help.ubuntu.com/"; BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"; VERSION_CODENAME=xenial UBUNTU_CODENAME=xenial {code} Using spark packaged sbt. Other versions: {code:java} ~/spark/docs$ ruby -v ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu] ~/spark/docs$ gem -v 2.5.2.1 ~/spark/docs$ jekyll -v jekyll 3.7.3 ~/spark/docs$ java -version java version "1.8.0_112" Java(TM) SE Runtime Environment (build 1.8.0_112-b15) Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed mode) {code} Reporter: Yogesh Tewari Scala source code link in Spark api scaladoc is broken. Turns out instead of the relative path to the scala files the "€\{FILE_PATH}.scala" expression in [https://github.com/apache/spark/blob/master/project/SparkBuild.scala] is generating the absolute path from the developers computer. In this case, if I try to access the source link on [https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.Accumulable], it tries to take me to [/Users/sameera/dev/spark/core/src/main/scala/org/apache/spark/Accumulable.scala" class="external-link" rel="nofollow">https://github.com/apache/spark/tree/v2.3.0{color:#ff}/Users/sameera/dev/spark{color}/core/src/main/scala/org/apache/spark/Accumulable.scala|https://github.com/apache/spark/tree/v2.3.0%3Cfont%20color=] where "/Users/sameera/dev/spark" portion of the URL is coming from the developers macos home folder. There seems to be no change in the code responsible for generating this path during the build in /project/SparkBuild.scala : Line # 252: {code:java} scalacOptions in Compile ++= Seq( s"-target:jvm-${scalacJVMVersion.value}", "-sourcepath", (baseDirectory in ThisBuild).value.getAbsolutePath // Required for relative source links in scaladoc ), {code} Line # 726 {code:java} // Use GitHub repository for Scaladoc source links unidocSourceBase := s"https://github.com/apache/spark/tree/v${version.value}";, scalacOptions in (ScalaUnidoc, unidoc) ++= Seq( "-groups", // Group similar methods together based on the @group annotation. "-skip-packages", "org.apache.hadoop" ) ++ ( // Add links to sources when generating Scaladoc for a non-snapshot release if (!isSnapshot.value) { Opts.doc.sourceUrl(unidocSourceBase.value + "€{FILE_PATH}.scala") } else { Seq() } ){code} It seems more like a developers dev environment issue. I was successfully able to reproduce this in my dev environment. Environment details attached. -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Updated] (SPARK-23733) Broken link to java source code in Spark Scala api Scaladoc
[ https://issues.apache.org/jira/browse/SPARK-23733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yogesh Tewari updated SPARK-23733: -- Affects Version/s: (was: 2.3.1) 1.6.3 2.0.2 2.1.2 2.2.0 > Broken link to java source code in Spark Scala api Scaladoc > --- > > Key: SPARK-23733 > URL: https://issues.apache.org/jira/browse/SPARK-23733 > Project: Spark > Issue Type: Bug > Components: Build, Documentation, Project Infra >Affects Versions: 1.6.3, 2.0.2, 2.1.2, 2.2.0, 2.3.0 > Environment: {code:java} > ~/spark/docs$ cat /etc/*release* > DISTRIB_ID=Ubuntu > DISTRIB_RELEASE=16.04 > DISTRIB_CODENAME=xenial > DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS" > NAME="Ubuntu" > VERSION="16.04.4 LTS (Xenial Xerus)" > ID=ubuntu > ID_LIKE=debian > PRETTY_NAME="Ubuntu 16.04.4 LTS" > VERSION_ID="16.04" > HOME_URL="http://www.ubuntu.com/"; > SUPPORT_URL="http://help.ubuntu.com/"; > BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"; > VERSION_CODENAME=xenial > UBUNTU_CODENAME=xenial > {code} > Using spark packaged sbt. > Other versions: > {code:java} > ~/spark/docs$ ruby -v > ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu] > ~/spark/docs$ gem -v > 2.5.2.1 > ~/spark/docs$ jekyll -v > jekyll 3.7.3 > ~/spark/docs$ java -version > java version "1.8.0_112" Java(TM) SE Runtime Environment (build > 1.8.0_112-b15) Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed > mode) > {code} >Reporter: Yogesh Tewari >Priority: Trivial > Labels: build, documentation, scaladocs > > Scala source code link in Spark api scaladoc is broken. > Turns out instead of the relative path to the scala files the > "€\{FILE_PATH}.scala" expression in > [https://github.com/apache/spark/blob/master/project/SparkBuild.scala] is > generating the absolute path from the developers computer. In this case, if I > try to access the source link on > [https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.Accumulable], > it tries to take me to > [/Users/sameera/dev/spark/core/src/main/scala/org/apache/spark/Accumulable.scala" > class="external-link" > rel="nofollow">https://github.com/apache/spark/tree/v2.3.0{color:#ff}/Users/sameera/dev/spark{color}/core/src/main/scala/org/apache/spark/Accumulable.scala|https://github.com/apache/spark/tree/v2.3.0%3Cfont%20color=] > where "/Users/sameera/dev/spark" portion of the URL is coming from the > developers macos home folder. > There seems to be no change in the code responsible for generating this path > during the build in /project/SparkBuild.scala : > Line # 252: > {code:java} > scalacOptions in Compile ++= Seq( > s"-target:jvm-${scalacJVMVersion.value}", > "-sourcepath", (baseDirectory in ThisBuild).value.getAbsolutePath // Required > for relative source links in scaladoc > ), > {code} > Line # 726 > {code:java} > // Use GitHub repository for Scaladoc source links > unidocSourceBase := s"https://github.com/apache/spark/tree/v${version.value}";, > scalacOptions in (ScalaUnidoc, unidoc) ++= Seq( > "-groups", // Group similar methods together based on the @group annotation. > "-skip-packages", "org.apache.hadoop" > ) ++ ( > // Add links to sources when generating Scaladoc for a non-snapshot release > if (!isSnapshot.value) { > Opts.doc.sourceUrl(unidocSourceBase.value + "€{FILE_PATH}.scala") > } else { > Seq() > } > ){code} > > It seems more like a developers dev environment issue. > I was successfully able to reproduce this in my dev environment. Environment > details attached. > -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Updated] (SPARK-23733) Broken link to java source code in Spark Scala api Scaladoc
[ https://issues.apache.org/jira/browse/SPARK-23733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yogesh Tewari updated SPARK-23733: -- Affects Version/s: (was: 2.3.0) > Broken link to java source code in Spark Scala api Scaladoc > --- > > Key: SPARK-23733 > URL: https://issues.apache.org/jira/browse/SPARK-23733 > Project: Spark > Issue Type: Bug > Components: Build, Documentation, Project Infra >Affects Versions: 1.6.3, 2.0.2, 2.1.2, 2.2.0 > Environment: {code:java} > ~/spark/docs$ cat /etc/*release* > DISTRIB_ID=Ubuntu > DISTRIB_RELEASE=16.04 > DISTRIB_CODENAME=xenial > DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS" > NAME="Ubuntu" > VERSION="16.04.4 LTS (Xenial Xerus)" > ID=ubuntu > ID_LIKE=debian > PRETTY_NAME="Ubuntu 16.04.4 LTS" > VERSION_ID="16.04" > HOME_URL="http://www.ubuntu.com/"; > SUPPORT_URL="http://help.ubuntu.com/"; > BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"; > VERSION_CODENAME=xenial > UBUNTU_CODENAME=xenial > {code} > Using spark packaged sbt. > Other versions: > {code:java} > ~/spark/docs$ ruby -v > ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu] > ~/spark/docs$ gem -v > 2.5.2.1 > ~/spark/docs$ jekyll -v > jekyll 3.7.3 > ~/spark/docs$ java -version > java version "1.8.0_112" Java(TM) SE Runtime Environment (build > 1.8.0_112-b15) Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed > mode) > {code} >Reporter: Yogesh Tewari >Priority: Trivial > Labels: build, documentation, scaladocs > > Java source code link in Spark api scaladoc is broken. > The relative path expression "€\{FILE_PATH}.scala" in > [https://github.com/apache/spark/blob/master/project/SparkBuild.scala] has > ".scala" hardcoded in the end. If I try to access the source link on > [https://spark.apache.org/docs/1.6.3/api/scala/index.html#org.apache.spark.api.java.function.Function2], > it tries to take me to > [/Users/sameera/dev/spark/core/src/main/scala/org/apache/spark/Accumulable.scala" > class="external-link" > rel="nofollow">https://github.com/apache/spark/tree/v2.3.0{color:#ff}/Users/sameera/dev/spark{color}/core/src/main/scala/org/apache/spark/Accumulable.scala|https://github.com/apache/spark/tree/v2.3.0%3Cfont%20color=] > where "/Users/sameera/dev/spark" portion of the URL is coming from the > developers macos home folder. > There seems to be no change in the code responsible for generating this path > during the build in /project/SparkBuild.scala : > Line # 252: > {code:java} > scalacOptions in Compile ++= Seq( > s"-target:jvm-${scalacJVMVersion.value}", > "-sourcepath", (baseDirectory in ThisBuild).value.getAbsolutePath // Required > for relative source links in scaladoc > ), > {code} > Line # 726 > {code:java} > // Use GitHub repository for Scaladoc source links > unidocSourceBase := s"https://github.com/apache/spark/tree/v${version.value}";, > scalacOptions in (ScalaUnidoc, unidoc) ++= Seq( > "-groups", // Group similar methods together based on the @group annotation. > "-skip-packages", "org.apache.hadoop" > ) ++ ( > // Add links to sources when generating Scaladoc for a non-snapshot release > if (!isSnapshot.value) { > Opts.doc.sourceUrl(unidocSourceBase.value + "€{FILE_PATH}.scala") > } else { > Seq() > } > ){code} > > It seems more like a developers dev environment issue. > I was successfully able to reproduce this in my dev environment. Environment > details attached. > -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Updated] (SPARK-23733) Broken link to java source code in Spark Scala api Scaladoc
[ https://issues.apache.org/jira/browse/SPARK-23733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yogesh Tewari updated SPARK-23733: -- Description: Java source code link in Spark api scaladoc is broken. The relative path expression "€\{FILE_PATH}.scala" in [https://github.com/apache/spark/blob/master/project/SparkBuild.scala] has ".scala" hardcoded in the end. If I try to access the source link on [https://spark.apache.org/docs/1.6.3/api/scala/index.html#org.apache.spark.api.java.function.Function2], it tries to take me to [/Users/sameera/dev/spark/core/src/main/scala/org/apache/spark/Accumulable.scala" class="external-link" rel="nofollow">https://github.com/apache/spark/tree/v2.3.0{color:#ff}/Users/sameera/dev/spark{color}/core/src/main/scala/org/apache/spark/Accumulable.scala|https://github.com/apache/spark/tree/v2.3.0%3Cfont%20color=] where "/Users/sameera/dev/spark" portion of the URL is coming from the developers macos home folder. There seems to be no change in the code responsible for generating this path during the build in /project/SparkBuild.scala : Line # 252: {code:java} scalacOptions in Compile ++= Seq( s"-target:jvm-${scalacJVMVersion.value}", "-sourcepath", (baseDirectory in ThisBuild).value.getAbsolutePath // Required for relative source links in scaladoc ), {code} Line # 726 {code:java} // Use GitHub repository for Scaladoc source links unidocSourceBase := s"https://github.com/apache/spark/tree/v${version.value}";, scalacOptions in (ScalaUnidoc, unidoc) ++= Seq( "-groups", // Group similar methods together based on the @group annotation. "-skip-packages", "org.apache.hadoop" ) ++ ( // Add links to sources when generating Scaladoc for a non-snapshot release if (!isSnapshot.value) { Opts.doc.sourceUrl(unidocSourceBase.value + "€{FILE_PATH}.scala") } else { Seq() } ){code} It seems more like a developers dev environment issue. I was successfully able to reproduce this in my dev environment. Environment details attached. was: Scala source code link in Spark api scaladoc is broken. Turns out instead of the relative path to the scala files the "€\{FILE_PATH}.scala" expression in [https://github.com/apache/spark/blob/master/project/SparkBuild.scala] is generating the absolute path from the developers computer. In this case, if I try to access the source link on [https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.Accumulable], it tries to take me to [/Users/sameera/dev/spark/core/src/main/scala/org/apache/spark/Accumulable.scala" class="external-link" rel="nofollow">https://github.com/apache/spark/tree/v2.3.0{color:#ff}/Users/sameera/dev/spark{color}/core/src/main/scala/org/apache/spark/Accumulable.scala|https://github.com/apache/spark/tree/v2.3.0%3Cfont%20color=] where "/Users/sameera/dev/spark" portion of the URL is coming from the developers macos home folder. There seems to be no change in the code responsible for generating this path during the build in /project/SparkBuild.scala : Line # 252: {code:java} scalacOptions in Compile ++= Seq( s"-target:jvm-${scalacJVMVersion.value}", "-sourcepath", (baseDirectory in ThisBuild).value.getAbsolutePath // Required for relative source links in scaladoc ), {code} Line # 726 {code:java} // Use GitHub repository for Scaladoc source links unidocSourceBase := s"https://github.com/apache/spark/tree/v${version.value}";, scalacOptions in (ScalaUnidoc, unidoc) ++= Seq( "-groups", // Group similar methods together based on the @group annotation. "-skip-packages", "org.apache.hadoop" ) ++ ( // Add links to sources when generating Scaladoc for a non-snapshot release if (!isSnapshot.value) { Opts.doc.sourceUrl(unidocSourceBase.value + "€{FILE_PATH}.scala") } else { Seq() } ){code} It seems more like a developers dev environment issue. I was successfully able to reproduce this in my dev environment. Environment details attached. > Broken link to java source code in Spark Scala api Scaladoc > --- > > Key: SPARK-23733 > URL: https://issues.apache.org/jira/browse/SPARK-23733 > Project: Spark > Issue Type: Bug > Components: Build, Documentation, Project Infra >Affects Versions: 1.6.3, 2.0.2, 2.1.2, 2.2.0 > Environment: {code:java} > ~/spark/docs$ cat /etc/*release* > DISTRIB_ID=Ubuntu > DISTRIB_RELEASE=16.04 > DISTRIB_CODENAME=xenial > DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS" > NAME="Ubuntu" > VERSION="16.04.4 LTS (Xenial Xerus)" > ID=ubuntu > ID_LIKE=debian > PRETTY_NAME="Ubuntu 16.04.4 LTS" > VERSION_ID="16.04" > HOME_URL="http://www.ubuntu.com/"; > SUPPORT_URL="http://help.ubuntu.com/"; > BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"; > VERSION_CODENAME=xenial > UBUNTU_CODENAME=xenial > {code} > Using spark packaged sbt. > Other versions: > {code:java} > ~/spark/docs$ ruby -v > ru
[jira] [Updated] (SPARK-23733) Broken link to java source code in Spark Scala api Scaladoc
[ https://issues.apache.org/jira/browse/SPARK-23733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yogesh Tewari updated SPARK-23733: -- Description: Java source code link in Spark api scaladoc is broken. The relative path expression "€\{FILE_PATH}.scala" in [https://github.com/apache/spark/blob/master/project/SparkBuild.scala] has ".scala" hardcoded in the end. If I try to access the source link on [https://spark.apache.org/docs/1.6.3/api/scala/index.html#org.apache.spark.api.java.function.Function2], it tries to take me to [https://github.com/apache/spark/tree/v2.2.0/core/src/main/java/org/apache/spark/api/java/function/Function2.java.scala] This is coming from /project/SparkBuild.scala : Line # 720 {code:java} // Use GitHub repository for Scaladoc source links unidocSourceBase := s"https://github.com/apache/spark/tree/v${version.value}";, scalacOptions in (ScalaUnidoc, unidoc) ++= Seq( "-groups", // Group similar methods together based on the @group annotation. "-skip-packages", "org.apache.hadoop" ) ++ ( // Add links to sources when generating Scaladoc for a non-snapshot release if (!isSnapshot.value) { Opts.doc.sourceUrl(unidocSourceBase.value + "€{FILE_PATH}.scala") } else { Seq() } ){code} was: Java source code link in Spark api scaladoc is broken. The relative path expression "€\{FILE_PATH}.scala" in [https://github.com/apache/spark/blob/master/project/SparkBuild.scala] has ".scala" hardcoded in the end. If I try to access the source link on [https://spark.apache.org/docs/1.6.3/api/scala/index.html#org.apache.spark.api.java.function.Function2], it tries to take me to [/Users/sameera/dev/spark/core/src/main/scala/org/apache/spark/Accumulable.scala" class="external-link" rel="nofollow">https://github.com/apache/spark/tree/v2.3.0{color:#ff}/Users/sameera/dev/spark{color}/core/src/main/scala/org/apache/spark/Accumulable.scala|https://github.com/apache/spark/tree/v2.3.0%3Cfont%20color=] where "/Users/sameera/dev/spark" portion of the URL is coming from the developers macos home folder. There seems to be no change in the code responsible for generating this path during the build in /project/SparkBuild.scala : Line # 252: {code:java} scalacOptions in Compile ++= Seq( s"-target:jvm-${scalacJVMVersion.value}", "-sourcepath", (baseDirectory in ThisBuild).value.getAbsolutePath // Required for relative source links in scaladoc ), {code} Line # 726 {code:java} // Use GitHub repository for Scaladoc source links unidocSourceBase := s"https://github.com/apache/spark/tree/v${version.value}";, scalacOptions in (ScalaUnidoc, unidoc) ++= Seq( "-groups", // Group similar methods together based on the @group annotation. "-skip-packages", "org.apache.hadoop" ) ++ ( // Add links to sources when generating Scaladoc for a non-snapshot release if (!isSnapshot.value) { Opts.doc.sourceUrl(unidocSourceBase.value + "€{FILE_PATH}.scala") } else { Seq() } ){code} It seems more like a developers dev environment issue. I was successfully able to reproduce this in my dev environment. Environment details attached. > Broken link to java source code in Spark Scala api Scaladoc > --- > > Key: SPARK-23733 > URL: https://issues.apache.org/jira/browse/SPARK-23733 > Project: Spark > Issue Type: Bug > Components: Build, Documentation, Project Infra >Affects Versions: 1.6.3, 2.0.2, 2.1.2, 2.2.0 > Environment: {code:java} > ~/spark/docs$ cat /etc/*release* > DISTRIB_ID=Ubuntu > DISTRIB_RELEASE=16.04 > DISTRIB_CODENAME=xenial > DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS" > NAME="Ubuntu" > VERSION="16.04.4 LTS (Xenial Xerus)" > ID=ubuntu > ID_LIKE=debian > PRETTY_NAME="Ubuntu 16.04.4 LTS" > VERSION_ID="16.04" > HOME_URL="http://www.ubuntu.com/"; > SUPPORT_URL="http://help.ubuntu.com/"; > BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"; > VERSION_CODENAME=xenial > UBUNTU_CODENAME=xenial > {code} > Using spark packaged sbt. > Other versions: > {code:java} > ~/spark/docs$ ruby -v > ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu] > ~/spark/docs$ gem -v > 2.5.2.1 > ~/spark/docs$ jekyll -v > jekyll 3.7.3 > ~/spark/docs$ java -version > java version "1.8.0_112" Java(TM) SE Runtime Environment (build > 1.8.0_112-b15) Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed > mode) > {code} >Reporter: Yogesh Tewari >Priority: Trivial > Labels: build, documentation, scaladocs > > Java source code link in Spark api scaladoc is broken. > The relative path expression "€\{FILE_PATH}.scala" in > [https://github.com/apache/spark/blob/master/project/SparkBuild.scala] has > ".scala" hardcoded in the end. If I try to access the source link on > [https://spark.apache.org/docs/1.6.3/api/scala/index.html#org.apache.spark.api.java.function.Function2], > it tries to take me to >
[jira] [Updated] (SPARK-23732) Broken link to scala source code in Spark Scala api Scaladoc
[ https://issues.apache.org/jira/browse/SPARK-23732?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yogesh Tewari updated SPARK-23732: -- Description: Scala source code link in Spark api scaladoc is broken. Turns out instead of the relative path to the scala files the "€\{FILE_PATH}.scala" expression in [https://github.com/apache/spark/blob/master/project/SparkBuild.scala] is generating the absolute path from the developers computer. In this case, if I try to access the source link on [https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.Accumulable], it tries to take me to [https://github.com/apache/spark/tree/v2.3.0{color:#ff}/Users/sameera/dev/spark{color}/core/src/main/scala/org/apache/spark/Accumulable.scala|https://github.com/apache/spark/tree/v2.3.0%3Cfont%20color=] where "/Users/sameera/dev/spark" portion of the URL is coming from the developers macos home folder. There seems to be no change in the code responsible for generating this path during the build in /project/SparkBuild.scala : Line # 252: {code:java} scalacOptions in Compile ++= Seq( s"-target:jvm-${scalacJVMVersion.value}", "-sourcepath", (baseDirectory in ThisBuild).value.getAbsolutePath // Required for relative source links in scaladoc ), {code} Line # 726 {code:java} // Use GitHub repository for Scaladoc source links unidocSourceBase := s"https://github.com/apache/spark/tree/v${version.value}";, scalacOptions in (ScalaUnidoc, unidoc) ++= Seq( "-groups", // Group similar methods together based on the @group annotation. "-skip-packages", "org.apache.hadoop" ) ++ ( // Add links to sources when generating Scaladoc for a non-snapshot release if (!isSnapshot.value) { Opts.doc.sourceUrl(unidocSourceBase.value + "€{FILE_PATH}.scala") } else { Seq() } ){code} It seems more like a developers dev environment issue. I was successfully able to reproduce this in my dev environment. Environment details attached. was: Scala source code link in Spark api scaladoc is broken. Turns out instead of the relative path to the scala files the "€\{FILE_PATH}.scala" expression in [https://github.com/apache/spark/blob/master/project/SparkBuild.scala] is generating the absolute path from the developers computer. In this case, if I try to access the source link on [https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.Accumulable], it tries to take me to [/Users/sameera/dev/spark/core/src/main/scala/org/apache/spark/Accumulable.scala" class="external-link" rel="nofollow">https://github.com/apache/spark/tree/v2.3.0{color:#ff}/Users/sameera/dev/spark{color}/core/src/main/scala/org/apache/spark/Accumulable.scala|https://github.com/apache/spark/tree/v2.3.0%3Cfont%20color=] where "/Users/sameera/dev/spark" portion of the URL is coming from the developers macos home folder. There seems to be no change in the code responsible for generating this path during the build in /project/SparkBuild.scala : Line # 252: {code:java} scalacOptions in Compile ++= Seq( s"-target:jvm-${scalacJVMVersion.value}", "-sourcepath", (baseDirectory in ThisBuild).value.getAbsolutePath // Required for relative source links in scaladoc ), {code} Line # 726 {code:java} // Use GitHub repository for Scaladoc source links unidocSourceBase := s"https://github.com/apache/spark/tree/v${version.value}";, scalacOptions in (ScalaUnidoc, unidoc) ++= Seq( "-groups", // Group similar methods together based on the @group annotation. "-skip-packages", "org.apache.hadoop" ) ++ ( // Add links to sources when generating Scaladoc for a non-snapshot release if (!isSnapshot.value) { Opts.doc.sourceUrl(unidocSourceBase.value + "€{FILE_PATH}.scala") } else { Seq() } ){code} It seems more like a developers dev environment issue. I was successfully able to reproduce this in my dev environment. Environment details attached. > Broken link to scala source code in Spark Scala api Scaladoc > > > Key: SPARK-23732 > URL: https://issues.apache.org/jira/browse/SPARK-23732 > Project: Spark > Issue Type: Bug > Components: Build, Documentation, Project Infra >Affects Versions: 2.3.0, 2.3.1 > Environment: {code:java} > ~/spark/docs$ cat /etc/*release* > DISTRIB_ID=Ubuntu > DISTRIB_RELEASE=16.04 > DISTRIB_CODENAME=xenial > DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS" > NAME="Ubuntu" > VERSION="16.04.4 LTS (Xenial Xerus)" > ID=ubuntu > ID_LIKE=debian > PRETTY_NAME="Ubuntu 16.04.4 LTS" > VERSION_ID="16.04" > HOME_URL="http://www.ubuntu.com/"; > SUPPORT_URL="http://help.ubuntu.com/"; > BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"; > VERSION_CODENAME=xenial > UBUNTU_CODENAME=xenial > {code} > Using spark packaged sbt. > Other versions: > {code:java} > ~/spark/docs$ ruby -v > ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu] > ~/spark/doc
[jira] [Updated] (SPARK-23732) Broken link to scala source code in Spark Scala api Scaladoc
[ https://issues.apache.org/jira/browse/SPARK-23732?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yogesh Tewari updated SPARK-23732: -- Description: Scala source code link in Spark api scaladoc is broken. Turns out instead of the relative path to the scala files the "€\{FILE_PATH}.scala" expression in [https://github.com/apache/spark/blob/master/project/SparkBuild.scala] is generating the absolute path from the developers computer. In this case, if I try to access the source link on [https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.Accumulable], it tries to take me to [https://github.com/apache/spark/tree/v2.3.0/Users/sameera/dev/spark/core/src/main/scala/org/apache/spark/Accumulable.scala] where "/Users/sameera/dev/spark" portion of the URL is coming from the developers macos home folder. There seems to be no change in the code responsible for generating this path during the build in /project/SparkBuild.scala : Line # 252: {code:java} scalacOptions in Compile ++= Seq( s"-target:jvm-${scalacJVMVersion.value}", "-sourcepath", (baseDirectory in ThisBuild).value.getAbsolutePath // Required for relative source links in scaladoc ), {code} Line # 726 {code:java} // Use GitHub repository for Scaladoc source links unidocSourceBase := s"https://github.com/apache/spark/tree/v${version.value}";, scalacOptions in (ScalaUnidoc, unidoc) ++= Seq( "-groups", // Group similar methods together based on the @group annotation. "-skip-packages", "org.apache.hadoop" ) ++ ( // Add links to sources when generating Scaladoc for a non-snapshot release if (!isSnapshot.value) { Opts.doc.sourceUrl(unidocSourceBase.value + "€{FILE_PATH}.scala") } else { Seq() } ){code} It seems more like a developers dev environment issue. I was successfully able to reproduce this in my dev environment. Environment details attached. was: Scala source code link in Spark api scaladoc is broken. Turns out instead of the relative path to the scala files the "€\{FILE_PATH}.scala" expression in [https://github.com/apache/spark/blob/master/project/SparkBuild.scala] is generating the absolute path from the developers computer. In this case, if I try to access the source link on [https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.Accumulable], it tries to take me to [https://github.com/apache/spark/tree/v2.3.0{color:#ff}/Users/sameera/dev/spark{color}/core/src/main/scala/org/apache/spark/Accumulable.scala|https://github.com/apache/spark/tree/v2.3.0%3Cfont%20color=] where "/Users/sameera/dev/spark" portion of the URL is coming from the developers macos home folder. There seems to be no change in the code responsible for generating this path during the build in /project/SparkBuild.scala : Line # 252: {code:java} scalacOptions in Compile ++= Seq( s"-target:jvm-${scalacJVMVersion.value}", "-sourcepath", (baseDirectory in ThisBuild).value.getAbsolutePath // Required for relative source links in scaladoc ), {code} Line # 726 {code:java} // Use GitHub repository for Scaladoc source links unidocSourceBase := s"https://github.com/apache/spark/tree/v${version.value}";, scalacOptions in (ScalaUnidoc, unidoc) ++= Seq( "-groups", // Group similar methods together based on the @group annotation. "-skip-packages", "org.apache.hadoop" ) ++ ( // Add links to sources when generating Scaladoc for a non-snapshot release if (!isSnapshot.value) { Opts.doc.sourceUrl(unidocSourceBase.value + "€{FILE_PATH}.scala") } else { Seq() } ){code} It seems more like a developers dev environment issue. I was successfully able to reproduce this in my dev environment. Environment details attached. > Broken link to scala source code in Spark Scala api Scaladoc > > > Key: SPARK-23732 > URL: https://issues.apache.org/jira/browse/SPARK-23732 > Project: Spark > Issue Type: Bug > Components: Build, Documentation, Project Infra >Affects Versions: 2.3.0, 2.3.1 > Environment: {code:java} > ~/spark/docs$ cat /etc/*release* > DISTRIB_ID=Ubuntu > DISTRIB_RELEASE=16.04 > DISTRIB_CODENAME=xenial > DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS" > NAME="Ubuntu" > VERSION="16.04.4 LTS (Xenial Xerus)" > ID=ubuntu > ID_LIKE=debian > PRETTY_NAME="Ubuntu 16.04.4 LTS" > VERSION_ID="16.04" > HOME_URL="http://www.ubuntu.com/"; > SUPPORT_URL="http://help.ubuntu.com/"; > BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"; > VERSION_CODENAME=xenial > UBUNTU_CODENAME=xenial > {code} > Using spark packaged sbt. > Other versions: > {code:java} > ~/spark/docs$ ruby -v > ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu] > ~/spark/docs$ gem -v > 2.5.2.1 > ~/spark/docs$ jekyll -v > jekyll 3.7.3 > ~/spark/docs$ java -version > java version "1.8.0_112" Java(TM) SE Runtime Environment (build > 1.8.0_112-b15) Java HotSpot(TM) 64-B
[jira] [Commented] (SPARK-23732) Broken link to scala source code in Spark Scala api Scaladoc
[ https://issues.apache.org/jira/browse/SPARK-23732?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16404290#comment-16404290 ] Yogesh Tewari commented on SPARK-23732: --- Adding sourcepath to the code seems to fix the issue. {code:java} scalacOptions in (ScalaUnidoc, unidoc) ++= Seq( "-groups", // Group similar methods together based on the @group annotation. "-skip-packages", "org.apache.hadoop", "-sourcepath", (baseDirectory in ThisBuild).value.getAbsolutePath // Required for relative source links in scaladoc ) ++ ({code} > Broken link to scala source code in Spark Scala api Scaladoc > > > Key: SPARK-23732 > URL: https://issues.apache.org/jira/browse/SPARK-23732 > Project: Spark > Issue Type: Bug > Components: Build, Documentation, Project Infra >Affects Versions: 2.3.0, 2.3.1 > Environment: {code:java} > ~/spark/docs$ cat /etc/*release* > DISTRIB_ID=Ubuntu > DISTRIB_RELEASE=16.04 > DISTRIB_CODENAME=xenial > DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS" > NAME="Ubuntu" > VERSION="16.04.4 LTS (Xenial Xerus)" > ID=ubuntu > ID_LIKE=debian > PRETTY_NAME="Ubuntu 16.04.4 LTS" > VERSION_ID="16.04" > HOME_URL="http://www.ubuntu.com/"; > SUPPORT_URL="http://help.ubuntu.com/"; > BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"; > VERSION_CODENAME=xenial > UBUNTU_CODENAME=xenial > {code} > Using spark packaged sbt. > Other versions: > {code:java} > ~/spark/docs$ ruby -v > ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu] > ~/spark/docs$ gem -v > 2.5.2.1 > ~/spark/docs$ jekyll -v > jekyll 3.7.3 > ~/spark/docs$ java -version > java version "1.8.0_112" Java(TM) SE Runtime Environment (build > 1.8.0_112-b15) Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed > mode) > {code} >Reporter: Yogesh Tewari >Priority: Trivial > Labels: build, documentation, scaladocs > > Scala source code link in Spark api scaladoc is broken. > Turns out instead of the relative path to the scala files the > "€\{FILE_PATH}.scala" expression in > [https://github.com/apache/spark/blob/master/project/SparkBuild.scala] is > generating the absolute path from the developers computer. In this case, if I > try to access the source link on > [https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.Accumulable], > it tries to take me to > [https://github.com/apache/spark/tree/v2.3.0/Users/sameera/dev/spark/core/src/main/scala/org/apache/spark/Accumulable.scala] > where "/Users/sameera/dev/spark" portion of the URL is coming from the > developers macos home folder. > There seems to be no change in the code responsible for generating this path > during the build in /project/SparkBuild.scala : > Line # 252: > {code:java} > scalacOptions in Compile ++= Seq( > s"-target:jvm-${scalacJVMVersion.value}", > "-sourcepath", (baseDirectory in ThisBuild).value.getAbsolutePath // Required > for relative source links in scaladoc > ), > {code} > Line # 726 > {code:java} > // Use GitHub repository for Scaladoc source links > unidocSourceBase := s"https://github.com/apache/spark/tree/v${version.value}";, > scalacOptions in (ScalaUnidoc, unidoc) ++= Seq( > "-groups", // Group similar methods together based on the @group annotation. > "-skip-packages", "org.apache.hadoop" > ) ++ ( > // Add links to sources when generating Scaladoc for a non-snapshot release > if (!isSnapshot.value) { > Opts.doc.sourceUrl(unidocSourceBase.value + "€{FILE_PATH}.scala") > } else { > Seq() > } > ){code} > > It seems more like a developers dev environment issue. > I was successfully able to reproduce this in my dev environment. Environment > details attached. > -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Commented] (SPARK-23732) Broken link to scala source code in Spark Scala api Scaladoc
[ https://issues.apache.org/jira/browse/SPARK-23732?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16431599#comment-16431599 ] Yogesh Tewari commented on SPARK-23732: --- SPARK-23732 and SPARK-23733 are similar in nature. Will leave it to your better judgement. (y) Cheers. > Broken link to scala source code in Spark Scala api Scaladoc > > > Key: SPARK-23732 > URL: https://issues.apache.org/jira/browse/SPARK-23732 > Project: Spark > Issue Type: Bug > Components: Build, Documentation, Project Infra >Affects Versions: 2.3.0, 2.3.1 > Environment: {code:java} > ~/spark/docs$ cat /etc/*release* > DISTRIB_ID=Ubuntu > DISTRIB_RELEASE=16.04 > DISTRIB_CODENAME=xenial > DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS" > NAME="Ubuntu" > VERSION="16.04.4 LTS (Xenial Xerus)" > ID=ubuntu > ID_LIKE=debian > PRETTY_NAME="Ubuntu 16.04.4 LTS" > VERSION_ID="16.04" > HOME_URL="http://www.ubuntu.com/"; > SUPPORT_URL="http://help.ubuntu.com/"; > BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"; > VERSION_CODENAME=xenial > UBUNTU_CODENAME=xenial > {code} > Using spark packaged sbt. > Other versions: > {code:java} > ~/spark/docs$ ruby -v > ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu] > ~/spark/docs$ gem -v > 2.5.2.1 > ~/spark/docs$ jekyll -v > jekyll 3.7.3 > ~/spark/docs$ java -version > java version "1.8.0_112" Java(TM) SE Runtime Environment (build > 1.8.0_112-b15) Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed > mode) > {code} >Reporter: Yogesh Tewari >Priority: Trivial > Labels: build, documentation, scaladocs > > Scala source code link in Spark api scaladoc is broken. > Turns out instead of the relative path to the scala files the > "€\{FILE_PATH}.scala" expression in > [https://github.com/apache/spark/blob/master/project/SparkBuild.scala] is > generating the absolute path from the developers computer. In this case, if I > try to access the source link on > [https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.Accumulable], > it tries to take me to > [https://github.com/apache/spark/tree/v2.3.0/Users/sameera/dev/spark/core/src/main/scala/org/apache/spark/Accumulable.scala] > where "/Users/sameera/dev/spark" portion of the URL is coming from the > developers macos home folder. > There seems to be no change in the code responsible for generating this path > during the build in /project/SparkBuild.scala : > Line # 252: > {code:java} > scalacOptions in Compile ++= Seq( > s"-target:jvm-${scalacJVMVersion.value}", > "-sourcepath", (baseDirectory in ThisBuild).value.getAbsolutePath // Required > for relative source links in scaladoc > ), > {code} > Line # 726 > {code:java} > // Use GitHub repository for Scaladoc source links > unidocSourceBase := s"https://github.com/apache/spark/tree/v${version.value}";, > scalacOptions in (ScalaUnidoc, unidoc) ++= Seq( > "-groups", // Group similar methods together based on the @group annotation. > "-skip-packages", "org.apache.hadoop" > ) ++ ( > // Add links to sources when generating Scaladoc for a non-snapshot release > if (!isSnapshot.value) { > Opts.doc.sourceUrl(unidocSourceBase.value + "€{FILE_PATH}.scala") > } else { > Seq() > } > ){code} > > It seems more like a developers dev environment issue. > I was successfully able to reproduce this in my dev environment. Environment > details attached. > -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Commented] (SPARK-23733) Broken link to java source code in Spark Scala api Scaladoc
[ https://issues.apache.org/jira/browse/SPARK-23733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16431600#comment-16431600 ] Yogesh Tewari commented on SPARK-23733: --- SPARK-23732 and SPARK-23733 are similar in nature. Will leave it to your better judgement. (y) Cheers. > Broken link to java source code in Spark Scala api Scaladoc > --- > > Key: SPARK-23733 > URL: https://issues.apache.org/jira/browse/SPARK-23733 > Project: Spark > Issue Type: Bug > Components: Build, Documentation, Project Infra >Affects Versions: 1.6.3, 2.0.2, 2.1.2, 2.2.0 > Environment: {code:java} > ~/spark/docs$ cat /etc/*release* > DISTRIB_ID=Ubuntu > DISTRIB_RELEASE=16.04 > DISTRIB_CODENAME=xenial > DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS" > NAME="Ubuntu" > VERSION="16.04.4 LTS (Xenial Xerus)" > ID=ubuntu > ID_LIKE=debian > PRETTY_NAME="Ubuntu 16.04.4 LTS" > VERSION_ID="16.04" > HOME_URL="http://www.ubuntu.com/"; > SUPPORT_URL="http://help.ubuntu.com/"; > BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"; > VERSION_CODENAME=xenial > UBUNTU_CODENAME=xenial > {code} > Using spark packaged sbt. > Other versions: > {code:java} > ~/spark/docs$ ruby -v > ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu] > ~/spark/docs$ gem -v > 2.5.2.1 > ~/spark/docs$ jekyll -v > jekyll 3.7.3 > ~/spark/docs$ java -version > java version "1.8.0_112" Java(TM) SE Runtime Environment (build > 1.8.0_112-b15) Java HotSpot(TM) 64-Bit Server VM (build 25.112-b15, mixed > mode) > {code} >Reporter: Yogesh Tewari >Priority: Trivial > Labels: build, documentation, scaladocs > > Java source code link in Spark api scaladoc is broken. > The relative path expression "€\{FILE_PATH}.scala" in > [https://github.com/apache/spark/blob/master/project/SparkBuild.scala] has > ".scala" hardcoded in the end. If I try to access the source link on > [https://spark.apache.org/docs/1.6.3/api/scala/index.html#org.apache.spark.api.java.function.Function2], > it tries to take me to > [https://github.com/apache/spark/tree/v2.2.0/core/src/main/java/org/apache/spark/api/java/function/Function2.java.scala] > This is coming from /project/SparkBuild.scala : > Line # 720 > {code:java} > // Use GitHub repository for Scaladoc source links > unidocSourceBase := s"https://github.com/apache/spark/tree/v${version.value}";, > scalacOptions in (ScalaUnidoc, unidoc) ++= Seq( > "-groups", // Group similar methods together based on the @group annotation. > "-skip-packages", "org.apache.hadoop" > ) ++ ( > // Add links to sources when generating Scaladoc for a non-snapshot release > if (!isSnapshot.value) { > Opts.doc.sourceUrl(unidocSourceBase.value + "€{FILE_PATH}.scala") > } else { > Seq() > } > ){code} > > -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org