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

Komodo Ignores *Allow file contents to override...* indentation pref #995

Closed
cgchoffman opened this Issue Jan 8, 2016 · 5 comments

Comments

Projects
None yet
4 participants
@cgchoffman
Member

cgchoffman commented Jan 8, 2016

http://forum.komodoide.com/t/komodo-picks-up-file-indentation-prefs-regardless-of-existing-settings/2428

  • set global prefs for indentation to...see screenshot
    capture
  • create a file outside of Komodo with the following content:
var x={
        y:2
    }
  • Open the file in Komodo
  • go to end of file and press tab

Expect: a two space width tab
Actual: Cursor jumps 8 spaces

Notes:

  • File level prefs reflect global (so no idea where this is being saved)
  • This is tested from a fresh profile
  • Changing the file contents (4 spaces in front of y instead of 8) and reopening the file changes the indenting setting.

@cgchoffman cgchoffman added the Type: Bug label Jan 8, 2016

@cgchoffman cgchoffman added this to the 9.3.3 milestone Jan 8, 2016

@Naatan

This comment has been minimized.

Member

Naatan commented Jan 11, 2016

Expect: a two space width tab

Do you mean two tabs? Ie. you're not saying two space characters and a tab right? :p

Given that your space per indent is set to 2 and it is inserting 4 per indentation it seems to me that the pref is working fine, the problem appears to be that it's detecting 4 spaces where it should be detecting a tab.

@Naatan Naatan self-assigned this Jan 11, 2016

@cgchoffman

This comment has been minimized.

Member

cgchoffman commented Jan 11, 2016

Do you mean two tabs?

Why would I expect two tabs? I hit tab once. I expect one tab that is two space wide but I got 8 spaces.

your space per indent is set to 2 and it is inserting 4 per

Where is the 4 coming from?

@Naatan

This comment has been minimized.

Member

Naatan commented Jan 11, 2016

Ahh I missunderstood what you meant by "a two space width tab".

@Etenil

This comment has been minimized.

Etenil commented Jan 18, 2016

I'm experiencing this issue also. The only way I found to reset the IDE's idea of the file's identation setting is to edit the file preference setting and tick "Prefer tab characters over spaces", apply, then untick it and apply again. After this, Komodo IDE will indent with spaces without fail.

Of course it isn't very nice to have to do this repeatedly, so I hope this gets fixed in the next release.

@tribis

This comment has been minimized.

tribis commented Jan 22, 2016

Thank you for your suggestion, it helped me to get indentation back to some kind of sanity. The trick only works for me when changing the setting, closing the file, then reopening it and changing again

@Naatan Naatan closed this in cf3076f Jan 25, 2016

Naatan added a commit that referenced this issue Jan 25, 2016

Editor: Fix allow file contents to override .. always being on - fixes
…#995

rn=

(integrated from master branch change 9.2.1-795-gcd93644 by Nathan Rijksen <n.rijksen@gmail.com>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment