rp-rs / pio-rs

Support crate for Raspberry Pi's PIO architecture.
MIT License
149 stars 22 forks source link

pio_proc::pio_file is only picking up file changes after a cargo clean #53

Open JomerDev opened 10 months ago

JomerDev commented 10 months ago

As the title says, pio_proc::pio_file seems to only pick up changes to the pio file after a cargo clean call and not otherwise. If it is supposed to be this way I'd ask to at least reflect that in the documentation

jannic commented 10 months ago

@JomerDev I tried to reproduce this, but noticed that rust usually seems to pick up changes immediately, without needing a cargo clean. But this only works when the pio file is inside your source directory. (I'm not saying that this isn't still a bug that should be fixed. I just try to fully understand what's happening.)

JomerDev commented 10 months ago

I got the issue inside embassy's examples directory. The pio file was also inside the same directory next to the code. It could of course be that calling cargo run --bin pio_uart makes rust behave differently/ignore files with paths

jannic commented 10 months ago

I got the issue inside embassy's examples directory. The pio file was also inside the same directory next to the code. It could of course be that calling cargo run --bin pio_uart makes rust behave differently/ignore files with paths

Thank you, I was able to reproduce the issue. #54 should solve the issue, but is not yet tested sufficiently.

kevinclark commented 3 months ago

I'd love to see this get resolved. Let me know if there's anything I can do to help test.