{"action":"created","issue":{"url":"https://api.github.com/repos/joaotavora/eglot/issues/167","repository_url":"https://api.github.com/repos/joaotavora/eglot","labels_url":"https://api.github.com/repos/joaotavora/eglot/issues/167/labels{/name}","comments_url":"https://api.github.com/repos/joaotavora/eglot/issues/167/comments","events_url":"https://api.github.com/repos/joaotavora/eglot/issues/167/events","html_url":"https://github.com/joaotavora/eglot/issues/167","id":383654387,"node_id":"MDU6SXNzdWUzODM2NTQzODc=","number":167,"title":"clangd strange behaviour","user":{"login":"nickenchev","id":8262271,"node_id":"MDQ6VXNlcjgyNjIyNzE=","avatar_url":"https://avatars1.githubusercontent.com/u/8262271?v=4","gravatar_id":"","url":"https://api.github.com/users/nickenchev","html_url":"https://github.com/nickenchev","followers_url":"https://api.github.com/users/nickenchev/followers","following_url":"https://api.github.com/users/nickenchev/following{/other_user}","gists_url":"https://api.github.com/users/nickenchev/gists{/gist_id}","starred_url":"https://api.github.com/users/nickenchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickenchev/subscriptions","organizations_url":"https://api.github.com/users/nickenchev/orgs","repos_url":"https://api.github.com/users/nickenchev/repos","events_url":"https://api.github.com/users/nickenchev/events{/privacy}","received_events_url":"https://api.github.com/users/nickenchev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2018-11-22T20:58:38Z","updated_at":"2018-11-22T22:49:05Z","closed_at":null,"author_association":"NONE","body":"Emacs: 26.1\r\nEglot: eglot-20181121.1924\r\n\r\nDecided to try out clangd which was fairly easy to setup:\r\n```\r\n;; eglot\r\n(require 'eglot)\r\n(add-to-list 'eglot-server-programs '((c++-mode c-mode) \"clangd\"))\r\n(add-hook 'c-mode-hook 'eglot-ensure)\r\n(add-hook 'c++-mode-hook 'eglot-ensure)\r\n```\r\n\r\nI'm seeing weird behaviour when completing statements, here is an example:\r\nI start typing my statement and get presented with my completions.\r\n<img width=\"562\" alt=\"screen shot 2018-11-22 at 3 52 28 pm\" src=\"https://user-images.githubusercontent.com/8262271/48921658-3ef7ae00-ee6f-11e8-800d-c236d4e3e31b.png\">\r\n\r\nThen when I select the appropriate completion, I get left with the following:\r\n<img width=\"193\" alt=\"screen shot 2018-11-22 at 3 57 12 pm\" src=\"https://user-images.githubusercontent.com/8262271/48921664-53d44180-ee6f-11e8-9a1c-a1954976fa64.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/joaotavora/eglot/issues/comments/441130475","html_url":"https://github.com/joaotavora/eglot/issues/167#issuecomment-441130475","issue_url":"https://api.github.com/repos/joaotavora/eglot/issues/167","id":441130475,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTEzMDQ3NQ==","user":{"login":"joaotavora","id":387011,"node_id":"MDQ6VXNlcjM4NzAxMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/387011?v=4","gravatar_id":"","url":"https://api.github.com/users/joaotavora","html_url":"https://github.com/joaotavora","followers_url":"https://api.github.com/users/joaotavora/followers","following_url":"https://api.github.com/users/joaotavora/following{/other_user}","gists_url":"https://api.github.com/users/joaotavora/gists{/gist_id}","starred_url":"https://api.github.com/users/joaotavora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaotavora/subscriptions","organizations_url":"https://api.github.com/users/joaotavora/orgs","repos_url":"https://api.github.com/users/joaotavora/repos","events_url":"https://api.github.com/users/joaotavora/events{/privacy}","received_events_url":"https://api.github.com/users/joaotavora/received_events","type":"User","site_admin":false},"created_at":"2018-11-22T22:49:05Z","updated_at":"2018-11-22T22:49:05Z","author_association":"OWNER","body":"@MaskRay thanks, that's most likely it.  that `clangd` reports InsertTextFormat=2 but still uses `insertText`.  I've tested and I get the behaviour described."}}
{"actor":{"display_login":"joaotavora"}}