+eval/buffer doesn't run current buffer
- 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
+eval/buffer run the current python file
### Current behavior
when I run +eval/buffer, I get the following output
```
Traceback (most recent call last):
File "qr_9TTN6Y.py", line 1, in
import numpy
ImportError: No module named numpy
2 things to note here.
```
file name is not the current file name.
modeline shows `conda:test` (i uses conda.el) which numpy is installed.
### Steps to reproduce
1. open Emacs
2. create new python file anywhere.
3. put the following code in the file
```
import os
print(os.path.basename(__file__))
```
4. run `+eval/buffer` and you should get output file name which is similar to `qr_9TTN6Y.py`
### System Information
https://pastebin.com/fEnXjeM9
Contributor guide
Assessment
This issue has not been assessed yet.