Flow-for-vscode: Intellisense doesn't work over remote ssh with useLSP=true

Created on 7 Jun 2019  路  19Comments  路  Source: flowtype/flow-for-vscode

Hover/autocomplete features don't work when using https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh in lsp mode.

Most helpful comment

@minedeljkovic & @ssenchenko I found the issue will push the fix soon.

All 19 comments

Definition, references, document symbols, rename do not work, also.
Diagnostics, however, does work.

Debug info seems ok:

[Info  - 11:49:01 - frontend/.flowconfig] {
  "flowconfig": "/home/ubuntu/frontend/.flowconfig",
  "flow": {
    "path": "/home/ubuntu/frontend/node_modules/flow-bin/flow-linux64-v0.100.0/flow",
    "version": "0.100.0"
  },
  "serverStatus": {
    "state": "idle",
    "message": "Flow: done recheck"
  }
}

Enable "flow.trace.server": "verbose" and check for response of 'textDocument/hover' request (server trace will be logged in output > flow panel).

There are no 'textDocument/hover' requests present in the log at all.
I've also found out that everything works correctly using version 1.0.1 of the plugin(it is broken since 1.1.0).

@jarkonik Can you share some sample project which is not working. I tried mine its working fine with v1.1.0. Is your plugin running what is showing up in status bar icon?.

@Mayank1791989 Status bar displays flow version (0.93.0) (I've tried version 0.100 of flow too but it doesn't change anything) and coverage correctly. Even the "problems" tab is working ok - it displays all the flow type checking errors correctly.

// @flow
type MyType = {
    myField: string
};

function main() {
    const a: MyType = {
        myField: 'test'
    };
}

I've tried it with this code within a file named main.js in the project root directory and default .flowconfig file. Hovering over any of types/vars does not cause a popup to appear, IntelliSense shows only generic text-based autocompletion.

@jarkonik any progress?

@Mayank1791989 Are you sure you are not seeing builtin TypeScript extension autocomplete/hover data? I have tested it in multiple different environments and it never works.

@jarkonik I always keep Typescript plugin disabled so I am sure that is not the case. Anyways I will test it again.

It's working fine.

@Mayank1791989 my team is using remote ssh extensively, and we are experiencing exact same symptoms as @jarkonik. It seems you are testing it differently

the same issue with remote wsl

also there are no type hints in remote wsl

@ssenchenko Is plugin starting correctly? (Look at output > flow panel logs or status bar widget to find.)
Also enable "flow.trace.server": "verbose" to see lsp logs and look for request and response. It looks like some setup issue.

@minedeljkovic Are you able to run the plugin? I tried again it's working for me. I am testing using linux machine for host and remote. Share your flow output panel logs.

I am testing using linux machine for host and remote

That seems to be the difference! I'm regularly using windows host and linux remote (and, extremely likely, so is @jarkonik), and I just tried it on linux host and linux remote, and it does work.
So my experience is that on windows host extension does not fully work after version 1.0.1 (as described here, here and here). On linux host, the latest version seems to work 100%.

@minedeljkovic Ok I will test with windows host and try to find issue.

@minedeljkovic & @ssenchenko I found the issue will push the fix soon.

@Mayank1791989 Seems that the issue reappeared again in vscode version 1.39.1

I have same problem with flowtype and vscode remote WSL
on hover I don't see any types

Was this page helpful?
0 / 5 - 0 ratings