Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-2212

[Helium] inaccurate error message when local helium bundle path is invalid (HeliumBundleFactory)

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: helium
    • Labels:
      None

      Description

      HeliumBundleFactory throws an inaccurate error message when

      • local helium bundle path is invalid. (artifact)
      ERROR [2017-03-05 12:54:14,308] ({qtp1121647253-68} HeliumBundleFactory.java[buildBundle]:131) - Can't get module name and version of package zeppelin-markdown-spell
      

      This should be something like Can't find local module named zeppelin-markdown-spell

      See also: https://github.com/apache/zeppelin/blob/b9fa42dda13b66fb65e01237a6f86eea5dcdc5b5/zeppelin-zengine/src/main/java/org/apache/zeppelin/helium/HeliumBundleFactory.java#L336-L340

      if (isLocalPackage(pkg)) {
            File packageJson = new File(artifact, "package.json");
            if (!packageJson.isFile()) { // here
              return null;
            }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              1ambda Hoon Park
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: