From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Re: Xref/tags/lsp possible bug Date: Mon, 25 Apr 2022 23:29:02 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22583"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 To: Stefan Monnier , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 25 22:29:34 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nj5Kw-0005lm-0X for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 25 Apr 2022 22:29:34 +0200 Original-Received: from localhost ([::1]:38800 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nj5Kv-0000c6-12 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 25 Apr 2022 16:29:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40868) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nj5KV-0000bi-R9 for help-gnu-emacs@gnu.org; Mon, 25 Apr 2022 16:29:07 -0400 Original-Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:54202) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nj5KU-0004tq-51 for help-gnu-emacs@gnu.org; Mon, 25 Apr 2022 16:29:07 -0400 Original-Received: by mail-wm1-x334.google.com with SMTP id p189so9963646wmp.3 for ; Mon, 25 Apr 2022 13:29:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=Ik7CeNMAggkgV/0ODzPw+vIgxHp7Ul8FSgQfwRGw/eI=; b=i6kttX4AmEz65tJ1oqbXDjSa4xkwkHV1/1ANj1O+bdcfx6ynJ2xdRTPsOQv6cquFHu UatvBO6ag005YdjvUr4uuw00wEvTRKWNb9XnPw2fmI0xAqRYLqYfUKhLX7ZiYurqe2EC nJcixpt6f3g3cqM+GJYh3HCrTnJMgvb8RMmnfln/5IXuU9lu3TlX77DwQ7SO8EAxtGd+ xQWTQolWvbUBopFJtBi8N2rHNdx/bi/px8V4rXbm6CG+oC6risFHymNTbbNXYSjZ8lyX Qq37tu0WgVY36AzIRiGD3KAxoT4ubS6+QFi9lpgAmyjlwpG0+eqK2QXaTkRkXACB7MnN VWFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=Ik7CeNMAggkgV/0ODzPw+vIgxHp7Ul8FSgQfwRGw/eI=; b=wrAHIzh6sUnyv0MRryHTnr2aPDEA/M2kVgtYwfPREXOjT2qY7tGP+Bqj1yNTWmo7sN hD3OhbPGeaUMhEdAYE86pWrnEamSMT8eQJqK4MxfglKbDPsp8e0SsB9iGPiLVNQuXGVT tezxBha/yMZfj1bMHSxE3tVbqdqWxWTC1Wh+bL1RrCujSxYT7UnlDF1kzhZsDz6FWDxX Rta1YQeqjZASXeYXFAwfsaoisKBD6uBDZ/UkUfsRpnaMdfYFXVl1JBOXvXFf6j+CBMda 0z/SCej/l6QxnhCcNRimiESWhEVv8/q0KUPtBHsb7bCkZk3tSLdlVsicPPsXwEUrW/bv mLJQ== X-Gm-Message-State: AOAM530nq17QvKemOvEjT/lJNl8BE82g67CsjDTBhvnlPjWIAJZJUAbE x+GdymiDYN1M9xyhuCWJ/swwC8xhXjY= X-Google-Smtp-Source: ABdhPJxuXReIDUSLud8NyOXn0zH0PaqsY4vrMfEoNJxxR17EbehlKlFtbm6ULRIQnPxw0n8h8lnD/A== X-Received: by 2002:a05:600c:1d0f:b0:393:f0f1:ab7f with SMTP id l15-20020a05600c1d0f00b00393f0f1ab7fmr1908982wms.89.1650918544536; Mon, 25 Apr 2022 13:29:04 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id o38-20020a05600c512600b00393ead99c5bsm4341583wms.26.2022.04.25.13.29.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Apr 2022 13:29:04 -0700 (PDT) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=raaahh@gmail.com; helo=mail-wm1-x334.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:137022 Archived-At: On 25.04.2022 23:05, Stefan Monnier via Users list for the GNU Emacs text editor wrote: > You can still try to cobble up some kind of "list of top-levelish > definitions" but it's inevitably a hack. Yes, in most languages there will be at least some symbols that have no meaningful "global" names. LSP could provide a table of all global symbols, though. And it kind of does, but not exactly. Not in a way that's useful to build an Emacs completion table from. But it will hopefully improve the spec further. As for the reason why: my guess is that the protocol was designed as a common ground for a number of existing code assistance libraries/tools already developed within Microsoft, rather than something from a blank slate, and those are inevitably biased toward a particular UI.