0

Sublime Text 3 terminates itself in a headless environment

Todd Wolfson 11 ár síðan Uppfært 11 ár síðan 1

I have been developing a Sublime Text testing framework for automated testing. It should be able to run via Travis CI but I am currently getting stuck when it comes to Sublime Text 3.


I have coded up and implemented the framework against Sublime Text 2. It works flawlessly in Travis CI. However, when it comes to Sublime Text 3, it doesn't budge.


I have debugged the problem locally, reproducing it via an Ubuntu Server image on Vagrant, and found that Sublime Text 3 terminates itself when in a headless environment (even with Xvfb).


```

$ export DISPLAY=:99.0
$ /usr/bin/Xvfb $DISPLAY -screen 0 1024x768x24 &

$ sublime_text # Exits immediately

$ ps ax | grep sublime

# 5427 pts/0  S+  0:00 grep --color=auto sublime

```


My repo can be found here: https://github.com/twolfson/sublime-plugin-tests

As it turns out, I was stuck in some old thought and Xvfb resolved the issue. I am still running into trouble regarding starting Sublime Text but I will continue to explore it for now.