Coder Social home page Coder Social logo

Comments (14)

Andrei-Pozolotin avatar Andrei-Pozolotin commented on July 3, 2024

try separate config for scaladoc execution
https://random-maven.github.io/scalor-maven-plugin/2.12/scaladoc-main-mojo.html#zincRegexAnyScala

<executions>
   <execution>
      <goals>
         <goal>compile-main</goal>
      </goals>
   </execution>
   <execution>
      <goals>
         <goal>scaladoc-main</goal>
      </goals>
      <configuration>
         <zincRegexAnyScala>...</zincRegexAnyScala>
      </configuration>
   </execution>
</executions>

from scalor-maven-plugin.

m50d avatar m50d commented on July 3, 2024

Changing that setting doesn't seem to do anything - all scala files are still passed to the scaladoc invocation, even if I set the regex to something completely bogus. Searching this repository it doesn't look like that config is actually used in the plugin code at all?

from scalor-maven-plugin.

Andrei-Pozolotin avatar Andrei-Pozolotin commented on July 3, 2024

ok, thinking

from scalor-maven-plugin.

Andrei-Pozolotin avatar Andrei-Pozolotin commented on July 3, 2024
  1. now using separate regex include/exclude for relevant goals
<formatRegexScalaInclude>...</formatRegexScalaInclude>
<formatRegexScalaExclude>...</formatRegexScalaExclude>

<compileRegexScalaInclude>...</compileRegexScalaInclude>
<compileRegexScalaExclude>...</compileRegexScalaExclude>

<scaladocRegexScalaInclude>...</scaladocRegexScalaInclude>
<scaladocRegexScalaExclude>...</scaladocRegexScalaExclude>

i.e.
https://github.com/random-maven/scalor-maven-plugin/blob/develop/src/main/scala/com/carrotgarden/maven/scalor/document/Scaladoc.scala#L54

  1. please try fresh 1.4.0
    https://bintray.com/random-maven/maven/scalor-maven-plugin_2.12

from scalor-maven-plugin.

m50d avatar m50d commented on July 3, 2024

Hi, the exclude config still doesn't seem to do anything. E.g. even if I set <scaladocRegexScalaExclude>.*</scaladocRegexScalaExclude> it's still passing all my source files into Scaladoc:

[INFO] [scaladoc-macro] [DBUG] Calling Scaladoc with arguments:
	-d
	C:\Users\md401\eclipse-workspace\tierney-aggregator\core\target\site\scaladoc-main
	-bootclasspath
	C:\Users\md401\.m2\repository\org\scala-lang\scala-library\2.12.4\scala-library-2.12.4.jar
	-classpath
	C:\Users\md401\.m2\repository\org\typelevel\cats-free_2.12\1.0.0-RC2\cats-free_2.12-1.0.0-RC2.jar;C:\Users\md401\.m2\repository\org\typelevel\cats-macros_2.12\1.0.0-RC2\cats-macros_2.12-1.0.0-RC2.jar;C:\Users\md401\.m2\repository\org\typelevel\cats-core_2.12\1.0.0-RC2\cats-core_2.12-1.0.0-RC2.jar;C:\Users\md401\.m2\repository\org\typelevel\cats-kernel_2.12\1.0.0-RC2\cats-kernel_2.12-1.0.0-RC2.jar;C:\Users\md401\.m2\repository\org\typelevel\machinist_2.12\0.6.2\machinist_2.12-0.6.2.jar;C:\Users\md401\.m2\repository\org\scala-lang\scala-reflect\2.12.4\scala-reflect-2.12.4.jar;C:\Users\md401\.m2\repository\org\typelevel\kittens_2.12\1.0.0-RC1\kittens_2.12-1.0.0-RC1.jar;C:\Users\md401\.m2\repository\org\typelevel\alleycats-core_2.12\1.0.0-RC1\alleycats-core_2.12-1.0.0-RC1.jar;C:\Users\md401\.m2\repository\org\typelevel\export-hook_2.12\1.2.0\export-hook_2.12-1.2.0.jar;C:\Users\md401\.m2\repository\com\chuusai\shapeless_2.12\2.3.2\shapeless_2.12-2.3.2.jar;C:\Users\md401\.m2\repository\org\typelevel\macro-compat_2.12\1.1.1\macro-compat_2.12-1.1.1.jar;C:\Users\md401\.m2\repository\org\scala-lang\scala-compiler\2.12.4\scala-compiler-2.12.4.jar;C:\Users\md401\.m2\repository\org\scala-lang\modules\scala-xml_2.12\1.0.6\scala-xml_2.12-1.0.6.jar;C:\Users\md401\.m2\repository\org\scala-lang\scala-reflect\2.12.4\scala-reflect-2.12.4.jar
