From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Carlo Tambuatco Newsgroups: gmane.emacs.help Subject: Re: Emacs 26.3 strange ESS init error regarding Projectile and project root. Date: Thu, 17 Jun 2021 00:46:27 -0400 Message-ID: References: <87eedeou89.fsf@posteo.net> <87a6o2ornz.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5047"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Philip Kaludercic Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 17 06:47:30 2021 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 1ltjwA-00018K-0F for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 17 Jun 2021 06:47:30 +0200 Original-Received: from localhost ([::1]:60322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltjw9-0004ZZ-08 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 17 Jun 2021 00:47:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltjvo-0004ZL-71 for help-gnu-emacs@gnu.org; Thu, 17 Jun 2021 00:47:08 -0400 Original-Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:53787) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ltjvm-0005AW-2y for help-gnu-emacs@gnu.org; Thu, 17 Jun 2021 00:47:07 -0400 Original-Received: by mail-wm1-x333.google.com with SMTP id j18so2323937wms.3 for ; Wed, 16 Jun 2021 21:47:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YGTXHQS6MB0a1GWIvq5iX5QIueJP9d5cX/kmDOfHU/s=; b=ok5hVK7X6NozY9/xdbdTmr7fH3vsyGbCzzynz2zyFHCDa2h1KyWx0qu8bCGnuzxJES PhGQi8+MoCuoj43nHkV72HZjOcJ+l9ldiAjEs+aj3JtKrxDUmMxof2/wgWGDQ7YiTvmc meDSW+6TGjA9z3g+VLvdNJpGgChpxjxFu4iWXPG0VbXwzVPV+/GbvkmgU4eqyn1+mbKQ WJCcOGxpSsAy40stEqhXm65FreIhiH66gMt96ScbWgIx0RAXIKQStjO4eX9+M/f/oi/F VIpEZYER2T2up1iiMbjmKu3bqON8TTSAQJeSBOQlN0skwyCuBjqkql4PYU0n94tASxtJ VvPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YGTXHQS6MB0a1GWIvq5iX5QIueJP9d5cX/kmDOfHU/s=; b=m9O78wR9ZrsBNdVMI7dN2v97mxTUDQRzxAszyVSfvbp740fuirKw7HBAbsj67RyVn7 h7rLivwPrxCB07KngEoFdOoeSx5IMwvc+HOJPoucGcPeAbBKeOaJymsKelL7w6GSbLhX BsVr2jQeoQebF0evLPMALxKi0ptZkdaJBO/NnrFkbz0k8mId9xqs8BZlnR58vJH771pQ hmaNK/V64tvN2hWocKyvtRkuFV2JIIJ0yIpK2uc9Uq2F41jTAwHhrydS+oBYL9NKmBGJ GxSQTbiuoHFu06aHXWZ9ELB5szdgG37PjvZKZjqVbuUjqlb4ygv7WAv6px+6t5jwdLCe +y4A== X-Gm-Message-State: AOAM533oraU7Mqfk3vDX+V3r6W3jlEAH9m0AyK+if4M/bmoF9mrqFxXj SzSGconA3hmD5so4jf97VPRQ8VzDiLhUoS71Gf4= X-Google-Smtp-Source: ABdhPJx/ShhaqCD/uMWtf9KqmxvkAZO2v0O4CvlJHhgkoS+8sp1sPuZRGwJBMhqlYqWc1fXnyk8WeIqlv+8ogdHEJME= X-Received: by 2002:a05:600c:29a:: with SMTP id 26mr2632919wmk.161.1623905223937; Wed, 16 Jun 2021 21:47:03 -0700 (PDT) In-Reply-To: <87a6o2ornz.fsf@posteo.net> Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=oraclmaster@gmail.com; helo=mail-wm1-x333.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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:130950 Archived-At: Unfortunately, reinstalling ESS did not solve the problem. I even tried uninstalling and reinstalling emacs itself to no avail. I don't know when this problem occurred or why but the combination of ESS and emacs-26.3 simply does not work. For some reason, the ESS package still gives me this error: "project-root is already defined as something else than a generic function" On Mon, Jun 7, 2021 at 7:11 AM Philip Kaludercic wrote: > Carlo Tambuatco writes: > > > "So try M-x package-reinstall ess M-x package-reinstall project" > > > > You mean reinstall ESS and projectile? > > That should be the easiest solution. And I don't think that projectile > should be to blame here, this is related to project.el, the built-in > package. > > > Should I force bytecode re-compilation, > > ie: M-x byte-recompile-directory M-x > > byte-recompile-directory > > > > On Mon, Jun 7, 2021 at 6:16 AM Philip Kaludercic > wrote: > > > >> Carlo Tambuatco writes: > >> > >> > I have both ESS and projectile installed and I have projectile mode > on by > >> > default. > >> > > >> > From my init.el file: > >> > > >> > ;; Load projectile > >> > (use-package projectile > >> > :ensure t > >> > :config > >> > (define-key projectile-mode-map (kbd "C-x p") > 'projectile-command-map) > >> > (projectile-mode +1)) > >> > > >> > Recently (as of about 1 day ago), emacs has been giving me this error > >> > when call (require 'ess-site) in my ESS-init.el file, or whenever I > try > >> to > >> > open an interactive R session via M-x R > >> > > >> > "project-root is already defined as something else than a generic > >> function." > >> > >> project-root should be unrelated to projectile, what is going on is that > >> somehow a regular function is being defined, that is generating a > >> conflict with project-root, the generic function. > >> > >> I had an issue similar to this just yesterday, and while I did not quite > >> understand what caused it, it seems that reinstalling the packages > >> and/or forcing the bytecode to regenerate fixed it. > >> > >> So try M-x package-reinstall ess M-x package-reinstall project > >> > >> -- > >> Philip K. > >> > > -- > Philip K. >