inductiveautomation / inductiveautomation/ignition-module-tools

NPE if running in Git Bash on Windows

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
73
Forks
20
PR merge metrics
No merged PRs in 30d

Description

Works okay in cmd.exe/Powershell, so maybe line endings?
```
pgriffith@DV-FXJY5M2-LT MINGW64 ~/IdeaProjects
$ ./ignition-module-gen.exe
** Ignition Module Generator **
Please provide some information so we can generate your skeleton module.
Press 'Enter' to use default if a default is stated as available.
java.lang.NullPointerException
at io.ia.sdk.tools.module.cli.ModuleGeneratorCli.prompt(ModuleGeneratorCli.kt:58)
at io.ia.sdk.tools.module.cli.ModuleGeneratorCli.call(ModuleGeneratorCli.kt:73)
at io.ia.sdk.tools.module.cli.ModuleGeneratorCli.call(ModuleGeneratorCli.kt:26)
at picocli.CommandLine.executeUserObject(CommandLine.java:1853)
at picocli.CommandLine.access$1100(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2255)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2249)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2213)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2080)
at picocli.CommandLine.execute(CommandLine.java:1978)
at io.ia.sdk.tools.module.cli.ModuleGeneratorCli$Companion.main(ModuleGeneratorCli.kt:146)
at io.ia.sdk.tools.module.cli.ModuleGeneratorCli.main(ModuleGeneratorCli.kt)
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at ModuleGeneratorCli.kt:58 and trace the prompt call shown in the stack trace. Reproduce the generator under Git Bash on Windows, compare its input or line-ending behavior with cmd.exe and PowerShell, and verify that the generator no longer throws a NullPointerException there.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, kotlin
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.