Article
Dmitry Maslennikov · Apr 23, 2021 2m read

Compile ObjectScript with SublimeText3

In addition to IntelliJ IDEA, it's now possible to configure SublimeText3 to be able to compile code there too. And what you will need is just the language server I did.

ScreenShot

  • Download the latest version of this Language Server from releases page, extract it somewhere
  • Install Package-Control in SublimeText3
  • Install Syntax Highlighting for ObjectScript
  • Install LSP plugin
    • Package Control: Install Package search for LSP (exact name), install it
  • Menu Preferences -> Package Settings -> LSP -> Settiings
    • Update settings file, to make it something like below, in command set the correct path to extracted Language Server executable for your platform
      {
        "clients": {
          "intersystems": {
            "enabled": true,
            "command": [
              "PATH/TO/intersystems-ls"
            ],
            "languages": [
              {
                "scopes": [
                  "source.objectscript"
                ],
                "languageId": "objectscript",
                "syntaxes": [
                  "Packages/ObjectScript.tmBundle/Syntaxes/objectscript.tmLanguage"
                ]
              },
              {
                "scopes": [
                  "source.objectscript_class"
                ],
                "languageId": "objectscript_class",
                "syntaxes": [
                  "Packages/ObjectScript.tmBundle/Syntaxes/objectscript-class.tmLanguage"
                ]
              }
            ]
          }
        }
      }
    • Configure access to IRIS
      "LSP": {
          "intersystems": {
            "settings": {
              "objectscript": {
                "conn": {
                  "active": true,
                  "host": "localhost",
                  "ns": "USER",
                  "superPort": 1972,
                  "username": "_SYSTEM",
                  "password": "SYS"
                }
              }
            }
          }
        }
  • Command Palette, LSP: Toggle Log Panel should show messages after save of changed files

 

If you like it, please vote for the IntelliJ IDEA Plugin, which uses this Language Server as well.

41
1 0 1 92
Log in or sign up to continue

Replies

That’s interesting, somebody dislike that new ability?

With this language server in fact, it’s possible to add the ability to compile ObjectScript code to any editor which got the support for Language Server Protocol, and it includes even vim/neovim, emacs, and some other editors. If you would like to add this to any supported editor and need help, contact me.