bamaer opened a new issue, #5981:
URL: https://github.com/apache/hop/issues/5981

   ### Apache Hop version?
   
   2.16.0-SNAPSHOT
   
   ### Java version?
   
   17
   
   ### Operating system
   
   Windows
   
   ### What happened?
   
   The new `hop doc` tool has multiple issues, making it close to impossible to 
use. The ticket mentions Windows as the operating system, but the issue is the 
same on Windows, MacOS and Linux.  
   
   running the `hop doc` command as specified in the docs throws an errror: 
   command: `./hop doc -n samples --include-notes --include-parameters 
--include-metadata`
   output: `2025/11/10 11:35:28 - HopDoc - ERROR: No project home folder 
specified: giving up.`
   
   updating the command to a more extended version that doesn't throw this 
error throws lots of `NullPointerExceptions`: 
   command: 
   `./hop doc -n hop-tests -s <PATH_TO_PROJECT > -t <PATH_TO_OUTPUT_FOLDER>`
   
   output (throws the same error for all processed workflows/pipelines): 
   ```
   ...
   2025/11/10 11:41:40 - General - ERROR: Error calling extension point(s) for 
the pipeline painter transform
   2025/11/10 11:41:40 - General - ERROR: java.lang.NullPointerException: 
Cannot invoke 
"org.apache.hop.ui.hopgui.perspective.HopPerspectiveManager.findPerspective(java.lang.Class)"
 because the return value of 
"org.apache.hop.ui.hopgui.HopGui.getPerspectiveManager()" is null
   2025/11/10 11:41:40 - General -         at 
org.apache.hop.ui.hopgui.HopGui.getDataOrchestrationPerspective(HopGui.java:1597)
   2025/11/10 11:41:40 - General -         at 
org.apache.hop.testing.gui.TestingGuiPlugin.getStateMap(TestingGuiPlugin.java:1180)
   2025/11/10 11:41:40 - General -         at 
org.apache.hop.testing.gui.TestingGuiPlugin.getCurrentUnitTest(TestingGuiPlugin.java:1195)
   2025/11/10 11:41:40 - General -         at 
org.apache.hop.testing.xp.DrawGoldenDataSetOnTransformExtensionPoint.callExtensionPoint(DrawGoldenDataSetOnTransformExtensionPoint.java:54)
   2025/11/10 11:41:40 - General -         at 
org.apache.hop.testing.xp.DrawGoldenDataSetOnTransformExtensionPoint.callExtensionPoint(DrawGoldenDataSetOnTransformExtensionPoint.java:41)
   2025/11/10 11:41:40 - General -         at 
org.apache.hop.core.extension.ExtensionPointMap.callExtensionPoint(ExtensionPointMap.java:149)
   2025/11/10 11:41:40 - General -         at 
org.apache.hop.core.extension.ExtensionPointHandler.callExtensionPoint(ExtensionPointHandler.java:41)
   2025/11/10 11:41:40 - General -         at 
org.apache.hop.pipeline.PipelinePainter.drawTransform(PipelinePainter.java:925)
   2025/11/10 11:41:40 - General -         at 
org.apache.hop.pipeline.PipelinePainter.drawPipeline(PipelinePainter.java:295)
   2025/11/10 11:41:40 - General -         at 
org.apache.hop.pipeline.PipelinePainter.drawPipelineImage(PipelinePainter.java:204)
   2025/11/10 11:41:40 - General -         at 
org.apache.hop.pipeline.PipelineSvgPainter.generatePipelineSvg(PipelineSvgPainter.java:82)
   2025/11/10 11:41:40 - General -         at 
org.apache.hop.documentation.PipelineDocDelegate.buildPipelineDocumentation(PipelineDocDelegate.java:81)
   2025/11/10 11:41:40 - General -         at 
org.apache.hop.documentation.DocBuilder.processHopFolder(DocBuilder.java:401)
   2025/11/10 11:41:40 - General -         at 
org.apache.hop.documentation.DocBuilder.processDocumentationFolder(DocBuilder.java:333)
   2025/11/10 11:41:40 - General -         at 
org.apache.hop.documentation.DocBuilder.buildDocumentation(DocBuilder.java:210)
   2025/11/10 11:41:40 - General -         at 
org.apache.hop.documentation.DocBuilder.run(DocBuilder.java:185)
   2025/11/10 11:41:40 - General -         at 
picocli.CommandLine.executeUserObject(CommandLine.java:2045)
   2025/11/10 11:41:40 - General -         at 
picocli.CommandLine.access$1500(CommandLine.java:148)
   2025/11/10 11:41:40 - General -         at 
picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2469)
   2025/11/10 11:41:40 - General -         at 
picocli.CommandLine$RunLast.handle(CommandLine.java:2461)
   2025/11/10 11:41:40 - General -         at 
picocli.CommandLine$RunLast.handle(CommandLine.java:2423)
   2025/11/10 11:41:40 - General -         at 
picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
   2025/11/10 11:41:40 - General -         at 
picocli.CommandLine$RunLast.execute(CommandLine.java:2425)
   2025/11/10 11:41:40 - General -         at 
picocli.CommandLine.execute(CommandLine.java:2174)
   2025/11/10 11:41:40 - General -         at 
org.apache.hop.hop.Hop.main(Hop.java:129)
   2025/11/10 11:41:40 - General - ERROR: Error calling extension point(s) for 
the pipeline painter transform
   ...
   ```
   
   
   ### Issue Priority
   
   Priority: 2
   
   ### Issue Component
   
   Component: CLI


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to