0

I have installed HTML-CSS-JS Prettify package in Sublime Text 3 (on Ubuntu 18.4). The image below shows that it appears on the context menu. However, when I select its context menu (the second context menu) has all options greyed out. I can't find a explanation anywhere and would appreciate knowing how to enable it.

If it is any use the "Anaconda" selection is also all greyed out when I select it. Nodejs is not.

Many thanks.

enter image description here

Andrew
  • 149
  • 1
  • 13

1 Answers1

1

Menu items appear disabled for a couple of different reasons.

The first (and most common) is that when a menu is about to be displayed, Sublime asks every command bound to an item available in the menu if it should be enabled right now or not, and the command can decide to disable itself if it currently doesn't apply.

The second reason is that the command bound to the menu item is currently missing. For people using packages and not creating them themselves, that generally means that there's something wrong with the plugin that provides the command, such as it not loading for some reason.

In this case, based on the items in there it seems more likely that the second case is what's getting you here.

In order to check that, use View > Show Console or the associated key binding and see if there are any messages that look like a package didn't load for some reason. If so, resolving whatever issue that is should get things working.

OdatNurd
  • 21,371
  • 3
  • 50
  • 68
  • I think you are right. The console keeps repeating an error message the first line of which starts with: Anaconda can not spawn a new process with your current configured python interpreter (/usr/local/bin/python3) But my Python interpreter is: /usr/bin/python3 Where does Anaconda get the incorrect string? I can't find it anywhere. Thanks! – Andrew Feb 20 '21 at 14:11
  • Update. Changed the "Build System" to Python - Anaconda. That looked in a valid path to python 3. Then told me to install nodejs. I did that and the console now has no errors. Also, my Python - Anaconda build system has disappeared from the "build systems" menu and the choice "python" is now selected again. The greyed-out context menu is also solved. Soo, t summarize the problem: The original python build system contained an invalid python path. Fixing that fixed the problem. – Andrew Feb 20 '21 at 15:06
  • Why could I not find the python build system? It appears to be in a zip file now per https://stackoverflow.com/questions/17573342/build-file-location-for-sublime-version-3 Thank you for your help, it set me on the right path. – Andrew Feb 20 '21 at 15:06