danger / swift

⚠️ Stop saying "you forgot to …" in code review
https://danger.systems/swift/
MIT License
1.05k stars 141 forks source link

Cannot run danger-swift local #561

Open rarias84 opened 1 year ago

rarias84 commented 1 year ago

I could run swift run danger-swift local --base dev without problems but now when I run the command I get the following

Error: TypeError: Cannot read property 'metadata' of undefined at apiForDSL (/snapshot/danger-js/distribution/runner/jsonToDSL.js:133:78) at /snapshot/danger-js/distribution/runner/jsonToDSL.js:84:23 at step (/snapshot/danger-js/distribution/runner/jsonToDSL.js:52:23) at Object.next (/snapshot/danger-js/distribution/runner/jsonToDSL.js:33:53) at /snapshot/danger-js/distribution/runner/jsonToDSL.js:27:71 at new Promise () at /snapshot/danger-js/distribution/runner/jsonToDSL.js:23:12 at jsonToDSL (/snapshot/danger-js/distribution/runner/jsonToDSL.js:77:49) at /snapshot/danger-js/distribution/commands/utils/runDangerSubprocess.js:171:68 at step (/snapshot/danger-js/distribution/commands/utils/runDangerSubprocess.js:44:23)

f-meloni commented 1 year ago

It seems this error is coming from Danger-JS 🤔

rarias84 commented 1 year ago

I use danger version 11.2.1 and danger swift 3.15.0 . I can see a danger-response.json but cannot see the report in the terminal just get the error above