question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

LSP cycling : restarting ... ready ... restarting ...

See original GitHub issue

Issue Report Checklist

  • [x ] Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

I use latest version (last commit e3326bd531d16ff3551855a56882f8df129f5dfc) with conda and for some reason the LSP is not working and I have a notification on the bottom bar LSP python restarting and then ready and it cycles for ever

What steps reproduce the problem?

  1. Just launch spyder via python bootstrap.py

What is the expected output? What do you see instead?

LSP working normally. Linting and completion and everything related to LSP is not working but everything else seems OK !!

Paste Traceback/Error Below (if applicable)

see the spyder-debug.log

spyder-debug.log

Versions

  • Spyder version: 5.0.0.dev0 - Revision e3326bd53
  • Python version: Python 3.7.6 64bits
  • Qt version: 5.12.5
  • PyQt version: 5.12.3 on [Linux]
  • Operating System name/version: Archlinux with conda

Dependencies

conda_list.log

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
golanguagecommented, Feb 23, 2021

For spyder4 & spyder 5 alpha4, I have same issue. so as above advise, I run “spyder --debug-info verbose --debug-output file”, and show a pop diag window, I choose show more, it say

-File “c:\users\liong\appdata\local\programs\python\python37\lib\site-packages\pyls_jsonrpc\endpoint.py”, line 113, in consume self.handle_request(message[‘id’], message[‘method’], message.get(‘params’)) File “c:\users\liong\appdata\local\programs\python\python37\lib\site-packages\pyls_jsonrpc\endpoint.py”, line 182, in handle_request handler_result = handler(params) File “c:\users\liong\appdata\local\programs\python\python37\lib\site-packages\pyls_jsonrpc\dispatchers.py”, line 23, in handler return method(**(params or {})) File “c:\users\liong\appdata\local\programs\python\python37\lib\site-packages\pyls\python_ls.py”, line 209, in m_initialize processId, kwargs.get(‘capabilities’, {})) File “c:\users\liong\appdata\local\programs\python\python37\lib\site-packages\pyls\config\config.py”, line 53, in init entry_point.load() File "c:\users\liong\appdata\local\programs\python\python37\lib\site-packages\pkg_resources_init.py", line 2446, in load self.require(*args, **kwargs) File "c:\users\liong\appdata\local\programs\python\python37\lib\site-packages\pkg_resources_init.py", line 2469, in require items = working_set.resolve(reqs, env, installer, extras=self.extras) File "c:\users\liong\appdata\local\programs\python\python37\lib\site-packages\pkg_resources_init.py", line 770, in resolve raise DistributionNotFound(req, requirers)

pkg_resources.DistributionNotFound: The ‘typed-ast>=1.4.0’ distribution was not found and is required by black. _

I forcefully upgrade/reinstall typed-ast to 1.4.2, LSP is ready now.

1reaction
redhairedceltcommented, May 22, 2020

Hey all, I’m still having a similar issue to what singhalarchit describes. Unlike Ticonderoga who opened this issue, I’m using the Conda installed version and do not have a mix of system and conda dependencies.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lsp servers are crashing? : r/neovim - Reddit
I write a simple function that send me a notification when a LSP suddenly exits and automatically restart it when detecting it crashes,...
Read more >
draft-ietf-isis-restart-05
Neighbors of the restarting router detect the restart event and cycle their adjacencies with the restarting router through the down state.
Read more >
IS-IS Commands on Cisco IOS XR Software
This module describes the commands used to configure and monitor the Intermediate System-to-Intermediate System (IS-IS) protocol.
Read more >
Getting Windows Ready - Restart Loop - Microsoft Community
Getting Windows Ready - Don't Turn Off Your Computer and then after a few seconds it says .... Restarting and it looks like...
Read more >
Resolved Issues: 21.1R1 | Junos OS | Juniper Networks
FPC might not be recognized after the power cycle (hard reboot). ... with active subscribers, and the FPC might be stuck at the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found