Fork me on GitHub
#spacemacs
<
2021-03-21
>
zendevil.eth14:03:24

I’m encountering a problem in running a program by starting the clj repl in the spacemacs shell that works in the regular shell

zendevil.eth14:03:42

I’m running this repo: https://github.com/Datomic/ion-starter I start with clj and then start entering commands from this file: https://github.com/Datomic/ion-starter/blob/master/siderail/tutorial.repl When I reach line 9: (starter/ensure-sample-dataset) even though the the repl in the terminal works fine, the repl in spacemacs gives the following error:

Execution error (ExceptionInfo) at datomic.client.api.async/ares (async.clj:58).
profile file cannot be null
It seems like it has something to do with spacemacs being unable to source credentials from the ~/.aws/credentials file. I have relaxed the permissions to this file to chmod 777 but still get this error. How can I fix this?

practicalli-johnny16:03:22

@ps I don't recommend using the Emacs shell buffer for long running processes. There are several shells you can run in Emacs. Try running either multi-term or vterm

zendevil.eth16:03:08

@jr0cket doesn’t multi-term accept “paste”?

zendevil.eth16:03:42

trying to paste something it says “Buffer is read-only”

zendevil.eth16:03:15

@jr0cket ah it uses term-paste . In any case, I’m getting the same error. Profile file cannot be null

practicalli-johnny17:03:18

It might be how you start Emacs. Try run Emacs from a terminal (rather than a desktop launcher) so it uses the normal shell environment

zendevil.eth17:03:14

@jr0cket I always run it from the terminal with sudo emacs

practicalli-johnny18:03:16

Why use sudo? Isn't that going to change the home path? What environment variables is it going to use, the users or root? I assume you are using Spacemacs develop branch, so SPC f e e will show the environment Emacs is using

zendevil.eth18:03:18

@jr0cket the HOME env variable is the user’s home directory as it should be on sudo emacs

zendevil.eth19:03:40

@jr0cket actually launching with emacs worked, which puzzles me because the HOME env var is the same in both cases

practicalli-johnny19:03:32

I've never needed to use sudo to start Emacs, so unclear of your use case. Spacemacs can open root owned files using SPC f E (sudo-edit).