Skip to content

Error running OpenKNXproducer on v5.1.5 #2

Description

@sgeb

Steps to reproduce

  1. Installed latest OpenKNXproducer v3.12.2 with .\Install-OpenKNX-Tools.ps1

  2. Cloned and prepared dependencies (tag v5.1.5 == f13098e)

    git clone https://github.com/OpenKNX/OAM-RaumController
    cd OAM-RaumController
    git checkout v5.1.5
    cd restore
    .\Restore-Dependencies.ps1
    

    Two smaller issues related to this:

    1. The command .\Restore-Dependencies.ps1 contains the following error to checkout bd01c36 on OGM-Common:

      - CloneRepository - Cloned  OGM-Common : 'https://github.com/OpenKNX/OGM-Common' to '[...path...]\dev\OGM-Common'  √
      error: pathspec 'bd01c36' did not match any file(s) known to git
      - CloneRepository - 'OGM-Common' Hash 'bd01c36' Checked out. √
      

      Neither commit bd01c36 nor branch new/improve-build-debug-environment exist in project OGM-Common. This is fixed by pinning to 193e462 in dependencies.txt, which is the release commit for v1.5.1:

        06ebdcb v1 lib/OFM-VirtualButton https://github.com/OpenKNX/OFM-VirtualButton.git
      - bd01c36 new/improve-build-debug-environment lib/OGM-Common https://github.com/OpenKNX/OGM-Common
      + 193e462 v1 lib/OGM-Common https://github.com/OpenKNX/OGM-Common
        d4f8a07 v1 lib/OGM-HardwareConfig https://github.com/OpenKNX/OGM-HardwareConfig
    2. The command .\Restore-Dependencies.ps1 fails to pin the commit but the overall command doesn't fail. Better would be to fail the entire command. This led me to overlook the error multiple times.

  3. Run task OpenKNXproducer OAM-RaumController in VSCode.

Results

Converting KO-Ids to Ets naming convention... OK
Writing debug file to src/RaumController.debug.xml
Unchanged header file include/knxprod.h, not written to disk
Validation against ..\Organization\knxprod-support\knx_project_20\knx.xsd... Xsd-File not found!

Generating knxprod file...........................................................................................................................................................................................................



Error during knxprod file generation:


Error during knxprod file generation:
System.NullReferenceException: Object reference not set to an instance of an object.
   at OpenKNXproducer.Program.ExportKnxprod(String iWorkingDir, String iKnxprodFileName, String iTempXmlFileName, String iXsdFileName, Boolean iIsDebug, Boolean iAutoXsd, String iXml)
--> Skipping creation of src/RaumController.knxprod due to check errors! <--

 *  The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command ~/bin/OpenKNXproducer.exe create --Debug --HeaderFileName=include/knxprod.h src/RaumController" terminated with exit code: 1.

Other information

Tried with ETS v6.0.6, v6.2.0 and v6.3.1 -- same results.
Tried with OpenKNXproducer in different recent versions -- same results.

=> Is there an additional step needed to produce the knxprod file? Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions