asyncapi / python-paho-template

Python Paho template for the AsyncAPI generator
Apache License 2.0
25 stars 24 forks source link

Cannot read property 'ext' of null #128

Open ComanderKai77 opened 2 years ago

ComanderKai77 commented 2 years ago

Describe the bug

I'm trying to generate Python code from the repo https://bitbucket.org/qbmt/zbos-mqtt-api/src/master/ . When I'm running ag master/zbos_mqtt-all-asyncapi.json @asyncapi/python-paho-template -o python I'm getting the following error:

Something went wrong: Template render error: (/usr/local/lib/node_modules/@asyncapi/generator/node_modules/@asyncapi/python-paho-template/template/main.py) [Line 25, Column 27] TypeError: Cannot read property 'ext' of null at Object._prettifyError (/usr/local/lib/node_modules/@asyncapi/generator/node_modules/nunjucks/src/lib.js:36:11) at /usr/local/lib/node_modules/@asyncapi/generator/node_modules/nunjucks/src/environment.js:563:19 at Template.root [as rootRenderFunc] (eval at _compile (/usr/local/lib/node_modules/@asyncapi/generator/node_modules/nunjucks/src/environment.js:633:18), <anonymous>:305:3) at Template.render (/usr/local/lib/node_modules/@asyncapi/generator/node_modules/nunjucks/src/environment.js:552:10) at Environment.renderString (/usr/local/lib/node_modules/@asyncapi/generator/node_modules/nunjucks/src/environment.js:380:17) at /usr/local/lib/node_modules/@asyncapi/generator/lib/renderer/nunjucks.js:32:14 at new Promise (<anonymous>) at nunjucksExport.renderNunjucks (/usr/local/lib/node_modules/@asyncapi/generator/lib/renderer/nunjucks.js:31:10) at Generator.renderFile (/usr/local/lib/node_modules/@asyncapi/generator/lib/generator.js:703:12) at Generator.renderAndWriteToFile (/usr/local/lib/node_modules/@asyncapi/generator/lib/generator.js:617:27) at Generator.generateFile (/usr/local/lib/node_modules/@asyncapi/generator/lib/generator.js:667:5) at Generator.filesGenerationHandler (/usr/local/lib/node_modules/@asyncapi/generator/lib/generator.js:542:7) at Walker.<anonymous> (/usr/local/lib/node_modules/@asyncapi/generator/lib/generator.js:466:11)

The generation of markdown (@asyncapi/markdown-template) is working so there seems to be a problem with the Python generator.

How to Reproduce

git clone https://bitbucket.org/qbmt/zbos-mqtt-api/src/master/ ag master/zbos_mqtt-all-asyncapi.json @asyncapi/python-paho-template -o python

Expected behavior

The Python code should be generated.

github-actions[bot] commented 2 years ago

Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity :sleeping:

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience :heart:

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity :sleeping:

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience :heart:

dmozh commented 1 year ago

This comment for is for drawing attention to the problem This is actual problem, i have similiar problem image

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity :sleeping:

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience :heart: