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 351493858CDB for ; Mon, 6 Feb 2023 09:47:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 351493858CDB 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=1675676876; 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=/wK1A8SGNoKIF31fAHD4i0269Ia17h1SmAKxovWytqM=; b=DG/++rHmOEDb+nILNgNvhaTU3sBw+DYFIdOZDZeIVCYpSFTGtmCpc3BOmIeIVPD8dyEVxC mb+rX4dVAK8Dgu5Ax/lEMqJXGuk51MmiPatUF6EX1gI/8/mX72mSuNhsUsyurcYu9rsqIe gyVepbCOdlio5SG8N6HShxxt+q5oLu0= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-418--rKs6B1xNkmwg4reQDWepQ-1; Mon, 06 Feb 2023 04:47:55 -0500 X-MC-Unique: -rKs6B1xNkmwg4reQDWepQ-1 Received: by mail-ed1-f69.google.com with SMTP id g25-20020aa7c859000000b004a3fe4cbb0cso7314627edt.17 for ; Mon, 06 Feb 2023 01:47:55 -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=/wK1A8SGNoKIF31fAHD4i0269Ia17h1SmAKxovWytqM=; b=ScBUqzREYUs2sfHNdKbFPZXpnC/S2lHnrXgLOva5nvBE1c93/TvH27zJtH7QZvcz5e DpZjGblJGwH2/ucGqwaQD+zNletFoh/UXXQHDUhNZpXr/7AW/6hjnHs8ujpaDClksMnQ ykYqFoeAyVxQGVSmqxf+1i3+AUmPLVEBZQQtHE/fiB6gPgKn8j4cK/stx7JYGlS9vuY/ m8SySN3GNTxXDwJDwJRPSHfeYmOW60sb2+Dq8BSNSd3DKOInbtclfgC9Yx3/yCzqUNOB 6l32non6mOEm3gnDpfLk0d+7bras1vHTytmxULB99xUiZx5u2mea1rJ4m+86R1C04u+Z OFbA== X-Gm-Message-State: AO0yUKWAOiPylJ5Ow12npqrH+7r90lkkiwynhWnf3Te+TPwvRWqi8aCX mJT6bwLuhYJsZ+unBcnCPZDGGj+eGWXTfTlPTzjFt2LiKjgXmp+ApIIyR5gAphkDxpHDZ8TauH8 lx8cXjuIXcrju+H3XK/o= X-Received: by 2002:a17:907:c083:b0:882:239e:23c0 with SMTP id st3-20020a170907c08300b00882239e23c0mr20378704ejc.12.1675676873942; Mon, 06 Feb 2023 01:47:53 -0800 (PST) X-Google-Smtp-Source: AK7set/deweHlajliW+5y8IIwpHjQ9IPIUaWibm+9s+QZdAXTNjQVg1AiyUwbR0wBEPky/P2pvvJNg== X-Received: by 2002:a17:907:c083:b0:882:239e:23c0 with SMTP id st3-20020a170907c08300b00882239e23c0mr20378692ejc.12.1675676873713; Mon, 06 Feb 2023 01:47:53 -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 fj15-20020a0564022b8f00b004a233e03afdsm4796793edb.46.2023.02.06.01.47.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Feb 2023 01:47:53 -0800 (PST) Date: Mon, 6 Feb 2023 10:47:52 +0100 From: Martin Cermak To: Ryan Goldberg Cc: systemtap@sourceware.org Subject: Re: Introducing the Systemtap Language-server Message-ID: <20230206094752.h4ltkc7hnfyhta57@lida.tpb.lab.eng.brq.redhat.com> References: MIME-Version: 1.0 In-Reply-To: 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 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, Martin