From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id YPDVBhQqtF/+GQAA0tVLHw (envelope-from ) for ; Tue, 17 Nov 2020 19:52:52 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id UMyuAhQqtF/QIAAAB5/wlQ (envelope-from ) for ; Tue, 17 Nov 2020 19:52:52 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7F32D9403A9 for ; Tue, 17 Nov 2020 19:52:51 +0000 (UTC) Received: from localhost ([::1]:34532 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kf720-0007hR-UN for larch@yhetil.org; Tue, 17 Nov 2020 14:52:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kf6zR-00052d-Fr for help-guix@gnu.org; Tue, 17 Nov 2020 14:50:09 -0500 Received: from mout01.posteo.de ([185.67.36.65]:55916) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kf6zO-0003Xk-ST for help-guix@gnu.org; Tue, 17 Nov 2020 14:50:09 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 8996D16005F for ; Tue, 17 Nov 2020 20:50:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.ro; s=2017; t=1605642601; bh=Y4ri8dZBBzxx5VH6DbeblUwhLPpRuCnxx/6hNqpOh8Y=; h=From:To:Subject:Date:From; b=nb0N9avKYJ21sxorcSLD1dv52AqAD3Ygcu1UqCgOGhBC9GcQs3qs9SSPZ81CmKGM5 LaDpgwEa8ujKpWgT7+4RhxY5CgCZG7rYsaBrZ/7It4r/12Vrtw+9z0HbTq3IYGbPN3 KxOV89H1TgqyR8hc2J9Xy4In8F11Gd2/yYVJedFOaRKmHCKLZa8bzU7GDYGuRK4fPY fmZ8YiwuqfdeqqU5/43gTw73wM4gKVf0aVUjrmHE4dTIdFAhyMgUhNR2+Ex8j3wPGN IGPOJcdk8cpfAPQI/EyzuniEny0eljbT8pNMZTyxxdUf84gffc7mMBD+U4DWgDNrX+ gxCD0HuF7c4Vg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4CbGkK03rlz9rxT for ; Tue, 17 Nov 2020 20:50:00 +0100 (CET) From: Alexandru-Sergiu Marton To: help-guix@gnu.org Subject: Emacs, ccls, LSP and C++ Date: Tue, 17 Nov 2020 23:50:02 +0200 Message-ID: <87y2iz3b79.fsf@posteo.ro> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=brown121407@posteo.ro; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/17 14:50:02 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.ro header.s=2017 header.b=nb0N9avK; dmarc=pass (policy=none) header.from=posteo.ro; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: VbPpK4tgnPBl Hi, I have some problems setting up a C++ development environment on Guix System. I'm using Emacs with lsp-mode and emacs-ccls. This setup works very well for C projects, but ccls doesn't seem to like anything related to C++. Take this simple program for example: --8<---------------cut here---------------start------------->8--- #include int main () { std::cout << "Hello, World!\n"; return 0; } --8<---------------cut here---------------end--------------->8--- Both lsp-mode and eglot tell me that ccls reports: "no member named 'cout' in namespace 'std'". I have gcc-toolchain installed and I can compile the project just fine. I tried using bear to generate a compile_commands.json, from this simple Makefile: --8<---------------cut here---------------start------------->8--- all: g++ main.cpp -o main --8<---------------cut here---------------end--------------->8--- but ccls still fails to recognize the members of the std namespace. Irony seems to fail too (same problem), but I haven't tried playing with it too much, I just tested the default Doom Emacs config. One more thing: ccls also complains about this, and I don't know what to make of it: main.cpp error:20 unknown type name '_GLIBCXX17_DEPRECATED' Do any of you have experience with setting up a C++ development environment on Guix System in Emacs? Did you run into similar problems, and if yes, how did you solve them? Cheers, Alexandru-Sergiu Marton