jmoalves / levain

Something to help you make your software grow
MIT License
8 stars 5 forks source link

Unhandled file configuration error #157

Closed iecker closed 5 months ago

iecker commented 9 months ago

When the configuration file has a blank package (configuration error), the code crashes without further information.

  # IDE
  - cmder
  - vscode
  - intellij
  - 
  - oracle
20231016-102523 DEBUG removeExtension <- levain,cmder,vscode,,intellij,oracle-sqldeveloper
20231016-102523 ERROR 
20231016-102523 ERROR ********************************************************************************
20231016-102523 ERROR 
20231016-102523 ERROR TypeError: Cannot read properties of null (reading 'replace')
    at Function.removeExtension (file:///(...)/levain/src/lib/package/package_manager.ts:69:18)
    at PackageManager.resolvePackages (file:///(...)/levain/src/lib/package/package_manager.ts:23:24)
    at new OsShell (file:///(...)/levain/src/lib/os/os_shell.ts:27:67)
    at Shell.execute (file:///(...)/levain/src/cmd/shell.ts:62:34)
    at eventLoopTick (ext:core/01_core.js:181:11)
    at async Loader.command (file:///(...)/levain/src/lib/loader.ts:28:9)
    at async LevainCli.execute (file:///(...)/levain/src/levain_cli.ts:98:17)
    at async Levain.runLevinWithLog (file:///(...)/levain/levain.ts:63:13)
    at async file:///(...)/levain/levain.ts:128:5
20231016-102523 ERROR 
20231016-102523 ERROR ********************************************************************************
20231016-102523 ERROR 
20231016-102523 DEBUG
jmoalves commented 5 months ago

Release 0.90+