Conversation
|
Regarding the WSL2 shenanigans, Some adjustments were made to allow us to use the"Clone in container" option of VSCode, Works way way nicer. ReadMe has been updated to reflect the steps for building in there. |
|
I think is ready for some testing. I do not have a Linux box to test it without using the devcontainer... so some help there would be appreciated + some documentation review. I need to setup Launch Commands in the launch.json for non devcontainer stuff but again no way to test it... |
|
I am still waiting for a 2nd developer to test it... as far as I know the devcontainer and supporting elements are done...Except clang support. |
Not going to lie but that's kind of hurt, The first line of this PR calls out the original authors PR. You do great work for this repo and I applaud the effort, but the first commit also points to his PR, I point it out in the first commit. He is credited, I didn't tag @nscooling just mentioning his PR did that. So instead of playing semantics maybe test it and let me know if it works for you :) |
Sorry, I didn't mean to upset you. I definitely don't think that you improving the code is wrong, and this is a very similar situation as what happened in my PR. What I meant was that the commits made by the original author don't exist here, so git thinks you made the changes. I think this can still be fixed with git so there won't be any issues, but someone had to mention it so this doesn't become a bigger issue. |
|
If you rebase on top of #219 then the original commits will be kept, which would be ideal when basing your work on something. |
And my lack of understanding git meant I fully did not understand where you were going. No worries! Just want to help contribute and be productive and it felt harsh when I really just have/had no idea how to attribute things to him properly! Thusly did it the way I knew how... :) I definitely want to attribute Niall where appropriate...just picked the only way I knew how! No hard feelings. Again keep up the awesome work!
I will give this a try and see if I can update this to do that then :) ... never touched the rebase button before so its a little daunting x.x |
|
OK this updated Nialls stuff and then merged mine...I need to retest it all but it seems to have re-based properly...that was an experience.... |
|
Clang-tidy and Clang-format both now have plugins configured for them and are working in the container. |
|
@geekbozu Great work and thanks for rebasing your work on top of the previous one! |
|
At this point I am happy with that! It seems to work correctly on my 50th or so container rebuild..... so I'm going to guess it will work on 51+ as well :P |
|
Thanks @geekbozu and everyone for this PR and review! |
|
Thanks for this - it made it trivial for me to clone and get started with InfiniTime as a complete outsider to the project (though experienced with C, C++, and docker). |
Rehash of #219 using his docker container,
Applied a handful of updates to make it work with the current codebase/names
"fixed" 2 of the issues below and added a readme as well
Further work TBD
There is still an issue with running bash scripts in the Win10 instance due to the classic ^M problem. dos2unix is part of the container but permissions are getting in the wayclang-tidy and clang-format are part of the image but are not being invoke using VSCodeThe project is not using the VSCode cmake extensionFlashing the target through OpenOCD/J-Link from within the containerThe ^M problem is not something we really need to worry about...its a git/line ending setting. Git should be checking out with UNIX line ending when working with Vscode as it understands them...
No change to clang support maybe eventually....
We now use the cmake extension to handle build configuration AFTER the initial configuration. This leverages CMakesCache.txt
Instructions on how to flash/debug with OpenOCD remotely and a launch config for such have been added
The only "glaring" issue I know of at this point is a WSL2 issue on windows where windows filesystem access is slow. This can be gotten around by cloning the repo in the WSL2 machine and building it from there if so desired, this how ever does not effect it from working its just a nuisance worth mentioning.