Skip to content
This repository was archived by the owner on Feb 1, 2019. It is now read-only.
This repository was archived by the owner on Feb 1, 2019. It is now read-only.

Provide clear step by step instructions on how to use this. #59

@guanzo

Description

@guanzo

I downloaded this plugin from the vscode marketplace, expecting it to "just work", sadly this isn't the case. I'm quite new to coala so please excuse any ignorance.

My project folder has a .coafile and I have installed all the "bears". I'm able to run coala on the cmd line and see the syntax errors. Now I want to use this plugin to show syntax errors directly in vscode.

What I've tried by following the README directions:

  • git clone https://github.com/coala/coala-vs-code
  • my workspace directory now looks like
    • workspace/
      • coala-vs-code
      • myProject
  • cd coala-vs-code
  • Run pip3 install -r requirements.txt.
  • Run python3 langserver-python.py --mode=tcp --addr=2087
    • This fails because can't open file 'langserver-python.py': [Errno 2] No such file or directory
    • I see a file called coala-langserver.py, so I try using that instead of langserver-python.py
    • Run python3 coala-langserver.py --mode=tcp --addr=2087
    • I now see Accepting TCP connections on 0.0.0.0:2087
  • I edit the activate function in coala-vs-code/vs-client/src/extension.ts
  • I open coala-vs-code/vscode-client in vscode.
  • I turn to debug view and launch the extension
  • I see a vscode error: "Build errors have been detected during preLaunchTask 'npm'. extension.ts is trying to import modules. It looks like i need to run npm install. So i do that.
  • I turn to debug view and launch the extension. I get the same error, except the message is now

Argument of type '{ reader: Socket; writer: Socket; }' is not assignable to parameter of type 'ChildProcess | StreamInfo | PromiseLike<ChildProcess | StreamInfo>'.
Type '{ reader: Socket; writer: Socket; }' is not assignable to type 'PromiseLike<ChildProcess | StreamInfo>'.
Property 'then' is missing in type '{ reader: Socket; writer: Socket; }'.

  • I click "Debug anyway". A new vscode window opens, I navigate to my project folder workspace/myProject.
  • A vscode error notification pops up and says

Activating extension 'coala.coala' failed: Cannot find module '/Users/guanzo/workspace/coala-vs-code/vscode-client/out/src/extension'.

This is what happens when i follow the directions in the README. Please help, what am I doing wrong? I just want red underlines under python syntax errors in my project.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions