Skip to content

Error with lsp-ui-imenu: Wrong type argument: integer-or-marker-p #16051

@spacegoing

Description

@spacegoing

Description :octocat:

While working with Python in Spacemacs using the LSP backend, I
encountered an error when trying to use lsp-ui-imenu. After
activating lsp-ui-imenu and pressing RET to jump to a symbol, I
receive the error message Wrong type argument: integer-or-marker-p.

Reproduction guide 🪲

  • Open a Python file.
  • Enable lsp-mode and lsp-ui-imenu (if not already enabled).
  • Activate lsp-ui-imenu (e.g., SPC m i in the Python file).
  • Attempt to jump to a symbol using RET.

Observed behaviour: 👀 💔

receive the error message

funcall-interactively: Wrong type argument: integer-or-marker-p,
#<overlay from 2868 to 2879 in doe_net.py> [3 times]

Expected behaviour: ❤️ 😄

I expected lsp-ui-imenu to navigate to the selected symbol in the Python file without error.

System Info 💻

  • OS: darwin
  • Emacs: 28.2
  • Spacemacs: 0.999.0
  • Spacemacs branch: develop (rev. c6c5082)
  • Graphic display: t
  • Running in daemon: nil
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(helm auto-completion better-defaults emacs-lisp git markdown org sdefaults sdired sorg c-c++ python
      (python :variables python-backend 'lsp python-lsp-server 'pylsp python-formatter 'yapf)
      html yaml sql csv docker
      (latex :variables latex-enable-auto-fill t latex-enable-folding t)
      semantic lsp spell-checking syntax-checking)
  • System configuration features: ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER THREADS TOOLKIT_SCROLL_BARS ZLIB

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions