-
Notifications
You must be signed in to change notification settings - Fork 6
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
Find and fix of typos/misspellings #1
Conversation
Hi Tomáš, thank you for looking for typos at my repos, but please do not correct typos in third party libraries (I have not made)! Better ask them to correct it. Best regards |
Hey, I am using @per1234 inolibbuglist with codespell library. the script doesnt know that this lib isnt yours so I cant control. Also the codespell fixes some words that are correct due that I am not englishian I cannot fix themm al correct even I control every fixed word. Have a nice day,. |
Ok, now I know the background. |
Yes you are right. Plase write if you have any ideas how to do it :-D |
Then send me the script :-D |
Its availibe on github - codespell |
codespell simply identifies all occurrences of commonly misspelled words in the text. It has no way to know whether the proposed change is a false positive, will break the code, or is otherwise unwanted. This is why it's the responsibility of the person using codespell (@TomasRoj) to carefully review the changes proposed by codespell. codespell takes care of the boring first 95% of the job, but a human must do the essential final 5%. You can exclude directories from the codespell scan. In this case, you could do:
I could add that to the inolibbuglist script. The question is whether this is a common convention for Arduino libraries to bundle other libraries under
codespell is here: My inolibbuglist script is here: I think the change would more likely be made to inolibbuglist than to codespell. However, inolibbuglist is only used to automatically generate a list of Arduino libraries with misspelled words. @TomasRoj is then running codespell manually on each of those repositories to fix the misspelled words. So even if Code contributions or suggestions for improvement to inolibbuglist are welcome. |
Yes |
Hi together, I want to repeat, that it is very annoying for a developer to get pull requests for typos in 3.party libraries, which he is not responsible for and he do not want to change because of their 3.party nature. And I have to mention, that I appreciate it very much, that you put so much effort in increasing the quality of the libraries, and that I want to support you (if I really can). Have a nice weekend |
Hey Armin, I am glad that I can meet new and positive like people like you on my journey via helping people with open source technologies. I will be happy if we can collaborate in the future for some project. But back to your question. From the start I didn't really understand your issue. You have this repo and you are using 3 party libraries right? Do you have these in some folder in this repo? If yes I recommend not doing this because this causes problems like this. BTW I am not any guru. I am just fan and learning every day. |
Ok I checked one more time. Don't save the libraries itself to repo. It's not your work. Tell he user to install them. This can cause to problems like this but I like your interest to discussion. Don't worry! |
Ok Thomas, So I have to live with the typo pull request... but it is better than annoying the users with errors because of missing libraries. The Arduino IDE should offer a way to put 3.party libraries to a special place, lets say to /src/lib, this would solve our problem. But this is future.... |
@ArminJo Yes it future but.. How future is made? By building it... I will try to find more info about this topic and try to find some explanation etc. If there is no way how to do it, we must do it. It's simple 😂 |
It's definitely good topic for discussion. If not me, @per1234 will defineteli find a solution. |
This is the right attitude, thank you for this!!! |
It depends on the circumstances. If the 3rd party library is only used by the sketch, then you can put it under the src subfolder of the sketch. For example, let's say you had an example named Foo which had a dependency on a 3rd party library named Bar. You could then do this:
Then in Foo.ino, you can #include "src/Bar/Bar.h" The only problem you might encounter is that some Arduino libraries use the incorrect #include <Bar.h> Although not best practices, that will work when the library is installed normally (which is why it's a common issue), but it will not work when the library is bundled with a sketch, since Arduino-RobotCar/examples/Foo/src/Bar is not part of the include search path. The solution is to change the library to use the correct include syntax: #include "Bar.h" Which causes the local folder to be searched before the standard include search path. In the case of bundling multiple libraries that have dependencies on each other, you will need to change the #include <Bar.h> which you would need to change to: #include "../Bar/Bar.h> However, in this Arduino-RobotCar library I see that you are using the 3rd party libraries in the Arduino-RobotCar library itself, not only in the examples. In that case, you can not use the 3rd library bundled in the
I completely understand your frustration. The majority of Arduino libraries are written by people purely as a volunteer labor of love. The theory is that the Internet makes it possible to freely share digital content with everyone in the world. Maybe I wrote the code for myself, but why shouldn't I publish it online so that everyone else can benefit from my effort also? After all it costs me nothing, right? The reality is that this can end up being a burden as the support requests, invalid issue reports, and invalid pull requests start to roll in. Most programmers like writing code, but very few enjoy maintaining a bug tracker. Thus, each invalid pull request is another nail in the coffin of open source. We all have other things we can be doing with our time. If the demands of maintaining a free open source project get to the point where it's not enjoyable any more or is occupying too much of a programmers time, they will likely end up abandoning the project, and perhaps open source altogether. This has happened many times and has been the death of many wonderful projects. So I do apologize for any part I have played in this situation. However, I want to make it clear that my inolibbuglist project only generates a list of Arduino libraries that might have a common bug or issue. It does not fix bugs. It does not submit pull requests. I wrote this script for my own use, but decided to publish it online in the spirit of open source. I don't think it's my responsibility how others use this information. I've been trying to provide assistance to @TomasRoj, just as I do for anyone in the Arduino community who asks for my help with something that's within my abilities. I'm sure @TomasRoj would agree that I've been quite a nag to them repeatedly about the importance of quality pull requests and how we need to be very careful that our efforts to contribute result in a net benefit. The fact is that nobody is perfect. I've accidentally submitted some invalid pull requests myself. I make a very earnest effort to provide helpful pull requests, but in the course of submitting over 4400 pull requests, I was bound to make some mistakes. In the big picture, even someone who only submits valid pull requests 99% of the time is clearly having a net benefit to the open source community. But for that maintainer who only sees the 1 in 100 invalid pull request, it's a 100% failure rate. So as contributors I think we need to make our best possible effort, but as maintainers I think we also need to try to be understanding. |
Work is underway to add a dependency resolver to the Arduino Library Manager. The way it works is you add a |
This last message would will best for you @ArminJo I think. |
Btw - you can follow me! I will be happy for that :-D
---------- Původní e-mail ----------
Od: Armin <[email protected]>
Komu: ArminJo/Arduino-RobotCar <[email protected]>
Datum: 10. 5. 2019 22:40:19
Předmět: Re: [ArminJo/Arduino-RobotCar] Find and fix of typos/misspellings (
#1)
"
This is the right attitude, thank you for this!!!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
(#1 (comment)),
or mute the thread
(https://github.com/notifications/unsubscribe-auth/AKDLLFYXC62HFWMCJOVM7M3PUXMS7ANCNFSM4HL2BE5A)
.
"
|
OK, this will help me and others a lot on documenting and releasing a library!!! For my libraries I do not have simple examples, I also add some of my projects I build this library for, as examples, and they need example specific libraries.
This is an undocumented feature of Arduino library But back to the beginning... OK this are my ten cents to this topic. |
Yes, good idea. If you want you can join us by running theese scripts on your computer. Send me your email if you are interested. |
Thank you, but I have a lot to do with my libraries, especially with my never seen before "ServoAsEncoder" one ;-) and this robot car stuff. |
Ok, can I help you with something in theese? |
OK I forgot one crucial aspect: It was a interesting discussion, but I think Arduino must support this and also a way of using compiler symbols for library examples urgently needed by professional libray developer (like me ;-)). Without this feature there is only the workaround of converting a *.cpp file to a *.h file like here set the symbols before the include statement like here. |
Thank you very much, but this is research with servo electronics and for the robot car you need the hardware, but then it might be fun. |
Thanks, I will try to discuss this topic in the official arduino repo too.. |
That's correct. Recursive compilation is restricted to the
This is not about libraries, thus it would not be appropriate to document it in the Arduino library specification. This is about sketches. The recursive compilation of the
You should be able to accomplish that with a symlink, or whatever is the Windows equivalent.
Well, I already provided a link to that proposal. You can show your support for it by adding a "thumbs up", but please only comment on the issue threads if you have some valuable information to contribute. |
Hey,
I found and fixed some typos/misspellings in your repo. Hope this will help!