python-paho-template icon indicating copy to clipboard operation
python-paho-template copied to clipboard

Cannot read property 'ext' of null

Open ComanderKai77 opened this issue 2 years ago • 5 comments

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.

ComanderKai77 avatar Apr 04 '22 19:04 ComanderKai77

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] avatar Apr 04 '22 19:04 github-actions[bot]

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] avatar Aug 03 '22 00:08 github-actions[bot]

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] avatar Dec 03 '22 00:12 github-actions[bot]

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

dmozh avatar Jan 12 '23 12:01 dmozh

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] avatar May 14 '23 00:05 github-actions[bot]