spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
zendevil 2021-03-21T14:51:24.000700Z

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 2021-03-21T14:51:42.001Z

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-john 2021-03-21T16:25:22.006Z

@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 2021-03-21T16:29:08.006500Z

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

zendevil 2021-03-21T16:29:42.006800Z

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

zendevil 2021-03-21T16:32:15.007600Z

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

practicalli-john 2021-03-21T17:29:18.009500Z

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 2021-03-21T17:38:14.009900Z

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

practicalli-john 2021-03-21T18:23:16.011500Z

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 2021-03-21T18:57:18.011700Z

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

zendevil 2021-03-21T19:04:40.012Z

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

practicalli-john 2021-03-21T19:17:32.012300Z

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).