-
Notifications
You must be signed in to change notification settings - Fork 75
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
Visual Studio 2017 support #54
Comments
Are embedded EditorConfig plugin and this plugin different plugins? |
Yes, quite. |
Supposedly |
I'd adhere also to a way to disable VS2017 "native" support (or for Microsoft just to fix it) and put the extension back on the marketplace. We're waiting for |
Another problem with VS2017 that it doesn't support |
really? for any type of file? are you sure it's not your repo setting who is messing with eol's? |
MS VS2017 support is really jenky (at least with C++ projects). I just switched to VS2017 from VS2015 and EditorConfig is mixing tabs/spaces. It seems it's getting confused with multiple .editorconfig that have different settings. This worked fine with plugin in previous versions of VS. |
Please report this bug to them with a description your .editorconfig files and where they stored |
Uh... I'm reporting it here because I don't believe MS is capable of maintaining it. Old plugin just worked fine, no issues for years and multiple versions of VS, and then MS takes it over and breaks it. Obviously they were incompetent to integrate fully working VS plugin into VS. |
But no one maintains this extension anymore... |
Then let's just close the issue. It's a Vistual Studio issue and we should open it on their side. |
@mihaipopescu @whyleee References for the
|
I just tested in VS2017 [*]
charset = utf-8 # FIXED
insert_final_newline = true # FIXED
trim_trailing_whitespace = true # NOT FIXED |
end_of_line = lf # NOT FIXED |
I am currently getting different things that are not working for me as well.
|
@KinsonDigital that's not a supported EditorConfig rule. |
That looks like one of those things which a VS addon will read from the |
Using Visual Studio 2019 (Version 16.4.5) and it still doesn't get PS: By which I mean, for whatever it is worth, considering VS inability to get this working it would be nice to keep this plugin working with VS2017 and VS2019 instead. EDIT As it happens,VS brand of support for EDIT.2 Should clarify that I do understand why VS is doing it this way. For typical OSS contribution is may be favorable to iteratively update lines only when changed. I wish there was an option or that the EditorConfig specs provided explicit settings as to which behavior to adopt. |
There is an open bug report at: The EditorConfig specification is clear about how
But when you edit a file with another editor that does follow the specs, those whitespaces will get deleted anyway. So it eventually will result in changes to the file. And know that when you set that setting in your In that developers community post it should be made more clear they don't follow the specs. As EditorConfig community we should extend and upvote that post. |
Just ran into this plugin, and was really happy until it turns it that it won't load with modern version of VS. I'm also very frustrated that the native .editorconfig WILL NEVER be according to spec. Apparently MS honestly believes that trimming white space should only be done "on the current line" not every line in the file. So please support VS 2019 and VS 2022. |
This is according to the spec: |
The wiki is not the official specs and probably outdated. https://editorconfig-specification.readthedocs.io/#id9 clearly states:
|
Is this related to how Visual Studio only changes CR/LF on lines that are edited instead of the whole file? I like how other editors handle this better, but it seems like they tried to map editorconfig things to native Visual Studio features and it just doesn’t have that feature. |
Not sure that's true - when I open a file with mixed line endings, it asks, and if I say yes, it adds them to every line. This is before I've edited anything. In any event, that's not what Visual Studio 2022 currently does. It only changes the line the cursor is on when you save the file. Just that line. Basically it doesn't work at all, thus my interest in this plugin. |
Yes, this is a well-known issue. Visual Studio still has situations where it will load a file with one line ending convention, use a different one for lines which are edited or copied/pasted, save it with inconsistent line endings, and then, upon reopening later (perhaps after you already committed changes), ask you if you want to convert the file to consistent line endings. This seems to be an issue unique to Visual Studio which Microsoft won’t fix. See https://developercommunity.visualstudio.com/t/-/351278 and https://developercommunity.visualstudio.com/t/-/363894 (which are both marked solved even though people have followed up. Maybe it’s time to open a new one). |
What's actually issue with resurrecting this plugin?
Saying "Yes, this is a well-known issue." and providing VS community links is not helpful at all, since we wouldn't be here asking maintainers to update plugin if we had any hope that VS team can do it. This thread is proof that 5 years is not enough for inept VS team to fix issues with their buggy implementation of EditorConfig. |
@bkaradzic I don't think complexity is an issue here, you'd just have to make it use the async API. |
Now, after VS2017 release, we can see what have been done there, and what haven't been done.
I have been using EditorConfig for Visual Studio to consistently set the following properties on my projects:
VS2017 doesn't support
charset = utf-8
(and forces the BOM all the way), norinsert_final_newline
neithertrim_trailing_whitespace
, and that causes mess in my sources. The kind of mess I'd like to exterminate.I think that embedded EditorConfig support in VS2017 isn't very useful in its current state, and I'd like the plugin to be resurrected and released for VS2017.
The text was updated successfully, but these errors were encountered: