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

Add testdependency #5

Open
pelikhan opened this issue Jan 29, 2019 · 11 comments
Open

Add testdependency #5

pelikhan opened this issue Jan 29, 2019 · 11 comments

Comments

@pelikhan
Copy link
Contributor

In order to build locally, add a testDependency pointing to arduino-mkr1300 in pxt.json

    "testDependencies": {
        "arduino-mkr1300": "*"
    }
@sabas1080
Copy link
Member

great, thanks!

@sabas1080
Copy link
Member

Not working for me, keep asking mbed

@sabas1080 sabas1080 reopened this Jan 29, 2019
@pelikhan
Copy link
Contributor Author

Make sure to pickup the latest pxt build >= 5.4.21

@sabas1080
Copy link
Member

now yes, but same error

{
    "name": "lora",
    "version": "0.1.8",
    "description": "Library for Lora",
    "license": "MIT",
    "files": [
        "README.md",
        "lora.cpp",
        "lora.ts",
        "shims.d.ts"
    ],
    "testFiles": [
        "test.ts"
    ],
    "public": true,
    "dependencies": {
        "core": "*"
    },
    "testDependencies": {
        "arduino-mkr1300": "*"
    },
    "installedVersion": "workspace:c965dd70-9447-403f-9564-ed88feecfd7d"
}

@pelikhan
Copy link
Contributor Author

Run

Pxt clean
Pxt build —local —force

@sabas1080
Copy link
Member

work, thanks

@pelikhan
Copy link
Contributor Author

Once you have the local build, you can do “pxt gdb”

@sabas1080
Copy link
Member

I'm seeing that I start the compilation, but still use mbed
captura de pantalla 2019-01-29 a la s 21 40 02
captura de pantalla 2019-01-29 a la s 21 39 52

@sabas1080 sabas1080 reopened this Jan 29, 2019
@sabas1080
Copy link
Member

I'm seeing that it uses a previous version of pxt-core

@pelikhan
Copy link
Contributor Author

You need Pxt-core 5.4.21 at least

@sabas1080
Copy link
Member

5.4.21

captura de pantalla 2019-01-29 a la s 22 02 13

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

2 participants