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

shims.d.ts and enums.d.ts don't generated (pxt buildshims ?) #10401

Open
nevergone opened this issue Feb 26, 2025 · 2 comments
Open

shims.d.ts and enums.d.ts don't generated (pxt buildshims ?) #10401

nevergone opened this issue Feb 26, 2025 · 2 comments

Comments

@nevergone
Copy link

nevergone commented Feb 26, 2025

I would like build the following micro:bit extension: https://github.com/emakefun/pxt-irRemote (commit: 449e6642)
I used the following descriptions:

Used build environment: docker pull nevergone/microbit-makecode-editor:7.0.57-tools

The error is shown here: Image

You cannot access the content of the C++ code, even though it is also found in the pxt.json file. Does not generate shims.d.ts and enums.d.ts files and pxt buildshims command does nothing.

What am I doing wrong? The extension can be added to the makecode, so it can definitely be built somehow.

@nevergone
Copy link
Author

Attached builded extension.

binary.hex.zip

@nevergone
Copy link
Author

So, if an expansion contains only TS code, it will be compiled by "pxt serve" if it is found in the pxtarget.json file.

If an extension also contains C++ code, it will not be compiled by "pxt serve" and if it is found in the "pxtarget.json" file under the "bundleddirs" entry, it cannot be added directly to the project because it will cause the above error.
The only way to use it is to compile the extension with the "pxt build" command and then add the "binary.hex" file as a makecode extension in the web interface.

Is it possible to use "pxt serve" in this case? All necessary tools are available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant