-
Notifications
You must be signed in to change notification settings - Fork 585
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
Add Dockerfile filedef #3757
base: master
Are you sure you want to change the base?
Add Dockerfile filedef #3757
Conversation
9d7ede1
to
93f5698
Compare
See also the already filetype configuration for Docker and Docker-Compose files in the wiki: https://wiki.geany.org/config/docker-compose. It might be the version in the wiki could be updated for recent Docker features but it is already working. |
You don't want it included with the Geany distribution then? |
@andy5995 I think the main point of @eht16's reply (putting words in his mouth :-) was that there are significant differences between the Wiki and your filetype, including more keywords in the wiki version, using Python not Sh for syntax etc etc so its unclear which is better and how to combine them. That would need to be resolved. I asked for user comment about how well yours works, so that question is now expanded to which is better, Dockers please comment. As for putting it in the Geany release, there have always been debates about adding more filetypes, especially for filetypes that no or few Geany devs use, so we cannot support or make decisions about the filetypes adequacy. Each language makes the download bigger, adds to the filetype menu, and adds to support. Personally I have flip/flopped a few times, but given that the "lightweight" bird has flown some time ago I don't think the cost of a small file for adding a custom filetype is material. Built-in filetypes are another thing. The menu issue is harder to address, on small screens large menus may go offscreen, and as menus can't be scrolled that means some items can't be selected (there have been a number of issues about that). I don't have a solution for this as the Geany categories are hard coded (not that they are very good anyway), maybe it should be alphabetical, PRs welcome 😁. As for support, thats where the question to the Docker users in general comes in, does it work well enough that you are actually going to use it? |
Full agree with what @elextr said, these were mostly the words already in my mouth, I just didn't speak it explicitly. One addition: after this PR we should not have a Docker filetype in Geany and the wiki page as it is now. In the end, we should decide on one solution. I think it might be worth to add the filetype to Geany itself, Dockerfiles are quite common and often used among developers. Then replace the wiki page with a stub page stating that it has been integrated into Geany and add a reference link to the Git version of the configuration file. As for the support, if we decide to include the filetype in Geany, I can do a proper review. I use Dockerfiles regularly at work and around. Just be patient with me :D. |
Hi, Docker user here. I have tested both filetype definitions, the one from this PR and the one from wiki. As far as I can tell, they are not much different. I have noticed only one visual difference and that is that the configuration from @andy5995 renders strings in The other file from wiki claims to also support docker-compose files. That is IMHO not very good idea, because those formats are completely different and should not be mixed in single configuration file. It can only lead to worse behavior in both filetypes. As to whether the filetype should be bundled in Geany release: I'd definitely vote to include it. I am using Geany for years (I could probably say decades by now 😅) and it never occurred to me to search for Docker filetype support on wiki. If it were installed with geany, I would definitely be a happier user. It is also much easier than having to set this up manually (even though the documentation is great). So I would vote to merge this (if I had any voting rights 😃) and perhaps remove the other version from wiki. |
@dolik-rce thanks, if only we got more reviews by third parties things would proceed faster. I don't know how many people consult the wiki to find out configurations etc. Given the number of projects where the only docs are the wiki I would have thought many dedicated open sourcers would consult it, but beginners who installed from the distro (or windows installer) probably won't think to look, YMMV. And then there are those who forget ... what was I saying?? ;-) @andy5995 @dolik-rce @eht16 I have some questions to try:
Given that the lexer is
|
Due to lack of understanding and QA on the part of @andy5995 Thanks for the explanation above, @elextr and for the feedback and testing @dolik-rce |
Nice. I think we could add this new filetype and then update the wiki page to have it only a seperate docker-compose filetype and a reference to the GIT version of this Docker filetype. I'm happy to do this after merge. Regarding the For the reasons outlined above, I would add to the filetype extension list the pattern "Dockerfile.*" as this is more common than the others in my experience. Do we need to adjust anything for the Meson build system? |
Per @elextr will require further discussion. Closes geany#3752 but
No, this is in data/meson.build:
I think this is done now. |
If there are no objections, I would merge this next weekend and update the Wiki accordingly. |
One last remark: could we add |
Per @elextr this will require further discussion.
Closes #3752