Giter Site home page Giter Site logo

Comments (4)

ccordoba12 avatar ccordoba12 commented on June 21, 2024

Hey @cippaciong, thanks for reporting. You're welcome to submit a pull request to fix this.

from python-language-server.

cippaciong avatar cippaciong commented on June 21, 2024

Hi @ccordoba12, I gave it a try (I moved from python-language-server to python-lsp-server in the meantime) but I'm stuck with an error that I'm having a hard time to understand.

You can see my changes here: https://github.com/cippaciong/python-lsp-server/commit/e4f84e515cd1bbd92bf8a02dd54628a0c038b42d

From the logs it looks like flake8 is invoked correctly:

2021-09-01 00:39:39,717 CEST - DEBUG - pylsp.plugins.flake8_lint - Got flake8 settings: {'select': ['C', 'E', 'F', 'W', 'B', 'B950'], 'enabled': True, 'extendIgnore': ['E203', 'E501', 'W503'], 'maxLineLength': 88}
2021-09-01 00:39:39,717 CEST - DEBUG - pylsp.plugins.flake8_lint - Calling flake8 with args: '['-', '--extend-ignore=E203,E501,W503', '--max-line-length=88', '--select=C,E,F,W,B,B950']'

But than I have this weird log line where it mixes a proper warning for E303 with a flake8 error unrecognized arguments: --extendIgnore=E203,E501,W503\n

2021-09-01 00:39:39,897 CEST - DEBUG - pylsp.config.config -   finish pylsp_lint --> [[{'source': 'flake8', 'range': {'start': {'line': 0, 'character': 0}, 'end': {'line': 0, 'character': 1}}, 'code': 'ERR', 'message': 'usage: flake8 [optio
ns] file file ...\nflake8: error: unrecognized arguments: --extendIgnore=E203,E501,W503\n', 'severity': 1}], [{'source': 'flake8', 'code': 'E303', 'range': {'start': {'line': 34, 'character': 4}, 'end': {'line': 34, 'character': 40}}, 'mess
age': 'E303 too many blank lines (2)', 'severity': 2}]] [hook]

Do you have any idea of what's happening here?

P.S. Let me know if you want me to move the discussion to the python-lsp-server repo

from python-language-server.

ccordoba12 avatar ccordoba12 commented on June 21, 2024

Yes, please open an issue in python-lsp-server because this project is abandoned.

from python-language-server.

cippaciong avatar cippaciong commented on June 21, 2024

Moved to python-lsp/python-lsp-server#76

from python-language-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.