-
-
Notifications
You must be signed in to change notification settings - Fork 398
Detect programmers #968
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
Comments
@PeterWone |
@ubidefeo -- To share my own perspective, I'm writing a VSCode extension that integrates arduino-cli into the IDE because I am unsatisfied with the robustness of the Microsoft supplied equivalent. If I do the case by case workflows in my extension then they are only useful to VSCode users. If it happens in arduino-cli then command line users get the benefit. The only question remaining is who does the work. Taking care of integration with VS Code is quite enough for me, and I don't doubt that you have plenty to occupy you. |
@PeterWone
many of them have USB to Serial interface controllers that have generic VID/PID used by plenty of boards (even custom ones) for which the manufacturer doesn't think it's worth it to pay for their own Vendor/Product IDs. To automate this discovery would mean testing every possible programming tool for every possible programmer, and doing this over and over until something is discovered. Hope you'll see why I'm skeptical about such a feature. Now on to more interesting topics: developing your own VS Code extension. |
I got my system going by manual installation of all the bits and pieces. It took all evening to understand what I needed, how it all fits together and how to get the bits in place. None of it was hard but there was a fair bit to take in and it would have been overwhelming for someone with less development experience. I mostly use Nanos so I can hard code this
That's easy and doesn't take long to set up once you know what you're doing... but the bar's set pretty high for newbies. |
I guess I'm pitching at a seamless UX for the inexperienced, and a convenient one. My ambition is that if you install my extension, it will sort out all of the dependencies for you. A more finished, "consumer" experience. Some of these observations don't apply to people who use unix. I put it to you that (a) they are more technically sophisticated and don't need help and (b) they are a minority. I could be wrong about (b) but I have no way to check. At any rate if there is only one detected board and it is serial (usb) then the user is almost certainly using Windows and it is almost certainly the right device to flash. |
I see where you come from, but why would your target user use VS Code rather than our future IDE which is going to tackle pretty much what you're aiming for? (also it's based on Theia/VS Code)
You're probably right :D
In the majority of cases this is probably true. |
@PeterWone , download the Nightly Build which has the latest fixes. |
@ubidefeo, can you comment on the direction of this solutoin? I'm interested also from the perspective of #849, about generating a compilation database, which is one (maybe partial) solution to this problem. |
Versatility. People sometimes do things other than programming Arduinos. It is hard to convey the versatility of VS Code to someone unfamiliar with its ecosystem. It is far and away the most popular web development tool on three platforms. Just the things that I use it for personally include
Without wishing to disrespect your efforts, you cannot hope to compete with that-- but you don't need to. I'm not kidding when I say I think you'd be better off producing language support for VS Code. |
@matthijskooijman the team is investigating exactly that, I always keep an eye on your interactions ;) |
@PeterWone I know very well what you mean. I take no offence in your comment, and we don't dare competing with VS Code. We are looking at several opportunities and exploring different paths. |
Cool, thanks for sharing :-) |
@ubidefeo - I wonder whether you would mind sharing email addresses to answer occasional questions while I'm figuring out integration with VS Code. Questions like this one: does each core bring its own complete toolchain or are there platform dependencies that must be pre-installed like eg gcc or msvc? Questions like this are a bit out of scope for arduino-cli issues. If you are interested in corresponding my email is peter dot wone at outlook dot com. |
hey @PeterWone
You can have dependencies and a lot more. Our documentation wizard @per1234 has been compiling a great reference and there's everything you need to know. Your question will probably find an answer here https://arduino.github.io/arduino-cli/latest/platform-specification/#core-reference
@per1234 is this the right place for these questions? If not, which one is? |
You are right, the docs fellow is almost certainly the right point of contact for clarifications of the documentation. Thanks. |
@PeterWone when you have questions you can't find answers to in that doc just ask around here, or maybe @per1234 prefers it to be posted to the forums somewhere? |
It is possible to detect Arduinos connected via serial USB. It would be excellent to be able to detect programmers.
The text was updated successfully, but these errors were encountered: