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

flymake fringe indicator and warning underline #632

Closed
badlirashid opened this issue Feb 28, 2021 · 23 comments
Closed

flymake fringe indicator and warning underline #632

badlirashid opened this issue Feb 28, 2021 · 23 comments

Comments

@badlirashid
Copy link

After eglot was connected and flymake was loaded.

The fringe indicator and warning underline was not shown. I have restarted flymake but the indicator and underline was not enable.

flymake have no issues if eglot was not loaded

i have tested with emacs 27.1.91 and 28.0.50. with git 2d44207.

Before submitting an issue, please, read our guidelines
on reporting bugs here:
https://github.com/joaotavora/eglot#reporting-bugs

@joaotavora
Copy link
Owner

Before submitting an issue, please, read our guidelines
on reporting bugs here:
https://github.com/joaotavora/eglot#reporting-bugs

Well? :-)

@badlirashid
Copy link
Author

badlirashid commented Feb 28, 2021

please find the below.

[stderr] Solargraph is listening PORT=33281 PID=41352
[client-request] (id:1) Sun Feb 28 10:44:44 2021:
(:jsonrpc "2.0" :id 1 :method "initialize" :params
      (:processId nil :rootPath "/home/defaultuser1/" :rootUri "file:///home/defaultuser1" :initializationOptions #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8125 data
                                                                    ())
              :capabilities
              (:workspace
               (:applyEdit t :executeCommand
                   (:dynamicRegistration :json-false)
                   :workspaceEdit
                   (:documentChanges :json-false)
                   :didChangeWatchedFiles
                   (:dynamicRegistration t)
                   :symbol
                   (:dynamicRegistration :json-false)
                   :configuration t)
               :textDocument
               (:synchronization
            (:dynamicRegistration :json-false :willSave t :willSaveWaitUntil t :didSave t)
            :completion
            (:dynamicRegistration :json-false :completionItem
                          (:snippetSupport :json-false)
                          :contextSupport t)
            :hover
            (:dynamicRegistration :json-false :contentFormat
                          ["plaintext"])
            :signatureHelp
            (:dynamicRegistration :json-false :signatureInformation
                          (:parameterInformation
                           (:labelOffsetSupport t)))
            :references
            (:dynamicRegistration :json-false)
            :definition
            (:dynamicRegistration :json-false)
            :declaration
            (:dynamicRegistration :json-false)
            :implementation
            (:dynamicRegistration :json-false)
            :typeDefinition
            (:dynamicRegistration :json-false)
            :documentSymbol
            (:dynamicRegistration :json-false :hierarchicalDocumentSymbolSupport t :symbolKind
                          (:valueSet
                           [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26]))
            :documentHighlight
            (:dynamicRegistration :json-false)
            :codeAction
            (:dynamicRegistration :json-false :codeActionLiteralSupport
                          (:codeActionKind
                           (:valueSet
                        ["quickfix" "refactor" "refactor.extract" "refactor.inline" "refactor.rewrite" "source" "source.organizeImports"]))
                          :isPreferredSupport t)
            :formatting
            (:dynamicRegistration :json-false)
            :rangeFormatting
            (:dynamicRegistration :json-false)
            :rename
            (:dynamicRegistration :json-false)
            :publishDiagnostics
            (:relatedInformation :json-false))
               :experimental #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8125 data
                           ()))))
[stderr] (none):57: warning: key "rdoc/usage" is duplicated and overwritten on line 62
[stderr] (none):1: warning: encountered \r in middle of line, treated as a mere space
[stderr] (none):283: warning: key "bin-dir" is duplicated and overwritten on line 284
[stderr] (none):103: warning: invalid character syntax; use \C-\s
[server-reply] (id:1) Sun Feb 28 10:45:00 2021:
(:jsonrpc "2.0" :id 1 :result
      (:capabilities
       (:textDocumentSync 2 :workspace
                  (:workspaceFolders
                   (:supported t :changeNotifications t))
                  :completionProvider
                  (:resolveProvider t :triggerCharacters
                        ["." ":" "@"])
                  :signatureHelpProvider
                  (:triggerCharacters
                   ["(" ","])
                  :hoverProvider t :documentFormattingProvider t :documentSymbolProvider t :definitionProvider t :renameProvider
                  (:prepareProvider t)
                  :referencesProvider t :workspaceSymbolProvider t :foldingRangeProvider t)))
[client-notification] Sun Feb 28 10:45:00 2021:
(:jsonrpc "2.0" :method "initialized" :params #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8125 data
                                ()))
[client-notification] Sun Feb 28 10:45:00 2021:
(:jsonrpc "2.0" :method "textDocument/didOpen" :params
      (:textDocument
       (:uri "file:///home/defaultuser1/hello.rb" :version 0 :languageId "ruby" :text "puts 'hello one two three'\nputs \"hello\"\nputs ' and four and five and six'\nputs 'seven eight nine and ten, ten t'\nputs '''Hello'\n")))
[client-notification] Sun Feb 28 10:45:00 2021:
(:jsonrpc "2.0" :method "workspace/didChangeConfiguration" :params
      (:settings nil))
[stderr] [ANY] Solargraph initialized (11.882037975001367 seconds)
[client-request] (id:2) Sun Feb 28 10:45:08 2021:
(:jsonrpc "2.0" :id 2 :method "textDocument/signatureHelp" :params
      (:textDocument
       (:uri "file:///home/defaultuser1/hello.rb")
       :position
       (:line 5 :character 0)))
[client-request] (id:3) Sun Feb 28 10:45:08 2021:
(:jsonrpc "2.0" :id 3 :method "textDocument/hover" :params
      (:textDocument
       (:uri "file:///home/defaultuser1/hello.rb")
       :position
       (:line 5 :character 0)))
[server-reply] (id:2) Sun Feb 28 10:45:08 2021:
(:jsonrpc "2.0" :id 2 :result
      (:signatures
       []))
[server-reply] (id:3) Sun Feb 28 10:45:08 2021:
(:jsonrpc "2.0" :id 3 :result
      (:contents
       (:kind "markdown" :value "")))
[client-notification] Sun Feb 28 10:45:09 2021:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
      (:textDocument
       (:uri "file:///home/defaultuser1/hello.rb" :version 1)
       :contentChanges
       [(:range
         (:start
          (:line 5 :character 0)
          :end
          (:line 5 :character 0))
         :rangeLength 0 :text "p")]))
[client-request] (id:4) Sun Feb 28 10:45:09 2021:
(:jsonrpc "2.0" :id 4 :method "textDocument/completion" :params
      (:textDocument
       (:uri "file:///home/defaultuser1/hello.rb")
       :position
       (:line 5 :character 1)
       :context
       (:triggerKind 1)))
[client-request] (id:5) Sun Feb 28 10:45:09 2021:
(:jsonrpc "2.0" :id 5 :method "textDocument/signatureHelp" :params
      (:textDocument
       (:uri "file:///home/defaultuser1/hello.rb")
       :position
       (:line 5 :character 1)))
[client-request] (id:6) Sun Feb 28 10:45:09 2021:
(:jsonrpc "2.0" :id 6 :method "textDocument/hover" :params
      (:textDocument
       (:uri "file:///home/defaultuser1/hello.rb")
       :position
       (:line 5 :character 1)))
[server-reply] (id:4) Sun Feb 28 10:45:09 2021:
(:jsonrpc "2.0" :id 4 :result
      (:isIncomplete :json-false :items
             [(:label "PHPFunction" :kind 7 :detail "=> Class<PHPFunction>" :data
                  (:path "PHPFunction" :return_type "Class<PHPFunction>" :location
                     (:filename "/home/defaultuser1/Desktop/emacs-vendor/yasnippet/yasmate/php.tmbundle/Support/lib/php.rb" :range
                            (:start
                             (:line 0 :character 0)
                             :end
                             (:line 37 :character 3)))
                     :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "PHPFunction")
                  :sortText "0000PHPFunction")
              (:label "PP" :kind 7 :detail "=> Class<PP>" :data
                  (:path "PP" :return_type "Class<PP>" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "PP")
                  :sortText "0000PP")
              (:label "PStore" :kind 7 :detail "=> Class<PStore>" :data
                  (:path "PStore" :return_type "Class<PStore>" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "PStore")
                  :sortText "0000PStore")
              (:label "Pathname" :kind 7 :detail "=> Class<Pathname>" :data
                  (:path "Pathname" :return_type "Class<Pathname>" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "Pathname")
                  :sortText "0000Pathname")
              (:label "Person" :kind 7 :detail "=> Class<Person>" :data
                  (:path "Person" :return_type "Class<Person>" :location
                     (:filename "/home/defaultuser1/Desktop/emacs-vendor/yasnippet/yasmate/bundles/rails-tmbundle/Support/test/app_fixtures/app/models/person.rb" :range
                            (:start
                             (:line 0 :character 0)
                             :end
                             (:line 1 :character 3)))
                     :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "Person")
                  :sortText "0000Person")
              (:label "PhpMate" :kind 7 :detail "=> Class<PhpMate>" :data
                  (:path "PhpMate" :return_type "Class<PhpMate>" :location
                     (:filename "/home/defaultuser1/Desktop/emacs-vendor/yasnippet/yasmate/php.tmbundle/Support/lib/php_mate.rb" :range
                            (:start
                             (:line 24 :character 0)
                             :end
                             (:line 42 :character 3)))
                     :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "PhpMate")
                  :sortText "0000PhpMate")
              (:label "PhpScript" :kind 7 :detail "=> Class<PhpScript>" :data
                  (:path "PhpScript" :return_type "Class<PhpScript>" :location
                     (:filename "/home/defaultuser1/Desktop/emacs-vendor/yasnippet/yasmate/php.tmbundle/Support/lib/php_mate.rb" :range
                            (:start
                             (:line 2 :character 0)
                             :end
                             (:line 22 :character 3)))
                     :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "PhpScript")
                  :sortText "0000PhpScript")
              (:label "Pool" :kind 7 :detail "=> Class<Pool>" :data
                  (:path "Pool" :return_type "Class<Pool>" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "Pool")
                  :sortText "0000Pool")
              (:label "PostsController" :kind 7 :detail "=> Class<PostsController>" :data
                  (:path "PostsController" :return_type "Class<PostsController>" :location
                     (:filename "/home/defaultuser1/Desktop/emacs-vendor/yasnippet/yasmate/bundles/rails-tmbundle/Support/test/fixtures/app/controllers/posts_controller.rb" :range
                            (:start
                             (:line 0 :character 0)
                             :end
                             (:line 23 :character 3)))
                     :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "PostsController")
                  :sortText "0000PostsController")
              (:label "Proc" :kind 7 :detail "=> Class<Proc>" :data
                  (:path "Proc" :return_type "Class<Proc>" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "Proc")
                  :sortText "0000Proc")
              (:label "Process" :kind 9 :detail "=> Module<Process>" :data
                  (:path "Process" :return_type "Module<Process>" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "Process")
                  :sortText "0000Process")
              (:label "Psych" :kind 9 :detail "=> Module<Psych>" :data
                  (:path "Psych" :return_type "Module<Psych>" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "Psych")
                  :sortText "0000Psych")
              (:label "params_quoted" :kind 2 :detail "(field_name, default)" :data
                  (:path "#params_quoted" :return_type "undefined" :location
                     (:filename "/home/defaultuser1/Desktop/emacs-vendor/yasnippet/yasmate/bundles/ruby-tmbundle/Tests/rubylexer/p.rb" :range
                            (:start
                             (:line 790 :character 0)
                             :end
                             (:line 792 :character 3)))
                     :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "params_quoted")
                  :sortText "0001params_quoted")
              (:label "parse_line" :kind 2 :detail nil :data
                  (:path "#parse_line" :return_type "undefined" :location
                     (:filename "/home/defaultuser1/Desktop/emacs-vendor/yasnippet/yasmate/bundles/rails-tmbundle/Support/bin/fixture_auto_complete.rb" :range
                            (:start
                             (:line 7 :character 0)
                             :end
                             (:line 18 :character 3)))
                     :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "parse_line")
                  :sortText "0001parse_line")
              (:label "parts_of_reference" :kind 2 :detail "(docset, ref_str)" :data
                  (:path "#parts_of_reference" :return_type "undefined" :location
                     (:filename "/home/defaultuser1/Desktop/emacs-vendor/yasnippet/yasmate/bundles/objc-tmbundle/Support/lib/docset_query.rb" :range
                            (:start
                             (:line 66 :character 0)
                             :end
                             (:line 74 :character 3)))
                     :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "parts_of_reference")
                  :sortText "0001parts_of_reference")
              (:label "path_to_url_chunk" :kind 2 :detail "(path)" :data
                  (:path "#path_to_url_chunk" :return_type "undefined" :location
                     (:filename "/home/defaultuser1/Desktop/emacs-vendor/yasnippet/yasmate/bundles/ruby-tmbundle/Support/RubyMate/run_script.rb" :range
                            (:start
                             (:line 64 :character 0)
                             :end
                             (:line 79 :character 3)))
                     :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "path_to_url_chunk")
                  :sortText "0001path_to_url_chunk")
              (:label "pattern_for" :kind 2 :detail "(name, list)" :data
                  (:path "#pattern_for" :return_type "undefined" :location
                     (:filename "/home/defaultuser1/Desktop/emacs-vendor/yasnippet/yasmate/php.tmbundle/Support/generate/generate.rb" :range
                            (:start
                             (:line 58 :character 0)
                             :end
                             (:line 64 :character 3)))
                     :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "pattern_for")
                  :sortText "0001pattern_for")
              (:label "pattern_for_classes" :kind 2 :detail "(name, list)" :data
                  (:path "#pattern_for_classes" :return_type "undefined" :location
                     (:filename "/home/defaultuser1/Desktop/emacs-vendor/yasnippet/yasmate/php.tmbundle/Support/generate/generate.rb" :range
                            (:start
                             (:line 66 :character 0)
                             :end
                             (:line 73 :character 3)))
                     :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "pattern_for_classes")
                  :sortText "0001pattern_for_classes")
              (:label "prelude" :kind 2 :detail "(f, out)" :data
                  (:path "#prelude" :return_type "undefined" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "prelude")
                  :sortText "0001prelude")
              (:label "prepend" :kind 2 :detail "(text, prefix)" :data
                  (:path "#prepend" :return_type "undefined" :location
                     (:filename "/home/defaultuser1/Desktop/emacs-vendor/yasnippet/yasmate/bundles/rails-tmbundle/Support/bin/insert_add_column_or_create_table.rb" :range
                            (:start
                             (:line 3 :character 0)
                             :end
                             (:line 5 :character 3)))
                     :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "prepend")
                  :sortText "0001prepend")
              (:label "presuff" :kind 2 :detail "(items)" :data
                  (:path "#presuff" :return_type "undefined" :location
                     (:filename "/home/defaultuser1/Desktop/emacs-vendor/yasnippet/yasmate/bundles/objc-tmbundle/Support/anonymousEnums.rb" :range
                            (:start
                             (:line 14 :character 0)
                             :end
                             (:line 38 :character 3)))
                     :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "presuff")
                  :sortText "0001presuff")
              (:label "printem" :kind 2 :detail "(a, b, c)" :data
                  (:path "#printem" :return_type "undefined" :location
                     (:filename "/home/defaultuser1/Desktop/emacs-vendor/yasnippet/yasmate/bundles/ruby-tmbundle/Tests/rubylexer/p.rb" :range
                            (:start
                             (:line 1084 :character 0)
                             :end
                             (:line 1088 :character 3)))
                     :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "printem")
                  :sortText "0001printem")
              (:label "printem0" :kind 2 :detail "(a)" :data
                  (:path "#printem0" :return_type "undefined" :location
                     (:filename "/home/defaultuser1/Desktop/emacs-vendor/yasnippet/yasmate/bundles/ruby-tmbundle/Tests/rubylexer/p.rb" :range
                            (:start
                             (:line 1069 :character 0)
                             :end
                             (:line 1071 :character 3)))
                     :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "printem0")
                  :sortText "0001printem0")
              (:label "printem1" :kind 2 :detail "(a, b, c)" :data
                  (:path "#printem1" :return_type "undefined" :location
                     (:filename "/home/defaultuser1/Desktop/emacs-vendor/yasnippet/yasmate/bundles/ruby-tmbundle/Tests/rubylexer/p.rb" :range
                            (:start
                             (:line 1059 :character 0)
                             :end
                             (:line 1063 :character 3)))
                     :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "printem1")
                  :sortText "0001printem1")
              (:label "printem2" :kind 2 :detail "(a, b, c)" :data
                  (:path "#printem2" :return_type "undefined" :location
                     (:filename "/home/defaultuser1/Desktop/emacs-vendor/yasnippet/yasmate/bundles/ruby-tmbundle/Tests/rubylexer/p.rb" :range
                            (:start
                             (:line 1077 :character 0)
                             :end
                             (:line 1077 :character 52)))
                     :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "printem2")
                  :sortText "0001printem2")
              (:label "process_html_output" :kind 2 :detail "(text, term)" :data
                  (:path "#process_html_output" :return_type "undefined" :location
                     (:filename "/home/defaultuser1/Desktop/emacs-vendor/yasnippet/yasmate/bundles/ruby-tmbundle/Support/bin/linked_ri.rb" :range
                            (:start
                             (:line 32 :character 0)
                             :end
                             (:line 78 :character 3)))
                     :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "process_html_output")
                  :sortText "0001process_html_output")
              (:label "process_list" :kind 2 :detail "(list)" :data
                  (:path "#process_list" :return_type "undefined" :location
                     (:filename "/home/defaultuser1/Desktop/emacs-vendor/yasnippet/yasmate/php.tmbundle/Support/generate/generate.rb" :range
                            (:start
                             (:line 28 :character 0)
                             :end
                             (:line 56 :character 3)))
                     :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "process_list")
                  :sortText "0001process_list")
              (:label "private_methods" :kind 2 :detail "(*args)" :data
                  (:path "Object#private_methods" :return_type "undefined" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "private_methods")
                  :sortText "0002private_methods")
              (:label "protected_methods" :kind 2 :detail "(*args)" :data
                  (:path "Object#protected_methods" :return_type "undefined" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "protected_methods")
                  :sortText "0002protected_methods")
              (:label "public_method" :kind 2 :detail "(vid)" :data
                  (:path "Object#public_method" :return_type "undefined" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "public_method")
                  :sortText "0002public_method")
              (:label "public_methods" :kind 2 :detail "(*args)" :data
                  (:path "Object#public_methods" :return_type "undefined" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "public_methods")
                  :sortText "0002public_methods")
              (:label "public_send" :kind 2 :detail "(*args)" :data
                  (:path "Object#public_send" :return_type "undefined" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "public_send")
                  :sortText "0002public_send")
              (:label "pretty_print" :kind 2 :detail "(q)" :data
                  (:path "PP::ObjectMixin#pretty_print" :return_type "undefined" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "pretty_print")
                  :sortText "0003pretty_print")
              (:label "pretty_print_cycle" :kind 2 :detail "(q)" :data
                  (:path "PP::ObjectMixin#pretty_print_cycle" :return_type "undefined" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "pretty_print_cycle")
                  :sortText "0003pretty_print_cycle")
              (:label "pretty_print_inspect" :kind 2 :detail nil :data
                  (:path "PP::ObjectMixin#pretty_print_inspect" :return_type "undefined" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "pretty_print_inspect")
                  :sortText "0003pretty_print_inspect")
              (:label "pretty_print_instance_variables" :kind 2 :detail nil :data
                  (:path "PP::ObjectMixin#pretty_print_instance_variables" :return_type "undefined" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "pretty_print_instance_variables")
                  :sortText "0003pretty_print_instance_variables")
              (:label "p" :kind 2 :detail "(*args)" :data
                  (:path "Kernel#p" :return_type "undefined" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "p")
                  :sortText "0004p")
              (:label "pp" :kind 2 :detail "(*objs)" :data
                  (:path "Kernel#pp" :return_type "undefined" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "pp")
                  :sortText "0004pp")
              (:label "pretty_inspect" :kind 2 :detail nil :data
                  (:path "Kernel#pretty_inspect" :return_type "undefined" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "pretty_inspect")
                  :sortText "0004pretty_inspect")
              (:label "print" :kind 2 :detail "(*args)" :data
                  (:path "Kernel#print" :return_type "undefined" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "print")
                  :sortText "0004print")
              (:label "printf" :kind 2 :detail "(*args)" :data
                  (:path "Kernel#printf" :return_type "undefined" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "printf")
                  :sortText "0004printf")
              (:label "proc" :kind 2 :detail nil :data
                  (:path "Kernel#proc" :return_type "undefined" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "proc")
                  :sortText "0004proc")
              (:label "putc" :kind 2 :detail "(ch)" :data
                  (:path "Kernel#putc" :return_type "undefined" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "putc")
                  :sortText "0004putc")
              (:label "puts" :kind 2 :detail "(*args) => nil" :data
                  (:path "Kernel#puts" :return_type "nil" :location nil :deprecated :json-false :uri "file:///home/defaultuser1/hello.rb")
                  :textEdit
                  (:range
                   (:start
                    (:line 5 :character 0)
                    :end
                    (:line 5 :character 1))
                   :newText "puts")
                  :sortText "0004puts")]))
[server-reply] (id:5) Sun Feb 28 10:45:09 2021:
(:jsonrpc "2.0" :id 5 :result
      (:signatures
       []))
[server-reply] (id:6) Sun Feb 28 10:45:09 2021:
(:jsonrpc "2.0" :id 6 :result
      (:contents
       (:kind "markdown" :value "Kernel#p\n\n(*args) =^ nil\n\nFor each object, directly writes _obj_.+inspect+ followed by a  \nnewline to the program’s standard output.\n\n\n```ruby\nS = Struct.new(:name, :state)\ns = S['dave', 'TX']\np s\n\n```\n\n_produces:_\n\n\n```ruby\n#<S name=\"dave\", state=\"TX\">\n```\n\n\n\nVisibility: public")))
[internal] (id:7) Sun Feb 28 10:45:12 2021:
(:deferring :textDocument/signatureHelp :id 7 :params
        (:textDocument
         (:uri "file:///home/defaultuser1/hello.rb")
         :position
         (:line 5 :character 0)))
[internal] (id:8) Sun Feb 28 10:45:12 2021:
(:deferring :textDocument/hover :id 8 :params
        (:textDocument
         (:uri "file:///home/defaultuser1/hello.rb")
         :position
         (:line 5 :character 0)))
[client-notification] Sun Feb 28 10:45:12 2021:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
      (:textDocument
       (:uri "file:///home/defaultuser1/hello.rb" :version 2)
       :contentChanges
       [(:range
         (:start
          (:line 5 :character 0)
          :end
          (:line 5 :character 1))
         :rangeLength 1 :text "")]))
[internal] Sun Feb 28 10:45:12 2021:
(:maybe-run-deferred
 (7 8))
[client-request] (id:7) Sun Feb 28 10:45:12 2021:
(:jsonrpc "2.0" :id 7 :method "textDocument/signatureHelp" :params
      (:textDocument
       (:uri "file:///home/defaultuser1/hello.rb")
       :position
       (:line 5 :character 0)))
[client-request] (id:8) Sun Feb 28 10:45:12 2021:
(:jsonrpc "2.0" :id 8 :method "textDocument/hover" :params
      (:textDocument
       (:uri "file:///home/defaultuser1/hello.rb")
       :position
       (:line 5 :character 0)))
[server-reply] (id:7) Sun Feb 28 10:45:12 2021:
(:jsonrpc "2.0" :id 7 :result
      (:signatures
       []))
[server-reply] (id:8) Sun Feb 28 10:45:12 2021:
(:jsonrpc "2.0" :id 8 :result
      (:contents
       (:kind "markdown" :value "")))
[client-request] (id:9) Sun Feb 28 10:45:13 2021:
(:jsonrpc "2.0" :id 9 :method "textDocument/signatureHelp" :params
      (:textDocument
       (:uri "file:///home/defaultuser1/hello.rb")
       :position
       (:line 3 :character 0)))
[client-request] (id:10) Sun Feb 28 10:45:13 2021:
(:jsonrpc "2.0" :id 10 :method "textDocument/hover" :params
      (:textDocument
       (:uri "file:///home/defaultuser1/hello.rb")
       :position
       (:line 3 :character 0)))
[server-reply] (id:9) Sun Feb 28 10:45:13 2021:
(:jsonrpc "2.0" :id 9 :result
      (:signatures
       []))
[server-reply] (id:10) Sun Feb 28 10:45:13 2021:
(:jsonrpc "2.0" :id 10 :result
      (:contents
       (:kind "markdown" :value "Kernel#puts\n\n(*args) => nil\n\nEquivalent to\n\n    $stdout.puts(obj, ...)\n\n\n\nReturns:\n* [nil] \n\nVisibility: public")))
[internal] (id:7) Sun Feb 28 10:45:22 2021:
(:timed-out :textDocument/signatureHelp :id 7 :params
        (:textDocument
         (:uri "file:///home/defaultuser1/hello.rb")
         :position
         (:line 5 :character 0)))
[internal] (id:8) Sun Feb 28 10:45:22 2021:
(:timed-out :textDocument/hover :id 8 :params
        (:textDocument
         (:uri "file:///home/defaultuser1/hello.rb")
         :position
         (:line 5 :character 0)))

@joaotavora
Copy link
Owner

Your solargraph server is not sending any diagnostics, as far as i can tell. I don't have enough information to explain to you why that is so, you must provide me with a small Emacs configuration, an example file, or something that gives me a hint. For all I know, maybe your file does not contain any syntax errors.

@badlirashid
Copy link
Author

Hi Joao,

Please find the emacs config as attach.
emacs.txt

When i put in the require statement. Typing eg it expanded to egyptian-shape-grouping and not displaying eglot
eglot text expansion
.

@joaotavora
Copy link
Owner

@badlirashid , I'm sorry for taking so long to look at this, but it's quite difficult to discern what you are dealing with here. If you want, please make a new issue and follow the instructions there closely. To be able to help you, I need a "minimal configuration" or "minimal complete recipe":

You can also open a discussion [here|https://github.com/joaotavora/eglot/discussions]

Here's what I'm looking for in a reproduction recipe, both in text form and video form, so it's as clear as possible. It's for Go and Emacs 26.3, so you could adapt it for your specific case. You don't have to follow this exact format, this is just to illustrate how the recipe rules out many intrusions from external factors. It tries to be a scientific reproducible experiment and rule-out interference from non-Eglot parts of your configuration.

Minimal example configuration (in text form)

❯ emacs --version
GNU Emacs 26.3
Copyright (C) 2019 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
❯ go version
go version go1.15.6 linux/amd64
❯ ls ~/.emacs.d/elpa
acme-theme-20200724.1833/          debbugs-0.25.signed           jsonrpc-1.0.14.signed              waher-theme-20141115.1230/
afternoon-theme-20140104.1859/     diminish-20191127.1326/       json-snatcher-20200916.1717/       warm-night-theme-20161101.1428/
almost-mono-themes-20210306.1040/  eglot-1.6/                    lua-mode-20200508.1316/            web-mode-20210131.1758/
archives/                          eglot-1.6.signed              markdown-mode-20191230.1055/       weyland-yutani-theme-20210227.1749/
auctex-12.2.0/                     eldoc-1.11.0/                 modus-vivendi-theme-0.12.0/        xclip-1.10/
auctex-12.2.0.signed               eldoc-1.11.0.signed           modus-vivendi-theme-0.12.0.signed  xclip-1.10.signed
auctex-latexmk-20170618.1636/      evil-20210109.807/            monokai-theme-20201229.1001/       xclip-1.9/
autothemer-20180920.923/           flymake-1.0.9/                overcast-theme-20200425.1601/      xclip-1.9.signed
bbdb-20200102.403/                 flymake-1.0.9.signed          peg-1.0/                           xref-1.0.4/
clojure-mode-20210322.704/         gnupg/                        peg-1.0.signed                     xref-1.0.4.signed
company-0.9.10/                    go-mode-20201204.1652/        project-0.5.3/                     yaml-mode-20201109.1026/
company-0.9.10.signed              goto-chg-20201101.1029/       project-0.5.3.signed               yasnippet-0.14.0/
company-0.9.12/                    gruvbox-theme-20210105.1136/  purple-haze-theme-20141015.229/    yasnippet-0.14.0.signed
company-0.9.12.signed              imenu-list-20190115.2130/     rust-mode-20200414.2105/           yoshi-theme-20210216.29/
company-0.9.13/                    js-comint-20200117.615/       srcery-theme-20210201.1444/        zenburn-theme-20201121.1050/
company-0.9.13.signed              json-mode-20190123.422/       subatomic-theme-20190607.1022/     zweilight-theme-20170113.605/
darkokai-theme-20200614.1452/      json-reformat-20160212.853/   tron-legacy-theme-20200601.533/
debbugs-0.25/                      jsonrpc-1.0.14/               typescript-mode-20201002.1109/
❯ emacs -Q -f package-initialize ~/tmp/hello-world.go -f eglot
# Once inside Emacs, witness that Eglot seems to start correctly

The same example minimal configuration (in video form)

Peek 2021-04-24 11-21

@badlirashid
Copy link
Author

hi,

Thank you for the reply,i will try with the elpa packages first as i am using the git source.

@joaotavora
Copy link
Owner

as i am using the git source.

It's fine to use the Git source. Even better. In that case the recipe becomes

emacs -Q -f package-initialize -L path/to/eglot/git/source -l eglot ~/tmp/hello-world.go -f eglot

@badlirashid
Copy link
Author

hi,
I have to issue the eglot command on emacs and it is the same issue. Attach is the outputs requested.

emacs-out.txt
eglot-manual-start
emacs-eglot

Thank you.

@joaotavora
Copy link
Owner

OK, more or less I think this is something already. Now, running that same very simple recipe, please switch to the Eglot events buffer using M-x eglot-events-buffer and paste the contents of that buffer here.

My suspicion is that the solargraph server you are using is not returning any diagnostics, so flymake doesn't have anything to underline.

@badlirashid
Copy link
Author

Hi Joao,

Please find the attach. The solargraph is at 0.40.4, i hope it helps.

eglot-events.txt

Regards,
Badli

@joaotavora
Copy link
Owner

This event log is much much shorter than the one you posted before. What happened?

(also, you can post text content directly in the GitHub chat dialog like this 👇 ):

Here is an example, just use three backticks (```) before and after the block of code.

@badlirashid
Copy link
Author

You mean for the event on the Feb 28 ? It could be i am using the src version of libjasson (https://digip.org/jansson/), with the commit 2de2c3d5fc702396a2a5ae8f70ab98a0011d486e other than that i am not sure.

Now i am just using the normal ubuntu distribution.

@badlirashid
Copy link
Author

badlirashid commented Apr 25, 2021

@joaotavora please find the below, it is using the compile version (longer version)

[stderr] Solargraph is listening PORT=32851 PID=35961
[client-request] (id:1) Sun Apr 25 08:44:59 2021:
(:jsonrpc "2.0" :id 1 :method "initialize" :params
	  (:processId nil :rootPath "/home/b/" :rootUri "file:///home/b" :initializationOptions #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8125 data
													      ())
		      :capabilities
		      (:workspace
		       (:applyEdit t :executeCommand
				   (:dynamicRegistration :json-false)
				   :workspaceEdit
				   (:documentChanges :json-false)
				   :didChangeWatchedFiles
				   (:dynamicRegistration t)
				   :symbol
				   (:dynamicRegistration :json-false)
				   :configuration t)
		       :textDocument
		       (:synchronization
			(:dynamicRegistration :json-false :willSave t :willSaveWaitUntil t :didSave t)
			:completion
			(:dynamicRegistration :json-false :completionItem
					      (:snippetSupport :json-false)
					      :contextSupport t)
			:hover
			(:dynamicRegistration :json-false :contentFormat
					      ["plaintext"])
			:signatureHelp
			(:dynamicRegistration :json-false :signatureInformation
					      (:parameterInformation
					       (:labelOffsetSupport t)
					       :activeParameterSupport t))
			:references
			(:dynamicRegistration :json-false)
			:definition
			(:dynamicRegistration :json-false)
			:declaration
			(:dynamicRegistration :json-false)
			:implementation
			(:dynamicRegistration :json-false)
			:typeDefinition
			(:dynamicRegistration :json-false)
			:documentSymbol
			(:dynamicRegistration :json-false :hierarchicalDocumentSymbolSupport t :symbolKind
					      (:valueSet
					       [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26]))
			:documentHighlight
			(:dynamicRegistration :json-false)
			:codeAction
			(:dynamicRegistration :json-false :codeActionLiteralSupport
					      (:codeActionKind
					       (:valueSet
						["quickfix" "refactor" "refactor.extract" "refactor.inline" "refactor.rewrite" "source" "source.organizeImports"]))
					      :isPreferredSupport t)
			:formatting
			(:dynamicRegistration :json-false)
			:rangeFormatting
			(:dynamicRegistration :json-false)
			:rename
			(:dynamicRegistration :json-false)
			:publishDiagnostics
			(:relatedInformation :json-false))
		       :experimental #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8125 data
						   ()))))
[stderr] [ANY] Solargraph initialized (5.290666036999937 seconds)
[server-reply] (id:1) Sun Apr 25 08:45:08 2021:
(:jsonrpc "2.0" :id 1 :result
	  (:capabilities
	   (:textDocumentSync 2 :workspace
			      (:workspaceFolders
			       (:supported t :changeNotifications t))
			      :completionProvider
			      (:resolveProvider t :triggerCharacters
						["." ":" "@"])
			      :signatureHelpProvider
			      (:triggerCharacters
			       ["(" ","])
			      :hoverProvider t :documentFormattingProvider t :documentSymbolProvider t :definitionProvider t :renameProvider
			      (:prepareProvider t)
			      :referencesProvider t :workspaceSymbolProvider t :foldingRangeProvider t)))
[client-notification] Sun Apr 25 08:45:08 2021:
(:jsonrpc "2.0" :method "initialized" :params #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8125 data
							    ()))
[client-notification] Sun Apr 25 08:45:08 2021:
(:jsonrpc "2.0" :method "textDocument/didOpen" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb" :version 0 :languageId "ruby" :text "puts 'hello'\npits 'hello;\n$HELLO = \"hello 123\"\nputs $HELLO")))
[client-notification] Sun Apr 25 08:45:08 2021:
(:jsonrpc "2.0" :method "workspace/didChangeConfiguration" :params
	  (:settings nil))
[client-notification] Sun Apr 25 08:45:21 2021:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb" :version 1)
	   :contentChanges
	   [(:range
	     (:start
	      (:line 0 :character 12)
	      :end
	      (:line 0 :character 12))
	     :rangeLength 0 :text "\n")]))
[client-request] (id:2) Sun Apr 25 08:45:21 2021:
(:jsonrpc "2.0" :id 2 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb")
	   :position
	   (:line 1 :character 0)))
[client-request] (id:3) Sun Apr 25 08:45:21 2021:
(:jsonrpc "2.0" :id 3 :method "textDocument/hover" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb")
	   :position
	   (:line 1 :character 0)))
[server-reply] (id:2) Sun Apr 25 08:45:21 2021:
(:jsonrpc "2.0" :id 2 :result
	  (:signatures
	   []))
[server-reply] (id:3) Sun Apr 25 08:45:21 2021:
(:jsonrpc "2.0" :id 3 :result
	  (:contents
	   (:kind "markdown" :value "")))
[client-notification] Sun Apr 25 08:45:23 2021:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb" :version 6)
	   :contentChanges
	   [(:range
	     (:start
	      (:line 1 :character 0)
	      :end
	      (:line 1 :character 0))
	     :rangeLength 0 :text "p")
	    (:range
	     (:start
	      (:line 1 :character 1)
	      :end
	      (:line 1 :character 1))
	     :rangeLength 0 :text "u")
	    (:range
	     (:start
	      (:line 1 :character 2)
	      :end
	      (:line 1 :character 2))
	     :rangeLength 0 :text "t")
	    (:range
	     (:start
	      (:line 1 :character 3)
	      :end
	      (:line 1 :character 3))
	     :rangeLength 0 :text "s")
	    (:range
	     (:start
	      (:line 1 :character 4)
	      :end
	      (:line 1 :character 4))
	     :rangeLength 0 :text " ")]))
[client-request] (id:4) Sun Apr 25 08:45:23 2021:
(:jsonrpc "2.0" :id 4 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb")
	   :position
	   (:line 1 :character 5)))
[client-request] (id:5) Sun Apr 25 08:45:23 2021:
(:jsonrpc "2.0" :id 5 :method "textDocument/hover" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb")
	   :position
	   (:line 1 :character 5)))
[server-reply] (id:4) Sun Apr 25 08:45:23 2021:
(:jsonrpc "2.0" :id 4 :result
	  (:signatures
	   []))
[server-reply] (id:5) Sun Apr 25 08:45:23 2021:
(:jsonrpc "2.0" :id 5 :result
	  (:contents
	   (:kind "markdown" :value "")))
[internal] (id:6) Sun Apr 25 08:45:25 2021:
(:deferring :textDocument/signatureHelp :id 6 :params
	    (:textDocument
	     (:uri "file:///home/b/hello.rb")
	     :position
	     (:line 1 :character 6)))
[internal] (id:7) Sun Apr 25 08:45:25 2021:
(:deferring :textDocument/hover :id 7 :params
	    (:textDocument
	     (:uri "file:///home/b/hello.rb")
	     :position
	     (:line 1 :character 6)))
[client-notification] Sun Apr 25 08:45:25 2021:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb" :version 7)
	   :contentChanges
	   [(:range
	     (:start
	      (:line 1 :character 5)
	      :end
	      (:line 1 :character 5))
	     :rangeLength 0 :text "'")]))
[internal] Sun Apr 25 08:45:25 2021:
(:maybe-run-deferred
 (6 7))
[client-request] (id:6) Sun Apr 25 08:45:25 2021:
(:jsonrpc "2.0" :id 6 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb")
	   :position
	   (:line 1 :character 6)))
[client-request] (id:7) Sun Apr 25 08:45:25 2021:
(:jsonrpc "2.0" :id 7 :method "textDocument/hover" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb")
	   :position
	   (:line 1 :character 6)))
[server-reply] (id:6) Sun Apr 25 08:45:25 2021:
(:jsonrpc "2.0" :id 6 :result
	  (:signatures
	   []))
[server-reply] (id:7) Sun Apr 25 08:45:25 2021:
(:jsonrpc "2.0" :id 7 :result
	  (:contents
	   (:kind "markdown" :value "")))
[internal] (id:8) Sun Apr 25 08:45:26 2021:
(:deferring :textDocument/signatureHelp :id 8 :params
	    (:textDocument
	     (:uri "file:///home/b/hello.rb")
	     :position
	     (:line 1 :character 5)))
[internal] (id:9) Sun Apr 25 08:45:26 2021:
(:deferring :textDocument/hover :id 9 :params
	    (:textDocument
	     (:uri "file:///home/b/hello.rb")
	     :position
	     (:line 1 :character 5)))
[client-notification] Sun Apr 25 08:45:26 2021:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb" :version 8)
	   :contentChanges
	   [(:range
	     (:start
	      (:line 1 :character 5)
	      :end
	      (:line 1 :character 6))
	     :rangeLength 1 :text "")]))
[internal] Sun Apr 25 08:45:26 2021:
(:maybe-run-deferred
 (9 8))
[client-request] (id:9) Sun Apr 25 08:45:26 2021:
(:jsonrpc "2.0" :id 9 :method "textDocument/hover" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb")
	   :position
	   (:line 1 :character 5)))
[client-request] (id:8) Sun Apr 25 08:45:26 2021:
(:jsonrpc "2.0" :id 8 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb")
	   :position
	   (:line 1 :character 5)))
[server-reply] (id:9) Sun Apr 25 08:45:26 2021:
(:jsonrpc "2.0" :id 9 :result
	  (:contents
	   (:kind "markdown" :value "")))
[server-reply] (id:8) Sun Apr 25 08:45:26 2021:
(:jsonrpc "2.0" :id 8 :result
	  (:signatures
	   []))
[internal] (id:10) Sun Apr 25 08:45:27 2021:
(:deferring :textDocument/signatureHelp :id 10 :params
	    (:textDocument
	     (:uri "file:///home/b/hello.rb")
	     :position
	     (:line 1 :character 6)))
[internal] (id:11) Sun Apr 25 08:45:27 2021:
(:deferring :textDocument/hover :id 11 :params
	    (:textDocument
	     (:uri "file:///home/b/hello.rb")
	     :position
	     (:line 1 :character 6)))
[client-notification] Sun Apr 25 08:45:27 2021:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb" :version 9)
	   :contentChanges
	   [(:range
	     (:start
	      (:line 1 :character 5)
	      :end
	      (:line 1 :character 5))
	     :rangeLength 0 :text "\"")]))
[internal] Sun Apr 25 08:45:27 2021:
(:maybe-run-deferred
 (11 10))
[client-request] (id:11) Sun Apr 25 08:45:27 2021:
(:jsonrpc "2.0" :id 11 :method "textDocument/hover" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb")
	   :position
	   (:line 1 :character 6)))
[client-request] (id:10) Sun Apr 25 08:45:27 2021:
(:jsonrpc "2.0" :id 10 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb")
	   :position
	   (:line 1 :character 6)))
[server-reply] (id:11) Sun Apr 25 08:45:27 2021:
(:jsonrpc "2.0" :id 11 :result
	  (:contents
	   (:kind "markdown" :value "")))
[server-reply] (id:10) Sun Apr 25 08:45:27 2021:
(:jsonrpc "2.0" :id 10 :result
	  (:signatures
	   []))
[client-notification] Sun Apr 25 08:45:28 2021:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb" :version 11)
	   :contentChanges
	   [(:range
	     (:start
	      (:line 1 :character 6)
	      :end
	      (:line 1 :character 6))
	     :rangeLength 0 :text "h")
	    (:range
	     (:start
	      (:line 1 :character 7)
	      :end
	      (:line 1 :character 7))
	     :rangeLength 0 :text "e")]))
[client-request] (id:12) Sun Apr 25 08:45:28 2021:
(:jsonrpc "2.0" :id 12 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb")
	   :position
	   (:line 1 :character 8)))
[client-request] (id:13) Sun Apr 25 08:45:28 2021:
(:jsonrpc "2.0" :id 13 :method "textDocument/hover" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb")
	   :position
	   (:line 1 :character 8)))
[server-reply] (id:12) Sun Apr 25 08:45:28 2021:
(:jsonrpc "2.0" :id 12 :result
	  (:signatures
	   []))
[server-reply] (id:13) Sun Apr 25 08:45:28 2021:
(:jsonrpc "2.0" :id 13 :result
	  (:contents
	   (:kind "markdown" :value "")))
[client-notification] Sun Apr 25 08:45:28 2021:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb" :version 14)
	   :contentChanges
	   [(:range
	     (:start
	      (:line 1 :character 8)
	      :end
	      (:line 1 :character 8))
	     :rangeLength 0 :text "l")
	    (:range
	     (:start
	      (:line 1 :character 9)
	      :end
	      (:line 1 :character 9))
	     :rangeLength 0 :text "l")
	    (:range
	     (:start
	      (:line 1 :character 10)
	      :end
	      (:line 1 :character 10))
	     :rangeLength 0 :text "o")]))
[client-request] (id:14) Sun Apr 25 08:45:28 2021:
(:jsonrpc "2.0" :id 14 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb")
	   :position
	   (:line 1 :character 11)))
[client-request] (id:15) Sun Apr 25 08:45:28 2021:
(:jsonrpc "2.0" :id 15 :method "textDocument/hover" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb")
	   :position
	   (:line 1 :character 11)))
[server-reply] (id:14) Sun Apr 25 08:45:28 2021:
(:jsonrpc "2.0" :id 14 :result
	  (:signatures
	   []))
[server-reply] (id:15) Sun Apr 25 08:45:28 2021:
(:jsonrpc "2.0" :id 15 :result
	  (:contents
	   (:kind "markdown" :value "")))
[internal] (id:16) Sun Apr 25 08:45:30 2021:
(:deferring :textDocument/signatureHelp :id 16 :params
	    (:textDocument
	     (:uri "file:///home/b/hello.rb")
	     :position
	     (:line 1 :character 12)))
[internal] (id:17) Sun Apr 25 08:45:30 2021:
(:deferring :textDocument/hover :id 17 :params
	    (:textDocument
	     (:uri "file:///home/b/hello.rb")
	     :position
	     (:line 1 :character 12)))
[client-notification] Sun Apr 25 08:45:30 2021:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb" :version 15)
	   :contentChanges
	   [(:range
	     (:start
	      (:line 1 :character 11)
	      :end
	      (:line 1 :character 11))
	     :rangeLength 0 :text "\"")]))
[internal] Sun Apr 25 08:45:30 2021:
(:maybe-run-deferred
 (17 16))
[client-request] (id:17) Sun Apr 25 08:45:30 2021:
(:jsonrpc "2.0" :id 17 :method "textDocument/hover" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb")
	   :position
	   (:line 1 :character 12)))
[client-request] (id:16) Sun Apr 25 08:45:30 2021:
(:jsonrpc "2.0" :id 16 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb")
	   :position
	   (:line 1 :character 12)))
[server-reply] (id:17) Sun Apr 25 08:45:30 2021:
(:jsonrpc "2.0" :id 17 :result
	  (:contents
	   (:kind "markdown" :value "")))
[server-reply] (id:16) Sun Apr 25 08:45:30 2021:
(:jsonrpc "2.0" :id 16 :result
	  (:signatures
	   []))
[client-request] (id:18) Sun Apr 25 08:45:32 2021:
(:jsonrpc "2.0" :id 18 :method "textDocument/signatureHelp" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb")
	   :position
	   (:line 4 :character 11)))
[client-request] (id:19) Sun Apr 25 08:45:32 2021:
(:jsonrpc "2.0" :id 19 :method "textDocument/hover" :params
	  (:textDocument
	   (:uri "file:///home/b/hello.rb")
	   :position
	   (:line 4 :character 11)))
[server-reply] (id:18) Sun Apr 25 08:45:32 2021:
(:jsonrpc "2.0" :id 18 :result
	  (:signatures
	   []))
[server-reply] (id:19) Sun Apr 25 08:45:32 2021:
(:jsonrpc "2.0" :id 19 :result
	  (:contents
	   (:kind "markdown" :value "")))
[internal] (id:6) Sun Apr 25 08:45:35 2021:
(:timed-out :textDocument/signatureHelp :id 6 :params
	    (:textDocument
	     (:uri "file:///home/b/hello.rb")
	     :position
	     (:line 1 :character 6)))
[internal] (id:7) Sun Apr 25 08:45:35 2021:
(:timed-out :textDocument/hover :id 7 :params
	    (:textDocument
	     (:uri "file:///home/b/hello.rb")
	     :position
	     (:line 1 :character 6)))
[internal] (id:8) Sun Apr 25 08:45:36 2021:
(:timed-out :textDocument/signatureHelp :id 8 :params
	    (:textDocument
	     (:uri "file:///home/b/hello.rb")
	     :position
	     (:line 1 :character 5)))
[internal] (id:9) Sun Apr 25 08:45:36 2021:
(:timed-out :textDocument/hover :id 9 :params
	    (:textDocument
	     (:uri "file:///home/b/hello.rb")
	     :position
	     (:line 1 :character 5)))
[internal] (id:10) Sun Apr 25 08:45:37 2021:
(:timed-out :textDocument/signatureHelp :id 10 :params
	    (:textDocument
	     (:uri "file:///home/b/hello.rb")
	     :position
	     (:line 1 :character 6)))
[internal] (id:11) Sun Apr 25 08:45:37 2021:
(:timed-out :textDocument/hover :id 11 :params
	    (:textDocument
	     (:uri "file:///home/b/hello.rb")
	     :position
	     (:line 1 :character 6)))
[internal] (id:16) Sun Apr 25 08:45:40 2021:
(:timed-out :textDocument/signatureHelp :id 16 :params
	    (:textDocument
	     (:uri "file:///home/b/hello.rb")
	     :position
	     (:line 1 :character 12)))
[internal] (id:17) Sun Apr 25 08:45:40 2021:
(:timed-out :textDocument/hover :id 17 :params
	    (:textDocument
	     (:uri "file:///home/b/hello.rb")
	     :position
	     (:line 1 :character 12)))

@joaotavora
Copy link
Owner

I've reproduced your problem, but I don't think Eglot is at fault here. The ssolargraph erver transmits some signature help, but refuses to send any diagnotics for some reason. I've even tried running solargraph config in the root directory of the ruby project, and it doesn't help much. So this is a server problem.

@badlirashid
Copy link
Author

its okey joao, thank you. eglot is great by the way.

@badlirashid
Copy link
Author

hi @joaotavora , it is working with commit b06589b and 1ac06d0. Thank you.

@joaotavora
Copy link
Owner

joaotavora commented May 16, 2021 via email

@gcentauri
Copy link

I suspect I may be running into this same problem. I swore it was working at first, but I am now thinking that flycheck was on by mistake and running the rubocop linter.

Trying it the past few days with eglot i feel like the server isn't responding with diagnostics. I'm not familiar at all with LSP itself, but it looks to me like this response doesn't include anything about diagnostics.

[server-reply] (id:1) Sun Apr 10 09:43:20 2022:
(:jsonrpc "2.0" :id 1 :result
	  (:capabilities
	   (:textDocumentSync 2 :workspace
			      (:workspaceFolders
			       (:supported t :changeNotifications t))
			      :completionProvider
			      (:resolveProvider t :triggerCharacters
						["." ":" "@"])
			      :signatureHelpProvider
			      (:triggerCharacters
			       ["(" ","])
			      :hoverProvider t :documentSymbolProvider t :definitionProvider t :renameProvider
			      (:prepareProvider t)
			      :referencesProvider t :workspaceSymbolProvider t :foldingRangeProvider t :documentHighlightProvider t)))

And I definitely don't see any messages later on as I'm mucking about in a project.

I ask here just to try and confirm the findings, it looks like solargraph is primarily VS Code focused, i'm not sure why this issue wouldn't pop up there as well, but from what I recall, the LSP implementations don't always follow the spec?

If you have any clues or suggestions on how to debug I'm all ears.

Thanks!

@gcentauri
Copy link

I think I may have tracked down the issue. Solargraph has diagnostics disabled by default. In VSCode, you have to go in and change the config to enable it (watched a coworker do it). I found an issue on the repo that sheds some more concrete light on it: castwide/solargraph#238 (comment)

It looks like just sending the proper initialization options would do it. I can see that there is a way to specialize an eglot server to have different options, but I haven't yet tried doing it.

Does this sound reasonable? Or would there be a way to send a request once the server is started?

I'm in a weird situation where i'm manually starting the solargraph server in a container, and then manually connecting with eglot, so i might end up just needing a custom function to get it all working.

@TLATER
Copy link

TLATER commented Apr 14, 2022

It looks like just sending the proper initialization options would do it. I can see that there is a way to specialize an eglot server to have different options, but I haven't yet tried doing it.

Does this sound reasonable? Or would there be a way to send a request once the server is started?

Both are possible, but you probably want the latter. Eglot is mostly designed to use workspace/didChangeConfiguration rather than initializationOptions, and uses this more effectively (easier to override on a per-project basis). Take a look at this discussion: #845

To set this, use something like this (caveat emptor, I did not test this):

(setq eglot-workspace-configuration
  '((solargraph (diagnostics . t))))

Or look at the per-project configuration if you don't care for enabling diagnostics everywhere.

@joaotavora
Copy link
Owner

Eglot is mostly designed to use

Yes, but mostly incidentally rather than intentionally.

@joaotavora
Copy link
Owner

Does this sound reasonable? Or would there be a way to send a request once the server is started?

Yes, it sounds reasonable, but the initializationOptions support I recently added has a bug that needs fixing. #845 (reply in thread)

I've already understood the problem, but if someone would make an issue out of that would speed up its fix, which isn't terribly hard.

@gcentauri
Copy link

Or look at the per-project configuration if you don't care for enabling diagnostics everywhere.

🤦🏽 yup. exactly what i was looking for. this should handle both of my issues. i'll check out the other thread with the bug. thanks for the replies!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants