editorconfig-netbeans icon indicating copy to clipboard operation
editorconfig-netbeans copied to clipboard

editorconfig v0.0.9 rules applied on all opened document

Open oroszlanyzsolt opened this issue 9 years ago • 3 comments

The v0.0.9 editorconfig applies rules on all other opened documents (the other project does not have an .editorconfig file); project settings are also effected in this process.

editorconfig-0.0.9.nbm NetBeans 8.1 (x64) Windows 7 (x64) locale HUN

oroszlanyzsolt avatar Nov 11 '15 18:11 oroszlanyzsolt

I guess that a parent directory has a .editorconfig file.

junichi11 avatar Nov 15 '15 10:11 junichi11

Sorry for the late input. Steps to reproduce the error is:

  1. Download project from GitHub: https://github.com/oroszlanyzsolt/editorconfig-netbeans-issues-92
  2. Open both index.php from both project-1 and project-2 (see everything is ok yet)
  3. Place the editorconfig.txt to project-2 or project-1; not both becuase it will be obvious why the other project inherit settings, place the editorconfig.txt on project-2 and rename it to .editorconfig
  4. Write something both projects index.php ( I have auto formating enabled on save) and save it

Now you can see both project gets save according project-2 .editorconfig; this should not happen, only project-2 index.php should have the effect of .editorconfig. What makes it worst I thing project settings is not affacted at all but the global formating are effected! If you can not reproduced this behaviour I think I can record a video. Thank you.

oroszlanyzsolt avatar Dec 10 '15 12:12 oroszlanyzsolt

Thanks @oroszlanyzsolt for putting so much effort in reproducing the issue. We are a little (actually not just a little!) late but we didn't forget about the bug. Will do investigations on that soon...!

bennycode avatar Aug 17 '16 12:08 bennycode