model contains 1 documentable templates
[INFO] [scaladoc] Invoking goal: scaladoc-main
[INFO] [scaladoc-main] Generating Scaladoc: C:\Users\md401\eclipse-workspace\tierney-aggregator\core\target\site\scaladoc-main
[INFO] [scaladoc-main] Invoking Zinc compiler: Scalor [60d975382eaf68ec152bc305f82611e8]: 2.12.4
[INFO] [scaladoc-main] [DBUG] Returning already retrieved and compiled bridge: C:\Users\md401\.m2\repository\org\scala-sbt\compiler-bridge_2.12\1.1.1\compiler-bridge_2.12-1.1.1.jar.
[INFO] [scaladoc-main] [DBUG] Calling Scaladoc with arguments:
	-d
	C:\Users\md401\eclipse-workspace\tierney-aggregator\core\target\site\scaladoc-main
	-bootclasspath
	C:\Users\md401\.m2\repository\org\scala-lang\scala-library\2.12.4\scala-library-2.12.4.jar
	-classpath
	C:\Users\md401\eclipse-workspace\tierney-aggregator\core\target\classes;C:\Users\md401\.m2\repository\org\typelevel\cats-free_2.12\1.0.0-RC2\cats-free_2.12-1.0.0-RC2.jar;C:\Users\md401\.m2\repository\org\typelevel\cats-macros_2.12\1.0.0-RC2\cats-macros_2.12-1.0.0-RC2.jar;C:\Users\md401\.m2\repository\org\typelevel\cats-core_2.12\1.0.0-RC2\cats-core_2.12-1.0.0-RC2.jar;C:\Users\md401\.m2\repository\org\typelevel\cats-kernel_2.12\1.0.0-RC2\cats-kernel_2.12-1.0.0-RC2.jar;C:\Users\md401\.m2\repository\org\typelevel\machinist_2.12\0.6.2\machinist_2.12-0.6.2.jar;C:\Users\md401\.m2\repository\org\scala-lang\scala-reflect\2.12.4\scala-reflect-2.12.4.jar;C:\Users\md401\.m2\repository\org\typelevel\kittens_2.12\1.0.0-RC1\kittens_2.12-1.0.0-RC1.jar;C:\Users\md401\.m2\repository\org\typelevel\alleycats-core_2.12\1.0.0-RC1\alleycats-core_2.12-1.0.0-RC1.jar;C:\Users\md401\.m2\repository\org\typelevel\export-hook_2.12\1.2.0\export-hook_2.12-1.2.0.jar;C:\Users\md401\.m2\repository\com\chuusai\shapeless_2.12\2.3.2\shapeless_2.12-2.3.2.jar;C:\Users\md401\.m2\repository\org\typelevel\macro-compat_2.12\1.1.1\macro-compat_2.12-1.1.1.jar;C:\Users\md401\.m2\repository\org\scala-lang\scala-compiler\2.12.4\scala-compiler-2.12.4.jar;C:\Users\md401\.m2\repository\org\scala-lang\modules\scala-xml_2.12\1.0.6\scala-xml_2.12-1.0.6.jar;C:\Users\md401\.m2\repository\org\scala-lang\scala-reflect\2.12.4\scala-reflect-2.12.4.jar
	C:\Users\md401\eclipse-workspace\tierney-aggregator\core\src\main\scala\tierney\core\EitherKSupport.scala
	C:\Users\md401\eclipse-workspace\tierney-aggregator\core\src\main\scala\tierney\core\FunctorK.scala
	C:\Users\md401\eclipse-workspace\tierney-aggregator\core\src\main\scala\tierney\core\FunctorKK.scala
	C:\Users\md401\eclipse-workspace\tierney-aggregator\core\src\main\scala\tierney\core\LazyFunctionK.scala
	C:\Users\md401\eclipse-workspace\tierney-aggregator\core\src\main\scala\tierney\core\LazyFunctionKK.scala
	C:\Users\md401\eclipse-workspace\tierney-aggregator\core\src\main\scala\tierney\core\package.scala
[ERROR] [scaladoc-main] [FAIL] [Error] C:\Users\md401\eclipse-workspace\tierney-aggregator\core\src\main\scala\tierney\core\EitherKSupport.scala:10: not found: type ?
...

from scalor-maven-plugin.

Andrei-Pozolotin avatar Andrei-Pozolotin commented on July 3, 2024
  1. can not reproduce, here is integration test:

https://github.com/random-maven/scalor-maven-plugin/tree/develop/src/it/test-any/src/main/scala/any

https://github.com/random-maven/scalor-maven-plugin/blob/develop/src/it/test-any/pom.xml#L75

https://github.com/random-maven/scalor-maven-plugin/blob/develop/src/it/test-any/verify.groovy#L20

  1. which builds fine on windows:

a) compile-main includes all by default:
https://ci.appveyor.com/project/random-maven/scalor-maven-plugin/build/57/job/wh3rrapd543nsods#L4481

4481[INFO] [INFO] [compile-main] Sources list:
4482[INFO]    C:\projects\scalor-maven-plugin\cross\2.12\target\it\test-any\src\main\scala\any\Main.scala
4483[INFO]    C:\projects\scalor-maven-plugin\cross\2.12\target\it\test-any\src\main\scala\any\Skip.scala

b) scaladoc-main excludes as configured in pom.xml:
https://ci.appveyor.com/project/random-maven/scalor-maven-plugin/build/57/job/wh3rrapd543nsods#L4603

4604[INFO] [INFO] [scaladoc-main] Sources list:
4605[INFO]    C:\projects\scalor-maven-plugin\cross\2.12\target\it\test-any\src\main\scala\any\Main.scala

from scalor-maven-plugin.

Andrei-Pozolotin avatar Andrei-Pozolotin commented on July 3, 2024

resolved https://github.com/random-maven/scalor-maven-plugin/releases/tag/1.4.0.20180329174003

from scalor-maven-plugin.

m50d avatar m50d commented on July 3, 2024

Can't reproduce the fix using 1.4.0.20180329174003, but I can't see the "Sources list:" line by setting <zincLogSourcesList>true</zincLogSourcesList> either. Something seems very weird.

m50d/tierney#35 is where I'm trying to use this, the travis build https://travis-ci.org/m50d/tierney/builds/360624711 is showing the same behaviour I'm seeing. Can you see what I'm doing wrong?

from scalor-maven-plugin.

Andrei-Pozolotin avatar Andrei-Pozolotin commented on July 3, 2024
  1. checking

  2. zincLogSourcesList is enabled and present in core
    https://travis-ci.org/m50d/tierney/builds/360624711#L4780
    https://travis-ci.org/m50d/tierney/builds/360624711#L3746
    and not enabled and missing in free, or did you mean something else?

  3. scaladocRegexScalaExclude basic mistake was:

  • need to use full path regex match pattern
  • NOT just file name match
<scaladocRegexScalaExclude>.+(EitherKSupport|FunctionKK|FunctorKK|FunctorK|LazyFunctionKK|FixKTest|package)[.]scala</scaladocRegexScalaExclude>
<scaladocRegexScalaExclude>.+(FreeApplicativeSupport|FreeSupport|TierneyFree|TierneyFreeTest|Programs|Github|ParallelApplicativeTest|package)[.]scala</scaladocRegexScalaExclude>
  1. builds fine now
    https://travis-ci.org/m50d/tierney/builds/361252354

  2. given amount of exclude, scaladoc becomes meaningliness

  • lets work with zinc / kind-projector people to resolve underlying scaladoc issue

from scalor-maven-plugin.

m50d avatar m50d commented on July 3, 2024

Hmm, looks like I misread the logs and the exclude in tierney-core was working? Thanks for the fix.

Addressing the scaladoc issue is on my radar, but getting some sort of working scaladoc jar was the important thing as having a doc jar is a requirement for releasing to maven central.

from scalor-maven-plugin.

m50d avatar m50d commented on July 3, 2024

Build passed before merging but now can't resolve that release of the plugin? https://travis-ci.org/m50d/tierney/builds/361796725?utm_source=github_status&utm_medium=notification

from scalor-maven-plugin.

Andrei-Pozolotin avatar Andrei-Pozolotin commented on July 3, 2024

need to keep updating to live version, they change after each commit and by cron
https://bintray.com/random-maven/maven/scalor-maven-plugin_2.12
https://travis-ci.org/random-maven/scalor-maven-plugin/builds

from scalor-maven-plugin.

m50d avatar m50d commented on July 3, 2024

Thanks, working now.

from scalor-maven-plugin.

Andrei-Pozolotin avatar Andrei-Pozolotin commented on July 3, 2024

resolved by https://github.com/random-maven/scalor-maven-plugin/releases/tag/1.4.1.20180403213227

from scalor-maven-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.