Sketchpad
- 12 Devlogs
- 32 Total hours
A native macOS IDE for Arduino development built with SwiftUI powered by arduino-cli
A native macOS IDE for Arduino development built with SwiftUI powered by arduino-cli
so i been working on a new library and board manager there still some bugs and quirk but it mostly useable also i just added the app icon also tbh i spend more than just 3h it was like 5h cuz i can’t figure out what wrong with the library search rpc turn out the response is just too big so the response limit got cut off and the grpc error code isn’t just any helpful it just say operation cancel so yea that was a pain
so i been working on a swiftui arduino ide for a while and last month i am really busy (atleast i think so to myself) so i didn’t really do anything after the last devlog but now that stardance is ending (sadd) i feel like it a waste if am not trying to ship it so i been trying to refactor and polish the project to a small mvp that is stable enough that i can ship my goal for the ship is just you can add additional board you can install uninstall upgrade downgrade library and board and compile flash and maybe serial monitor if i had time. but the video you see below might look weird the last devlog there a lot more stuff so i been refactoring a lot of the ui code and backend code so right now the backend logic is ready just need the ui that i will try and finish tmr and hopefully we can ship it soon
so the old codebase was a mess so i decided to reset and build sketchpad2 which is going better cuz instead of trying to figure out swift my self and shoot myself in the foot a thousand time i decide to let codex help me implement my idea instead and yea i will shelf learning swiftui myself later when i got more free time and not trying to make arduino editor to use in my project
so from the reset i change the app to be document app and decided against NavigationSplitView and just use a plain simple editor view toolbar
so i just setup https://github.com/mchakravarty/CodeEditorView and now you can create new sketch edit and save it well it a really basic editor right now but am working on implementing thing like autocomplete and syntax highlight
so for today it 1 hour of making the layout for sidebar and 3 hour of fighting with swiftui
but oh well so for the first 3 hour i been spending time trying to understand why doesn’t my bootstrap code get ran when app start but for some reason if i return an emptyview it doesn’t run but if i return it anything even a text it will ran so yea i still dont know why so not gonna comment much on that
but rn the app is one window group it route to 2 view bootstrap and main based on boolean inside controller and inside main i try to start working on the layout
tbh i kinda hope i did more today. but it is what it is and yea that what i did today
so i like arduino but arduino ide? not so much so i wanted to make an alternative for the ide in swiftui so i founded out that there something call arduino-cli which basically is arduino backend so you can do things like boards management and compile upload via the cli (well that for human) but for us instead of calling the cli and parse the stdout we can use the gRPC interface instead so you run the cli as a daemon and use gRPC to talk so with this devlog i made a swiftui app that when start download the arduino-cli and run it as a daemon and create grpc client and connect to it.