Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'ext' of null #128

Open
ComanderKai77 opened this issue Apr 4, 2022 · 5 comments
Open

Cannot read property 'ext' of null #128

ComanderKai77 opened this issue Apr 4, 2022 · 5 comments
Labels
bug Something isn't working stale

Comments

@ComanderKai77
Copy link

ComanderKai77 commented Apr 4, 2022

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 ComanderKai77 added the bug Something isn't working label Apr 4, 2022
@github-actions
Copy link

github-actions bot commented Apr 4, 2022

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
Copy link

github-actions bot commented Aug 3, 2022

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

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 ❤️

@github-actions github-actions bot added stale and removed stale labels Aug 3, 2022
@github-actions
Copy link

github-actions bot commented Dec 3, 2022

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

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 ❤️

@github-actions github-actions bot added the stale label Dec 3, 2022
@dmozh
Copy link

dmozh commented Jan 12, 2023

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

@github-actions github-actions bot removed the stale label Jan 13, 2023
@github-actions
Copy link

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

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 ❤️

@github-actions github-actions bot added the stale label May 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants