Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading ob-rust sets org-id-locations-file #12

Open
johannesneyer opened this issue Dec 1, 2023 · 3 comments · May be fixed by #13
Open

Loading ob-rust sets org-id-locations-file #12

johannesneyer opened this issue Dec 1, 2023 · 3 comments · May be fixed by #13

Comments

@johannesneyer
Copy link

Loading this package sets org-id-locations-file to "/home/username/.config/emacs/elpa/ob-rust-20220824.1923/.test-org-id-locations" for some reason.

@Tekki
Copy link

Tekki commented Aug 29, 2024

for some reason.

The reason can be found in the test file: https://github.com/micanzhang/ob-rust/blob/master/test-ob-rust.el#L28

@laurynas-biveinis
Copy link

A workaround

(with-eval-after-load 'ob-rust-test
  (setq org-id-locations-file "~/.emacs.d/.org-id-locations"))

laurynas-biveinis added a commit to laurynas-biveinis/dotfiles that referenced this issue Oct 31, 2024
@Tekki
Copy link

Tekki commented Oct 31, 2024

A workaround

(with-eval-after-load 'ob-rust-test
  (setq org-id-locations-file "~/.emacs.d/.org-id-locations"))

In ob-cobol I set it to a temporary file during the tests.

(defconst org-id-locations-file
  (org-babel-temp-file "test-org-id-locations-"))

gs-101 added a commit to gs-101/ob-rust that referenced this issue Dec 5, 2024
Use a temporary file for testing, so it doesn't set the location for the current session.

Closes micanzhang#12
@gs-101 gs-101 linked a pull request Dec 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants