Update with indentation issues

Thank you for your understanding. I will look for the update soon. Could you possibly post in here once the nightly update is available for me?

I’ll post it for you @ziplizard.

Still no update?

We’re intending to push it today actually. Note that’s “intending”, since this is the first 9.3 nightly we do a little bit of testing to ensure it doesn’t break anything significant. This WILL be a “nightly” release so it is bound to have bugs.

Note we delayed the nightly until next week, most likely Monday.

Reason being that today is our feature-freeze, so we figured we might as well release the first nightly with all the 9.3 features in there. We’ll start rigorous testing and bug fixing next week.

Nightly is now available: http://komodoide.com/blog/first-komodo-9-3-nightly-available/

Is this the IDE 9 or Edit 9? I use Komodo Edit, can you direct me to the correct nightly download?

Nevermind, I found it. Just had to navigate to the correct tab.

FYI - I just installed the 9.3 KE nightly and the issue still exists. Every file I open has the incorrect indentation and must be manually adjusted. This is very annoying.

I’ve always had problems with Komodo’s indenting. I don’t know how to fix it globally and it devolves into a cluster-frack. I’ll update my settings, but then some files are still using 2 spaces.

How can I set komodo to always use tabs of 4 spaces and - here’s the catch - NEVER-ever allow customized file indentations? This really messes me up, especially with python.

The fix does not work retroactively, you need to reset your file level settings and then it should not happen again.

Open a new tab (ctrl+tab) and on the new tab page hit Troubleshooting > Reset File Preferences. Note this troubleshooting menu is slightly bugged at the moment, if it doesn’t work you can manually reset your file preferences by shutting down Komodo and deleting doc-state.xmlc from your profile folder.

I reset the file preferences manually be removing the doc-state.xmlc from my profile folder. Then I started up KE 9.3 once again and the problem still exists. Every file I open has the incorrect indentation (2,2) and must be manually adjusted. I have been using KE 8.5.4 on a daily basis and it does not have this issue.

Could you give a sample file? Perhaps the indentation detection is simply off.

Also, these are still your indentation settings? (including for the language you are using)

Yes, those are still my indentation settings - I have not changed anything.
Here is a simple php file I have in my project. Again, when I open this file, it opens with 2,2 indentation, I have to manually adjust it.

Could you create a userscript (macro) with the following contents:

var log = require("ko/logging");
log.getLogger("koDocument").setLevel(10);
log.getLogger("editorconfig").setLevel(10);

Save it and execute it, then restart Komodo (we want a clean log). Once started execute the macro and then open one of your files. Then copy the error log into this thread (Help > Troubleshooting > View Log File).

Where exactly do I create this file? What do I call it and how do I execute it?

I think I figured it out.

[2015-10-08 10:06:21,332] [INFO] Startup: Welcome to Komodo Edit 9.3.0 build 16182 (platform macosx, running on Darwin 14.5.0 version Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64)
[2015-10-08 10:06:21,332] [INFO] Startup: /Applications/Komodo Edit 9.app/Contents/MacOS/komodo built on Mon Oct 5 08:00:23 2015
[2015-10-08 10:06:21,337] [WARNING] koInitService: Unable to determine the current locale settings, defaulting to mac-roman
[2015-10-08 10:06:21,601] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in resource://gre/modules/Preferences.jsm:381
[2015-10-08 10:06:21,645] [WARNING] root: ko.logging has been converted to a CommonJS module; use require(“ko/logging”) instead (since Komodo 9.0.0a1).
@chrome://komodo/content/komodo.js:48:1

[2015-10-08 10:06:21,735] [WARNING] console-logger: Expected end of value but found ‘solid’. Error in parsing value for ‘border-width’. Declaration dropped. (1) in chrome://global/skin/global.css:2603
[2015-10-08 10:06:21,753] [WARNING] console-logger: Expected end of value but found ‘solid’. Error in parsing value for ‘border-width’. Declaration dropped. (1) in chrome://global/skin/global.css:2603
[2015-10-08 10:06:22,047] [ERROR] console-logger: bad script XDR magic number (0) in :0
Traceback (most recent call last):
File “”, line 0, in

[2015-10-08 10:06:22,096] [WARNING] keybindings: [Meta+Shift+Down] was used for ‘cmd_selectDocumentHome’, overriding to use ‘cmd_selectDocumentEnd’
[2015-10-08 10:06:22,868] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name ‘multiple_caret_area’
[2015-10-08 10:06:22,952] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name ‘multiple_caret_area’
[2015-10-08 10:06:23,013] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name ‘multiple_caret_area’
[2015-10-08 10:06:23,078] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name ‘multiple_caret_area’
[2015-10-08 10:06:23,145] [ERROR] ko.main:
– EXCEPTION START –
ReferenceError: tv is not defined

  • stack
    this.updateViewRef@chrome://komodo/content/library/uilayout.js:1890:9
    uilayout_onload@chrome://komodo/content/library/uilayout.js:1870:5
    onloadDelay@chrome://komodo/content/komodo.js:393:9
    window.onload/<@chrome://komodo/content/komodo.js:512:13
    – EXCEPTION END –
    [2015-10-08 10:06:23,206] [DEBUG] editorconfig: Setting editorconfig: {“encodingDefault”: “utf-8”, “cleanLineEnds”: true, “tabWidth”: 2, “ensureFinalEOL”: true, “indentWidth”: 2, “useTabs”: false, “endOfLine”: “LF”}
    [2015-10-08 10:06:23,396] [WARNING] root: ko.findresults was already loaded, re-creating it.

[2015-10-08 10:06:23,962] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name ‘multiple_caret_area’
[2015-10-08 10:06:24,301] [WARNING] console-logger: Error in parsing value for ‘opacity’. Declaration dropped. (1) in chrome://komodo/skin/images/toolbox/macro.svg:0
[2015-10-08 10:06:24,610] [WARNING] console-logger: mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create (1) in file:///Applications/Komodo%20Edit%209.app/Contents/Resources/components/koamAddonManager.js:138
Exception in thread Scope files build cache:
Traceback (most recent call last):
File “/Applications/Komodo Edit 9.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python2.7/threading.py”, line 808, in __bootstrap_inner
self.run()
File “/Applications/Komodo Edit 9.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python2.7/threading.py”, line 761, in run
self.__target(*self.__args, **self.__kwargs)
TypeError: start() takes exactly 3 arguments (2 given)

[2015-10-08 10:06:35,460] [WARNING] koScintillaSchemeService: applyScheme:: no indicator for name ‘multiple_caret_area’

Does that help?

Yep, here’s your problem:

[2015-10-08 10:06:23,206] [DEBUG] editorconfig: Setting editorconfig: {"encodingDefault": "utf-8", "cleanLineEnds": true, "tabWidth": 2, "ensureFinalEOL": true, "indentWidth": 2, "useTabs": false, "endOfLine": "LF"}

You have an .editorconfig file somewhere up the file tree that is forcing an indentWidth of 2. Either update your editorconfig settings or delete the file.

That fixed it!

It appears possibly another editor I tried out put a .editorconfig in my home directory. I removed this and it fixed the problem. Strange that this did not affect KE8.

Man, that was painful. I hopefully everyone has learned from this exercise so it can help the next fellow that encounters the same issue.

Thanks.

Komodo 9.2 introduced editorconfig support, that’s why it didn’t affect Komodo 8.

Note I committed a fix for our editorconfig support so that it will only override values that are not explicitly set.