phan icon indicating copy to clipboard operation
phan copied to clipboard

Update wiki instructions for IDE support in intellij/phpstorm

Open TysonAndre opened this issue 5 years ago • 3 comments

See if https://plugins.jetbrains.com/plugin/10209-lsp-support works - it may require updates for the betas

TysonAndre avatar Jul 24 '20 20:07 TysonAndre

for context this is my working sublime text -> lsp -> phan config:

// Settings in here override those in "LSP/LSP.sublime-settings"
{
  // "log_stderr": true,
  "auto_show_diagnostics_panel": "never",
  // "diagnostics_gutter_marker": "",
  "show_diagnostics_highlights": true,
  // "diagnostics_highlights_style": "fill",
  // "show_code_actions_bulb": false,
  // "show_symbol_action_links": true,
  // "show_view_status": false,
  // "complete_all_chars": false,
  "disabled_capabilities": ["hover", "completion", "signatureHelp"],
  "clients": {
    "phan": {
      "command": [
        "/Users/adriansmith/.composer/vendor/bin/phan",
        "--quick",
        "--language-server-on-stdin",
        // "--language-server-disable-hover",
        "--language-server-disable-completion",
        "--language-server-disable-go-to-definition",
      ],
      "enabled": true,
      "initializationOptions": {
        "storagePath": "/tmp/phan",
      },
      "languages": [
        {
          "languageId": "php",
          "scopes": ["source.php", "embedding.php"],
          "syntaxes": ["Packages/PHP/PHP.sublime-syntax"],
        }
      ],
    },
  },
}

I'm attempting to do the same with the LSP support plugin for intellji, but I'm not having much luck:

Screenshot 2021-07-14 at 14 14 35 Screenshot 2021-07-14 at 14 14 24 Screenshot 2021-07-14 at 14 14 03 Screenshot 2021-07-14 at 14 11 58

I have another LSP server clj-kondo working inside intellji so I know the plugin works to a degree, but not sure what's failing between phan and LSP Support plugin for intellji

slifin avatar Jul 14 '21 13:07 slifin

For further context these are the versions: Screenshot 2021-07-14 at 14 19 08 and 1.6.1 for the lsp support plugin

slifin avatar Jul 14 '21 13:07 slifin

I think this is JetBrains ticket from their side https://youtrack.jetbrains.com/issue/WI-30592

slifin avatar Jul 29 '21 10:07 slifin