Skip to content
This repository has been archived by the owner on Apr 10, 2021. It is now read-only.

editorconfig v0.0.9 rules applied on all opened document #92

Open
oroszlanyzsolt opened this issue Nov 11, 2015 · 3 comments
Open

editorconfig v0.0.9 rules applied on all opened document #92

oroszlanyzsolt opened this issue Nov 11, 2015 · 3 comments

Comments

@oroszlanyzsolt
Copy link

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

@junichi11
Copy link
Member

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

@oroszlanyzsolt
Copy link
Author

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.

@bennycode
Copy link
Member

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...!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants