doomemacs / doomemacs/core

doom run error after fresh install (File already exists)

Open
#7,007 1 comment 0 reactions 0 assignees View on GitHub
is:bug needs-triage
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### I confirm that...

- [X] I have searched the [issue tracker](https://github.com/doomemacs/doomemacs/issues), [documentation](https://docs.doomemacs.org), [FAQ](https://docs.doomemacs.org/-/faq), [Discourse](https://discourse.doomemacs.org), and [Google](https://google.com), in case this issue has already been reported/resolved.

- [X] I have read "[How to Debug Issues](https://doomemacs.org/d/how2debug)", and will use it to provide as much information about this issue as possible.

- [X] The issue can be reproduced on the **latest** available commit of Doom.

- [X] The issue can be reproduced on a stable release of Emacs, such as 27 or 28. *(Doom does not support development builds like 29+ or any version ending in .50 or .9x)*

### Expected behavior

I dont know if im doing anything wrong, but after a fresh install i just try to run doom with `doom run` and it just errors out, see bellow.

### Current behavior

Errors out

```
❯ doom run
x There was an unexpected runtime error
Message: File already exists
Details: ("File already exists" "/tmp/doom.run/.config")
Backtrace:
(make-symbolic-link "/home/darthvader/.config/" "/tmp/doom.run/.config/")
(if (file-symlink-p target) nil (make-directory (file-name-directory target) t) (make-symbolic-link xdg-dir tar...
(progn (if (file-symlink-p target) nil (make-directory (file-name-directory target) t) (make-symbolic-link xdg-...
(if (file-directory-p xdg-dir) (progn (if (file-symlink-p target) nil (make-directory (file-name-directory targ...
(let* ((xdg-dir (doom-path dir)) (target (doom-path tempdir (file-relative-name xdg-dir "~")))) (if (file-direc...
(let ((dir (car --dolist-tail--))) (let* ((xdg-dir (doom-path dir)) (target (doom-path tempdir (file-relative-n...
(while --dolist-tail-- (let ((dir (car --dolist-tail--))) (let* ((xdg-dir (doom-path dir)) (target (doom-path t...
(let ((--dolist-tail-- (list (or (getenv "XDG_DATA_HOME") "~/.local/share") (or (getenv "XDG_BIN_HOME") "~/.loc...
(let* ((tempdir (doom-path (temporary-file-directory) "doom.run")) (tempemacsdir (doom-path tempdir ".emacs.d")...
(if repl\? (if input (eval (read input) t) (doom-run-repl context)) (let* ((tempdir (doom-path (temporary-file-...
(let ((repl\? (cdr (assq 'repl\? alist))) (context (cdr (assq 'context alist))) (input (cdr (assq 'input alist)...
((closure (t) (cli alist) (let ((repl\? (cdr (assq 'repl\? alist))) (context (cdr (assq 'context alist))) (inpu...
! Wrote extended backtrace to ~/.emacs.d/.local/logs/cli.doom.221223075331.70294.error
```

### Steps to reproduce

1. fresh install
2. try and run

### System Information

https://pastebin.com/k8QUg74i

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.