4 Replies Latest reply on Nov 15, 2013 6:53 AM by Ruben Ruben

    .yml parser broken on RhoStudio?

    Ruben Ruben

      Hi,

       

      I don't know exactly what I did, but I'm unable to open my build.yml file. I always get a java.lang.NullPointerException:

       

      java.lang.NullPointerException

        at rhogenwizard.buildfile.AppYmlFile.getCapabilities(AppYmlFile.java:134)

        at rhogenwizard.editors.YmlFileEditor.pageChange(YmlFileEditor.java:359)

        at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1067)

      ..... (and the trace goes on about 50 lines)

       

      The app is working correctly so I guess I don't have any syntax error on the yml file (I've not used any tabs), but even if I had a syntax error, it should at least let me open the file.

       

      Am I doing something wrong?

       

      Thanks.

        • Re: .yml parser broken on RhoStudio?
          BHAKTA RANJAN SATAPATHY

          Can you please provide your build.yml file ?

           

          To open build.yml (even if it has syntax error) , In rhostudio right click on build.yml file Open with -> Text Editor

           

          Thanks

          Bhakta

          • Re: .yml parser broken on RhoStudio?
            Ruben Ruben

            Sorry, forgot to add my build.yml:

             

            #sdk: "D:/MotorolaRhoMobileSuite4.0.0/ruby/lib/ruby/gems/1.9.1/gems/rhodes-4.0.0"

            sdkversion: "4.0.0"

            name: "myApp"

            version: 1.0

            vendor: "rhomobile"

            build: "debug"

            bbver: 6.0

            applog: "rholog.txt"

            iphone:

              configuration: "Release"

              sdk: "iphonesimulator6.0"

              provisionprofile:

              codesignidentity:

              entitlements:

              BundleIdentifier: "com.rhomobile.myapp"

              BundleURLScheme: "myapp"

            wp:

              productid: "940b6a40-1c5c-0131-e989-0024215a0a07"

            symbian:

              uid: "0xe30aa89b"

            android:

              version: "4.0.3"

              emulator: "AndroidVirtualDevice"

              capabilities:

                - hardware_acceleration

              android_title: 0

            extensions:

              - rhoconnect-client

              - rholang

            • Re: .yml parser broken on RhoStudio?
              Robert Galvin

              Usually it is some hidden character that RhoStudio/Eclipse pukes on. I would suggest that you generate a new project and then open the 'corrupt' on in another editor (simple etxt editor) and paste the clean one into it. Then you can modify it as you see fit.

                • Re: .yml parser broken on RhoStudio?
                  Ruben Ruben

                  Thanks Robert. This works. Other option ive found is just to right-click and tell eclipse to open the file with the embedded text-editor. This way it wont try to parse the file, and since yml syntax is pretty straightforward, I probably don´t need syntax checking anyways.

                  1 of 1 people found this helpful