From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 3E6853858D1E for ; Tue, 14 Feb 2023 07:42:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3E6853858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676360537; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Jplmv7o3IayRik7dHgkeU5MsZj7YBBJGKLhuwEiLw9A=; b=f2sM5zDkCJxDDKiq9RybDLukc5xQrjzv1bxy8uiGMvUQoNvy3fDXkAtWywn40z0jgzLXbR tZcpga4RyQ8LDwY7HEvraQeJnxMr/flEGHuiaK/l6o2uEjK59hpQSg/L4c2i8OEQXV8r7w XWT1Rl9ieOISaUtHv2dTM1FVHaw/6F8= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-154-3zaiFo8LOC-ehUyolg_pLA-1; Tue, 14 Feb 2023 02:42:16 -0500 X-MC-Unique: 3zaiFo8LOC-ehUyolg_pLA-1 Received: by mail-ed1-f72.google.com with SMTP id eq22-20020a056402299600b004ab4da4a530so6526678edb.8 for ; Mon, 13 Feb 2023 23:42:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Jplmv7o3IayRik7dHgkeU5MsZj7YBBJGKLhuwEiLw9A=; b=N9H3yfSuXJCzkzdKgR6xJ8bRrhMzeXwA/8rkjdHx496V1PGykAiqgcDFzdOMv3SjOf ijKN/apKh7PBlEPqdiich15dDdoAXWKYOVTBnY/k5P4nDDhXE4SBb5q96YXRKSUV5Nqx MpRzFSDQ15FCuurAL5IHM/7AG2q1It5fFCQYdp7MfNHRDHl/bwxj8kFukU6nH3NwMO+S atiqYBO4hfku2djn52F3RaQhr9R05Ei0LiSXlvBsE03fEX48ZQkVPsx11Z8RsQEP7L92 ERnMg4/3QrHIwPDpxnwOcK+p7cRlGjC5KZfbTa/4wyQY+qeOLd/wL1mqX7bcwzt5Z6YG mwEw== X-Gm-Message-State: AO0yUKUaK63cDxxaL3NAPOI7+eYSbF4d2CJvIHXWTpuR7s8GVdiOvu6u 3cbijJ8vLGSHawfj0gFnD3EODtiqrPFdkyR+91ZLJcxKixAoWp3s4YjTeBgQ+liGzqJkj1i2OGD 121H/kxpHke4yLQL9oiw= X-Received: by 2002:a17:906:10a:b0:8b1:20f2:3f79 with SMTP id 10-20020a170906010a00b008b120f23f79mr1800770eje.33.1676360535165; Mon, 13 Feb 2023 23:42:15 -0800 (PST) X-Google-Smtp-Source: AK7set9TsgVu90pqsDmhrpjlvwBRMUJlfrxhIMgWl4Efj6oHA2H4s//qwO5ali8yNFCGyw5Ywp8Kwg== X-Received: by 2002:a17:906:10a:b0:8b1:20f2:3f79 with SMTP id 10-20020a170906010a00b008b120f23f79mr1800762eje.33.1676360534956; Mon, 13 Feb 2023 23:42:14 -0800 (PST) Received: from lida.tpb.lab.eng.brq.redhat.com (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id lu19-20020a170906fad300b007a9c3831409sm7793187ejb.137.2023.02.13.23.42.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Feb 2023 23:42:14 -0800 (PST) Date: Tue, 14 Feb 2023 08:42:13 +0100 From: Martin Cermak To: Ryan Goldberg Cc: systemtap@sourceware.org Subject: Re: Introducing the Systemtap Language-server Message-ID: <20230214074213.bjzsl7unhul356gf@lida.tpb.lab.eng.brq.redhat.com> References: <20230206094752.h4ltkc7hnfyhta57@lida.tpb.lab.eng.brq.redhat.com> MIME-Version: 1.0 In-Reply-To: <20230206094752.h4ltkc7hnfyhta57@lida.tpb.lab.eng.brq.redhat.com> User-Agent: NeoMutt/20180716 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Mon 2023-02-06 10:47 , Martin Cermak wrote: > On Fri 2023-02-03 15:06 , Ryan Goldberg via Systemtap wrote: > > Hi all, > > > > A new language-server [0] mode has recently been added to systemtap. The > > language-server, which runs as a child of an lsp-client [1], serves up > > code-completion suggestions. > > > > The language-server-protocol uses jsonrpc [2] and we developed our own C++ > > SDK which both implements jsonrpc and allows for the creation of > > language-servers. > > > > We use systemtap's pass 1 machinery in order to lex and parse > > code-completion requests and then use the termination state to determine > > the completion results as well as some metadata (such as the result type). > > Further deriving these allows us to provide additional context-specific > > completion results such as context variables within applicable probe > > statement blocks or string completions within probe components. The server > > also provides completions for globals, functions and macros from both > > within the script and from the tapsets. > > > > The language server can be run with "stap --language-server" and should be > > started by a language-server client as the data is currently transferred > > via stdin/stdout. We have currently been testing with vim, emacs, vscode, > > jupyter and eclipse. Take a look at language-server/README.md for client > > specific usage instructions. > > > > For more information I'll be releasing a blog post later this year > > describing the jupyter-notebook use case of the language-server. If you > > have any feedback, I'd be happy to hear it. > > Hi Ryan, the source doesn't compile on RHEL. RHEL9 currently only > has json-c-devel-0.14 which doesn't provide json_object_new_array_ext(). > It only las json_object_new_array() This seems to be the only > compilation problem on RHEL9. > > However, systemtap is also supposed to work with RHEL8, where I > seem to see more compile time issues. Please, check. I'm happy > to provide a test box for you if interested. ... thanks, for the fixes; Works great for me now! Martin