Giter VIP home page Giter VIP logo

Comments (4)

twmr avatar twmr commented on August 27, 2024

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.

wyuenho avatar wyuenho commented on August 27, 2024

That does not look like version 20220905.2004, this is what's on that version.

from emacs-pet.

twmr avatar twmr commented on August 27, 2024

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.

twmr avatar twmr commented on August 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.