Comments (4)
I think the REGEX of file-expand-wildcards
needs to be set to t in pet-find-file-from-project-root
:
...
(car (file-expand-wildcards (concat (file-name-as-directory root) file) t t))))
from emacs-pet.
That does not look like version 20220905.2004, this is what's on that version.
from emacs-pet.
Indeed. I had an older version of pet.el in a folder called pet-20220905.2004
- don't know how this could have happened.
Good that this is fixed now.
One follow-up question (I can create a new ticket for that if you want):
In a project that uses a conda environment, which is specified in the environment.yml
, I would expect (pet-virtualenv-root)
to return directory of this conda-env, but what it does is that just returns /home/thomas/miniconda
and not /home/thomas/miniconda/envs/myprojectenv
. Is there a reason for the current behavior?
from emacs-pet.
This sexp returns the correct prefix, but AFAICS it is not used anywhere in pet.el
(alist-get 'prefix (pet-environment))
.
Adding this code to (pet-virtualenv-root)
fixes this issue for me
(let ((venv-path
(cond
((pet-environment) (alist-get 'prefix (pet-environment))) ;;; this line is new
((when-let ((program (pet-use-conda-p))
(default-directory (file-name-directory (pet-environment-path))))
(condition-case err
....
from emacs-pet.
Related Issues (20)
- Pet performance issue HOT 9
- Usage of string-match-p HOT 5
- Made list of changed variables configurable HOT 1
- `pet-exectuable-find` calls of `process-lines` using `pyenv which` can fail, setting vars to `nil` HOT 10
- Unable to guess virtualenv HOT 4
- Doesn't work on remotes over TRAMP HOT 2
- Add support for Eglot (and maybe Eshell) HOT 19
- pet-20230423.2326/pet.elc failed to define function pet HOT 7
- pyenv exited with status 127 when using pet-mode with emacs-jupyter HOT 5
- Support flymake? HOT 6
- pylsp-mypy is not recognizing the virtual environment HOT 3
- Virtualenv is not detected when it is directly in the root directory HOT 2
- Does conda work? HOT 4
- Manual venv selection? HOT 1
- Error in installation for newer emacs version HOT 5
- hatch support
- rye support
- pixi support
- Conflict between precommit and poetry HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emacs-pet.