Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled method client/registerCapability #54

Open
1 task done
toramanlis opened this issue Mar 12, 2022 · 0 comments
Open
1 task done

Unhandled method client/registerCapability #54

toramanlis opened this issue Mar 12, 2022 · 0 comments

Comments

@toramanlis
Copy link

Prerequisites

Description

I can't seem to have an outline for .vue files and there is no autcomplete available. I'm not sure if I need to install a separate package for autocomplete but I'm interested in the outline anyway. This is the console output at the start of atom. Made it as simple as possible by disabling as many packages as I can.

Steps to Reproduce

  1. Purge the existing atom installation:
sudo apt purge atom
rm -rf ~/atom
rm -rf ~/.atom
rm -rf ~/.config/Atom
  1. Download and install a fresh atom using https://atom.io/download/deb.
  2. Install packages atom-ide-vue, language-vue, atom-ide-base and atom-ide-ui (to be able to see the console). At this point atom tells us we have two packages that do the same thing: linter and atom-ide-diagnostics and asks if we wanted to remove one of them. Politely decline. Then restart the ide for good measure. This is where we're at:
$ apm ls -id
Community Packages (15) /home/<toramanlis>/.atom/packages
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
  1. Add a project folder with a .vue file in it and open the file. Double check if the file is detected as a Vue file. Check if another option for a .vue file is listed. Everything should be in order. The outline view is completely empty. As in no messages about not having an outline either.
  2. Open the console and see the error message (along with some other messages about the error message):
(node:1680380) UnhandledPromiseRejectionWarning: Error: Unhandled method client/registerCapability
    at /home/<toramanlis>/.atom/packages/atom-ide-vue/node_modules/vls/dist/vueServerMain.js:1:33573
    at /home/<toramanlis>/.atom/packages/atom-ide-vue/node_modules/vls/dist/vueServerMain.js:1:33868
    at Immediate.<anonymous> (/home/<toramanlis>/.atom/packages/atom-ide-vue/node_modules/vls/dist/vueServerMain.js:1:34233)
    at processImmediate (internal/timers.js:439:21)
(node:1680380) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:1680380) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Expected behavior:

Having the proper outline for the file and no errors in the console.

Actual behavior:

No outline what so ever. Not the generic empty outline message either. Just the filter bar and that's it.

Reproduces how often:

Every single time consistently.

Versions

$ atom -v
Atom    : 1.60.0
Electron: 9.4.4
Chrome  : 83.0.4103.122
Node    : 12.14.1
$ apm -v
apm  2.6.2
npm  6.14.13
node 12.14.1 x64
atom 1.60.0
python 2.7.18
git 2.25.1
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
$ uname -r
5.15.6-051506-generic
$ nvm current
v14.18.2

Additional Information

This is the minimal package list I can reproduce the issue and see the results in the console:

$ apm ls -id
Community Packages (3) /home/<toramanlis>/.atom/packages
├── [email protected]
├── [email protected]
└── [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant