Giter Site home page Giter Site logo

Comments (3)

tigersoldier avatar tigersoldier commented on September 6, 2024

Looks like it's unrelated to JavaComp. This error is thrown from sp-ui-sideline calling thing-at-point.

Please make sure you don't have any package overriding thing-at-point. Your version in the stack trace is different from mine. Here is what this function looks like from my Emacs 26.1:

;;;###autoload
(defun thing-at-point (thing &optional no-properties)
  "Return the THING at point.
THING should be a symbol specifying a type of syntactic entity.
Possibilities include `symbol', `list', `sexp', `defun',
`filename', `url', `email', `word', `sentence', `whitespace',
`line', `number', and `page'.

When the optional argument NO-PROPERTIES is non-nil,
strip text properties from the return value.

See the file `thingatpt.el' for documentation on how to define
a symbol as a valid THING."
  (let ((text
         (if (get thing 'thing-at-point)
             (funcall (get thing 'thing-at-point))
           (let ((bounds (bounds-of-thing-at-point thing)))
             (when bounds
               (buffer-substring (car bounds) (cdr bounds)))))))
    (when (and text no-properties (sequencep text))
      (set-text-properties 0 (length text) nil text))
    text))

from lsp-javacomp.

vkazanov avatar vkazanov commented on September 6, 2024

Thanks you! I'll check and either close the ticket if it's not related to JavaComp or expand on this one if it turns out something is wrong.

BTW. There's extra quote in the README use-package setup example ((require 'lsp-javacomp'), notice the tailing quote).

from lsp-javacomp.

vkazanov avatar vkazanov commented on September 6, 2024

Thanks you so much! I have a really big config, which made through multiple emacs versions. It turns out I had a tweaked thing-at-point implementation which overrided the bundled one.

Now things really do work as intended!

from lsp-javacomp.

Related Issues (4)

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.