Code Monkey home page Code Monkey logo

yeray.dev's Introduction

Personal website

https://yeray.dev

Using Jekyll and a customised Minima theme.

Setup

  1. Install Ruby, ideally using asdf
  2. Install Bundler: gem install bundler
  3. Install the Jekyll and other dependencies: bundler install
  4. Start Jekyll: jekyll serve

yeray.dev's People

Contributors

yeraydiazdiaz avatar brainwane avatar dependabot[bot] avatar

Watchers

James Cloos avatar

yeray.dev's Issues

I can not see Flake8 and mypy errors

I follow you blog use sublime text 4 install LSP, LSP-pylsp, LSP-json.

// Settings in here override those in "LSP-pylsp/LSP-pylsp.sublime-settings"

{
    "pylsp.plugins.mypy-ls.enabled": true,
    "pylsp.plugins.flake8.enabled": true,
    "pylsp.configurationSources": ["flake8"],
    "pylsp.plugins.pyls_black.enabled": true,
}


I can't see Flake8 and mypy errors ,seems like Flake8 and mypy are not working
I don't use a virtual environment

image

Troubleshooting: LSP-pylsp

Version

  • LSP: 1.16.2
  • Sublime Text: 4126

Server Test Run

  • exit code: 0
  • output

Server Configuration

  • command
[
  "$server_path"
]
  • shell command
"C:\Apps\sublime_text\Data\Package Storage\LSP-pylsp\Scripts\pylsp.exe"
  • selector
source.python
  • priority_selector
(source.python)
  • init_options
{}
  • settings
{
  "pylsp": {
    "configurationSources": [
      "pycodestyle"
    ], 
    "plugins": {
      "autopep8": {
        "enabled": true
      }, 
      "black": {
        "cache_config": false, 
        "enabled": false, 
        "line_length": 88, 
        "preview": false
      }, 
      "flake8": {
        "config": null, 
        "enabled": false, 
        "exclude": null, 
        "executable": "flake8", 
        "filename": null, 
        "hangClosing": null, 
        "ignore": null, 
        "maxLineLength": null, 
        "perFileIgnores": null, 
        "select": null
      }, 
      "jedi": {
        "env_vars": null, 
        "environment": null, 
        "extra_paths": [
          "$sublime_py_files_dir", 
          "$packages"
        ]
      }, 
      "jedi_completion": {
        "cache_for": [
          "pandas", 
          "numpy", 
          "tensorflow", 
          "matplotlib"
        ], 
        "eager": false, 
        "enabled": true, 
        "fuzzy": true, 
        "include_class_objects": true, 
        "include_params": true, 
        "resolve_at_most": 25
      }, 
      "jedi_definition": {
        "enabled": true, 
        "follow_builtin_imports": true, 
        "follow_imports": true
      }, 
      "jedi_hover": {
        "enabled": true
      }, 
      "jedi_references": {
        "enabled": true
      }, 
      "jedi_signature_help": {
        "enabled": true
      }, 
      "jedi_symbols": {
        "all_scopes": true, 
        "enabled": true, 
        "include_import_symbols": true
      }, 
      "mccabe": {
        "enabled": true, 
        "threshold": 15
      }, 
      "preload": {
        "enabled": true, 
        "modules": null
      }, 
      "pycodestyle": {
        "aggressive": null, 
        "enabled": true, 
        "exclude": null, 
        "filename": null, 
        "hangClosing": null, 
        "ignore": null, 
        "maxLineLength": null, 
        "select": null
      }, 
      "pydocstyle": {
        "addIgnore": null, 
        "addSelect": null, 
        "convention": null, 
        "enabled": false, 
        "ignore": null, 
        "match": "(?!test_).*\\.py", 
        "matchDir": "[^\\.].*", 
        "select": null
      }, 
      "pyflakes": {
        "enabled": false
      }, 
      "pylint": {
        "args": null, 
        "enabled": false, 
        "executable": ""
      }, 
      "pyls_isort": {
        "enabled": false
      }, 
      "pylsp_mypy": {
        "dmypy": false, 
        "enabled": false, 
        "live_mode": true, 
        "strict": false
      }, 
      "rope_completion": {
        "eager": false, 
        "enabled": false
      }, 
      "yapf": {
        "enabled": false
      }
    }, 
    "rope": {
      "extensionModules": null, 
      "ropeFolder": null
    }
  }
}
  • env
{
  "MYPYPATH": "${sublime_py_files_dir}${pathsep}${packages}", 
  "PATH": "C:\\Apps\\sublime_text\\Data\\Package Storage\\LSP-pylsp\\Scripts;C:\\Apps\\sublime_text\\Data\\Package Storage\\LSP-pylsp\\Scripts;", 
  "PYTHONPATH": "${sublime_py_files_dir}${pathsep}${packages}"
}

Active view

  • File name
C:\Users\brucm\Desktop\test.py
  • Settings
{
  "auto_complete_selector": "meta.tag, source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc", 
  "lsp_active": true, 
  "syntax": "Packages/MagicPython/grammars/MagicPython.tmLanguage"
}
  • base scope
source.python

Project / Workspace

  • folders
[]
  • is project: False

LSP configuration

null

System PATH

  • C:\Windows\system32
  • C:\Windows
  • C:\Windows\System32\Wbem
  • C:\Windows\System32\WindowsPowerShell\v1.0\
  • C:\Windows\System32\OpenSSH\
  • C:\Program Files\Git\cmd
  • C:\Program Files\dotnet\
  • C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL
  • C:\Program Files\Intel\Intel(R) Management Engine Components\DAL
  • C:\Users\brucm\scoop\apps\ojdkbuild8\current\bin
  • C:\Users\brucm\scoop\apps\openjdk\current\bin
  • C:\Users\brucm\AppData\Local\pnpm
  • C:\Users\brucm\scoop\apps\nvm\current\nodejs\nodejs
  • C:\Users\brucm\scoop\apps\gcc\current\bin
  • C:\Users\brucm\scoop\apps\python\current\Scripts
  • C:\Users\brucm\scoop\apps\python\current
  • C:\Users\brucm\scoop\apps\gsudo\current
  • C:\Users\brucm\scoop\shims
  • C:\Users\brucm\AppData\Local\Microsoft\WindowsApps
  • C:\Users\brucm\AppData\Local\Programs\Microsoft VS Code\bin

PYLSP Crashing

I setted up Pylsp exacly the way you wrote in your blog.
I'm using a virtual environment, so I also setted it up the way you wrote in your blog (except the PATH).
Now, when enabling the plugin in the project, Sublime Text says pylsp server crashed 5 times in the las 180 seconds.
I setted up the log file as you wrote in your blog, but no log file is created.
Do you have any idea on how to solve it and make it actually work?

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.