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: Emacs 26.3 strange ESS init error regarding Projectile and project root. Date: Mon, 7 Jun 2021 02:57:21 -0400 Message-ID: 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="21095"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 07 08:58:35 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 1lq9DX-0005Cj-Gd for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 07 Jun 2021 08:58:35 +0200 Original-Received: from localhost ([::1]:34560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lq9DV-0005M9-RR for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 07 Jun 2021 02:58:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36336) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lq9Cz-0005Lk-Fz for help-gnu-emacs@gnu.org; Mon, 07 Jun 2021 02:58:01 -0400 Original-Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:36788) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lq9Cx-0000NO-Lf for help-gnu-emacs@gnu.org; Mon, 07 Jun 2021 02:58:01 -0400 Original-Received: by mail-wm1-x335.google.com with SMTP id n17-20020a7bc5d10000b0290169edfadac9so11867625wmk.1 for ; Sun, 06 Jun 2021 23:57:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=KVwHwV75xqTEjih0bp96L2dq3uNxGMTLnY41TNCMqRE=; b=asBg71aYVxP4edJ3VXrvt+chUJ/mQkkuu5tYx+DgADZ/GWb1x4nw5o7Lhy2lHOTJHR B/KHHTS+ykq4e+vKe1x8PalL/isIJvPDnG8dCTVg5CdjR3LFapAseQ1wN16WbnHhLlqf /BoEZHPmSJnnNG7wz5QICSQ/84rBfsWh2MTcxpvbCcx8LCXlrrczNKXRVadv8/bz8lOf fspMJ6mk3VBq/IaOxQVj8Xw3nOs0TnaO9KElT78h58/pYBiXyoFiRkcDlLFIMB6ACmo7 Vph4L0tA/IsFx+doKZXVxvoZpQFPEhKrSmRioETblhH/fkiAOTc9rwQ3MfZ5yvZ8GkSP oZVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=KVwHwV75xqTEjih0bp96L2dq3uNxGMTLnY41TNCMqRE=; b=fSfiuUNBTZDq2qmQhF71hyG7Fa3nnQCDO+4cNfJ66tJXJ1TiTHWOJWOr3LphJeY4Cz N8oEHm3+Vr4IwR0Tpib+rmAhld6eFhQ/BnWm96MWNkq6yImjvFZEuLTBv9A7Hg8X2nXa gZMNOph2fQF72FaKkmFVb9sB4FyuONea34a6Ltdaz8wwD5ehcmIlMcdCrNg3W7tydTWb 1W8lzL9YiYwezqMRlzuiQMWR4DTMMomf8Zqyaflject9bZaoVihfOzk/YGjtiIcuGs33 J5rAga8AN5Vp9hXZ7oTk3N+Y0SG1+ZBaTLhMj2q5JEY6RSTwz2awthEnbumzb87okuzn WD6A== X-Gm-Message-State: AOAM531El766EVlzsnEJQxFW1tNyHf1WdkvK5t+6zxGom4YuysUW5RQZ dNrwJmRL/TBZiWVhPRyueC5r7La8M2tlkyJc/cKZ2kw9Z2U= X-Google-Smtp-Source: ABdhPJzaEDo8PjSXa6WSaCjr0N5P6czTNBg+PsyRooHh/0m34Pl+WmhROOqawb5xKig/ToymDv9/BvYsFo5OA/fReio= X-Received: by 2002:a7b:c749:: with SMTP id w9mr15217094wmk.3.1623049077482; Sun, 06 Jun 2021 23:57:57 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=oraclmaster@gmail.com; helo=mail-wm1-x335.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:130591 Archived-At: 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." WTF....? Maybe it will help if I include some debugging output: Begin Error: ------------------------------------------------------------------------------------------------------------- Debugger entered--Lisp error: (error "project-root is already defined as something else than a generic function") signal(error ("project-root is already defined as something else than a generic function")) error("%s is already defined as something else than a generic function" project-root) cl-generic-ensure-function(project-root) cl-generic-define-method(project-root nil ((project (head ess-r-package))) nil #f(compiled-function (project) "Return the project root for ESS R packages" #)) byte-code("\300\301\302\303\302\304%\210\300\305\302\306\302\307%\207" [cl-generic-define-method project-roots nil ((project (head ess-r-package))) #f(compiled-function (project) "Return the project root for ESS R packages" #) project-root ((project (head ess-r-package))) #f(compiled-function (project) "Return the project root for ESS R packages" #)] 6) require(ess-r-package) eval-buffer(# nil "/home/carlotam79/.emacs.d/elpa/ess-20210520.2146/ess-r-mode.el" nil t) ; Reading at buffer position 1277 load-with-code-conversion("/home/carlotam79/.emacs.d/elpa/ess-20210520.2146/ess-r-mode.el" "/home/carlotam79/.emacs.d/elpa/ess-20210520.2146/ess-r-mode.el" nil t) require(ess-r-mode) eval-buffer(# nil "/home/carlotam79/.emacs.d/elpa/ess-20210520.2146/ess-site.el" nil t) ; Reading at buffer position 2217 load-with-code-conversion("/home/carlotam79/.emacs.d/elpa/ess-20210520.2146/ess-site.el" "/home/carlotam79/.emacs.d/elpa/ess-20210520.2146/ess-site.el" nil t) require(ess-site) (progn (require (quote ess-site))) eval((progn (require (quote ess-site))) t) elisp--eval-last-sexp(nil) eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) call-interactively(eval-last-sexp nil nil) command-execute(eval-last-sexp) --------------------------------------------------------------------------------------------------------------------- End error I feel like this might be fixed by setting some environment variable in either projectile or ESS, but this error message is not helping me to figure it out...