Sublime Forum

Detect_indentation not working at app startup

#1

I’m having trouble getting detect_indentation to work when Sublime starts up.

To reproduce:

  • With sublime not running, open a file from Finder.
  • The file opens in the app but with default tab settings.
  • However, if I close the file and open it again (keeping Sublime running) then the indentation settings are detected correctly.

I’m running version 3.1.1, build 3176 on MacOS 10.13.5. All packages disabled.
Anyone have ideas for how to get it working?

Here’s a sample bit of text that I’ve been testing with (it has 2-space indents):

function test()
  x = 1
  x = 2
  x = 3
  x = 4
  x = 5
  x = 6
  x = 7
  x = 8
  x = 9
  return x
end
0 Likes