Conversation
|
Good luck with that! I tried the same and you can find a long discussion here: #6884. |
Then the solution to this issue would be to put a comment there to tell the dev to edit |
|
On the other hand this new PR might be a good indicator that Visual Studio Code is used by several developers and that it might really help to add that single line to the |
|
The other popular IDEs are Visual Studio Code and CLion. It would not hurt making the application compatible to many IDEs, and let .gitignore serve its purpose. /.vscode
/.ideaSince, these directories are not due to individual preferences, it should be better considered to .gitignore them. BTW, which IDE do you use? |
|
I use Qt Creator, it doesn't store stuff in the project directory I think. IMO the argument that adding this to gitignore would "clutter" it seems silly. I mean if you think that is clutter then you shouldn't look at LMMS' codebase, bless your heart. And in what future scenario would having an obsolete |
|
If I recall correctly, the default gitignore templates GitHub provides for the languages I've seen have a section dedicated to IDE-specific files and folders. This is not unprecedented. I'd concur with adding IDE folders to the gitignore. |
|
There was the voting, like michaelgregorius mentioned. Feel free to restart a voting, but IMO, doing this without a voting would be weird. I can just picture my arguments: If every developer adds things that a few developers might need, i.e. puts half of their global gitignore into our local gitignore, we end up with big, redundant blocks. I would not want to add such blocks into all projects in all repos. And IMO a master history should not look like this: This makes finding crucial commits just more difficult (or overseeing them more easy). |
|
The counterpoint to this is that a lot of developers don't have global gitignores, so each one has to manually exclude .vscode from their commits. If, occasionally, someone forgets and commits it anyway, and it makes it into the PR, that wastes someone else's time to say "please remove your .vscode directory from your commits" and you get a back and forth discussion on how to do that without losing local changes because this is a fairly unintuitive part of using git, then explain how to put it in their global .gitignore... and that happens how many times? Once for every PR that makes the mistake. On the other hand we can add the folder now and avoid that drama later. To avoid this becoming a slippery slope (I doubt it would anyway, and I doubt it would be a big deal if it did, but I digress), there's a fairly easy check: have three or more people voiced that they want a folder ignored? In this case, a more than sufficient number of people have cause for .vscode to get ignored, so it should. For other files and directories, maybe it's a different story. ... but also, adding a ton of folders to the gitignore at once from the beginning would solve that problem too. Having a big gitignore is not actually an issue; it's better to cover the bases at a project level rather than deferring the task of fixing it to reviewers. We could honestly just collect a list of IDE folders and merge them all at once. |
rubiefawn
left a comment
There was a problem hiding this comment.
While I'm not a vscode user, I recognize it is an extremely common code editor. Having read both the discussion in this PR as well as #6884, I think the reduced friction this provides to current and future contributors using vscode is worth it.
|
Yeah, ignoring IDE configs sounds pretty damn smart. If we find a |
|
This does leave the We're leaving those untouched, I hope? |
|
I am in favour of adding |
Helps to use VS Code as code editor.