Code Monkey home page Code Monkey logo

Comments (21)

freetonik avatar freetonik commented on September 3, 2024

Hey,

what does it say if you hit C-h k C-c a?

from castlemacs.

MooersLab avatar MooersLab commented on September 3, 2024

C-c a is undefined.

from castlemacs.

MooersLab avatar MooersLab commented on September 3, 2024

As I edit an org document, I am getting in the messages buffer the following message, which may or may not be related.

Error parsing SVG image ‘(image :type svg :file splash.svg :scale 1)’ [5 times]

I am not seeing a splash.svg on start up but that does not bother me.

from castlemacs.

freetonik avatar freetonik commented on September 3, 2024

It seems like it's related to the Emacs version. Your config works fine under macOS 10.14.16 + Emacs 26.3.

I try to support the latest stable release (currently 26.3). 27 should work fine, but with 28 there might be more problems.

I might need some time to investigate the compatibility with newer versions. But I'm afraid the easiest way to resolve this is to switch to a stable 26.3. Is there a reason you've decided to use v28?

from castlemacs.

MooersLab avatar MooersLab commented on September 3, 2024

I thought that some issues with Catalina might have been resolved in v28.
I was using v26.3.

I will switch back to v26.3 and test it with the castlemacs config.
I have not tried that.

I have bounced off emacs several times in the past and then dug into vim.
After getting comfortable and productive in vim, I feel tough enough to try to emacs again.
Castlemacs may ease that transition.

from castlemacs.

freetonik avatar freetonik commented on September 3, 2024

Ugh, I'm afraid to upgrade to Catalina still :(
But I guess I should, in order to properly support Castlemacs.

Let me know how it goes.

from castlemacs.

MooersLab avatar MooersLab commented on September 3, 2024

I am getting the same message, so the problem must be with a hidden configuration file outside of .init.el.

from castlemacs.

freetonik avatar freetonik commented on September 3, 2024

Try putting (global-set-key "\C-ca" 'org-agenda) in a scratch buffer, placing the cursor at the end of the line and pressing C-x C-e (evaluate last sexp).

from castlemacs.

MooersLab avatar MooersLab commented on September 3, 2024

I get back org-agenda.

from castlemacs.

freetonik avatar freetonik commented on September 3, 2024

Now try to invoke that key combination (or hit C-h k C-c a again).

from castlemacs.

MooersLab avatar MooersLab commented on September 3, 2024

Now I have the help page for org-agenda.

from castlemacs.

freetonik avatar freetonik commented on September 3, 2024

Just to be clear, it says something like:

C-c a runs the command org-agenda (found in global-map), which is an
interactive autoloaded Lisp function in ‘org-agenda.el’.
....

?

from castlemacs.

MooersLab avatar MooersLab commented on September 3, 2024

Correct!

from castlemacs.

freetonik avatar freetonik commented on September 3, 2024

Alright, so it seems like private.el is not loaded correctly. Are there any error messages in the minibuffer when Emacs loads?

from castlemacs.

MooersLab avatar MooersLab commented on September 3, 2024

Oops, I ignored this as I was focused on the second window with the org file in it.

Warning (initialization): An error occurred while loading ‘/Users/blaine/.emacs.d/init.el’:

error: Expected printf output from shell, but got: "�[5 qINFO: deactivate-gfortran_osx-64.sh made the following environmental changes:
__RESULT�/Users/blaine/.opam/default/bin:/opt/anaconda/condabin:/bin:/opt/local/bin:/opt/local/include:
/opt/local/Library/Frameworks/Python.framework/Versions/3.8/bin:/Users/blaine/Library/Python/3.8/bin:/Users/blaine/Library/Python/3.7/bin:/opt/local/Library/Frameworks/Python.framework/Versions/3.7/bin:/opt/local/Library/Frameworks/Python.framework/Versions/3.6/bin:/opt/local/Library/Frameworks/Python.framework/Versions/3.5/bin:/opt/local/libexec/gnubin:/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin:/Applications/ccp4-7.0/lib:/Applications/ccp4-7.0/bin:/Applications/ccp4-7.0:/usr/local/Cellar:/usr/local/bin:~/.emacs.d/bin:/Applications/emacs.app/Contents/MacOS:/usr/local/charmm/bin:/usr/local/go/bin:/Users/blaine/software/amber18/bin:/opt/X11/bin:/Applications/Julia-1.0.app/Contents/Resources/Julia/bin/julia:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/blaine/.gem/ruby/2.3.0/bin:/Applications/ATSAS/bin:/Applications/ATSAS/lib:/Applications/ATSAS/share:/Users/software/prody/scripts:/Users/blaine/software/XDS:/Users/blaine/software/xdsme/bin/noarch:/usr/local:/Users/blaine/.cask/bin:/Users/blaine/software/doconce/bin:/Users/blaine/software/rna-pdb-tools/bin:/Users/blaine/software/dock6/bin:/Users/blaine/software/apache-maven-3.5.2/bin:/usr/local/bin/R:/Users/blaine/software/x3dna-v2.3/bin:/Users/blaine/software/curves+:/Users/blaine/software/rna-pdb-tools:/Users/blaine/software/dakota-6.11.0/bin:/Users/blaine/software/dakota-6.11.0/share/dakota/test:/Users/blaine/software/dakota-6.11.0/gui/Contents/MacOS:/bin:/usr/local/Cellar/python/3.7.5/bin:/Users/blaine/.gem/ruby/2.6.0/bin�/usr/local/gromacs/share/man:/Applications/ccp4-7.0/share/man:/usr/share/man:/usr/local/share/man:/opt/X11/share/man�__RESULT"

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.

from castlemacs.

MooersLab avatar MooersLab commented on September 3, 2024

Weird, the '--debug-init' flag is not working with v26.3 whereas it was earlier this week.

from castlemacs.

freetonik avatar freetonik commented on September 3, 2024

Let's try something. Open init.el and find this section:

(use-package exec-path-from-shell
  :ensure t)

Replace it with this:

(use-package exec-path-from-shell
  :ensure t
  :config
  (setq explicit-shell-file-name "/usr/bin/env bash"))

and restart Emacs. See if the error disappears.

from castlemacs.

MooersLab avatar MooersLab commented on September 3, 2024

I get the same error message.
I launched emacs from a zsh shell.

from castlemacs.

MooersLab avatar MooersLab commented on September 3, 2024

If I switch to bash shell, I get the same warning in emacs.

from castlemacs.

freetonik avatar freetonik commented on September 3, 2024

I think the problem originates with conda or some other Python package on your machine. This is probably related.

The package exec-path-from-shell cannot handle the fact that the environment yields some unexpected output.

If you don't use gfortran_osx-64, you could try uninstalling or upgrading it.

from castlemacs.

MooersLab avatar MooersLab commented on September 3, 2024

Yes, deactivate-gfortran_osx-64.sh is for a conda install of gfortran. I updated the gfortan with conda and the error message went away from both the zsh shell and emacs.

In addition, I am now getting some of the automated formatting from castlemac of my org file
castlemac

However, C-c a is still not recognized.

As you may know, zsh is the default shell in Catalina.

from castlemacs.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.