You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/p/del/myproject$ head -1 environment.yml
name: /home/someuser/p/del/myproject/envs
Launch emacs
find-file ~/p/del/myproject/environment.yml
switch from/to the buffer (environment doesn't change)
Possible fix for POSIX paths
Add forward slash to regex in conda--get-name-from-env-yml.
(defunconda--get-name-from-env-yml (filename)
"Pull the `name` property out of the YAML file at FILENAME.";; TODO: find a better way than slurping it in and using a regex...
(when filename
(let ((env-yml-contents (f-read-text filename)))
(if (string-match"name:[ ]*\\([A-z0-9-_./]+\\)[ ]*$" env-yml-contents)
(match-string1 env-yml-contents)
nil))))
The text was updated successfully, but these errors were encountered:
Looks like
conda--get-name-from-env-yml
isn't parsing POSIX paths properly.Steps to reproduce
$ emacs --version GNU Emacs 30.0.50 Development version a470dfb7f8a0 on master branch; build date 2024-01-30.
~/p/del/myproject$ head -1 environment.yml name: /home/someuser/p/del/myproject/envs
Possible fix for POSIX paths
Add forward slash to regex in
conda--get-name-from-env-yml
.The text was updated successfully, but these errors were encountered: