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
I have searched the issue tracker and believe that this is not a duplicate.
Make sure you run commands with -v flag before pasting the output.
Steps to reproduce
Create a user account with an apostrophe in the name in Windows; for example, PeterO'toole, so the home directory is C:\Users\PeterO'toole (or just make sure any path name with an apostrophe is in your path)
Clone a project using PDM in that directory:
git clone https://github.com/pdm-project/pdm.git
cd pdm
Create a venv by using pdm sync
Try to activate that venv using iex (pdm venv activate)
Actual behavior
You get an error indicating The term 'C:\Users\PeterO' is not recognized as the name of a cmdlet, function, script file, or operable program
If you just run pdm venv activate alone, you see that the command output is . 'C:\Users\PeterO'"'"'toole\pdm\.venv\Scripts\activate.ps1'
It looks like this is using bourne-shell-style quoting for that apostrophe in the name.
# Paste the output of `pdm info && pdm info --env` below:
Reported by another user (I'm on Linux so can't test), but this was a fresh install of PDM 2.15.2 on a brand new system running Python 3.12 installed via the scoop package manager.
The text was updated successfully, but these errors were encountered:
Make sure you run commands with
-v
flag before pasting the output.Steps to reproduce
C:\Users\PeterO'toole
(or just make sure any path name with an apostrophe is in your path)pdm sync
iex (pdm venv activate)
Actual behavior
You get an error indicating
The term 'C:\Users\PeterO' is not recognized as the name of a cmdlet, function, script file, or operable program
If you just run
pdm venv activate
alone, you see that the command output is. 'C:\Users\PeterO'"'"'toole\pdm\.venv\Scripts\activate.ps1'
It looks like this is using bourne-shell-style quoting for that apostrophe in the name.
Expected behavior
The virtual environment is activated.
It looks like in Powershell, you can quote a single quote in a single quoted string by doubling it up, such as
'C:\Users\PeterO''toole\...'
: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_quoting_rules?view=powershell-7.4Environment Information
# Paste the output of `pdm info && pdm info --env` below:
Reported by another user (I'm on Linux so can't test), but this was a fresh install of PDM 2.15.2 on a brand new system running Python 3.12 installed via the scoop package manager.
The text was updated successfully, but these errors were encountered: