john-zenden

Results comments of john-zenden

Don't know if anyone else has noticed, but the path in Windows has a space that causes the location to bomb: See "AWS SAM" here. C:\Users\[my username]\AppData\Roaming\AWS SAM\aws-sam-cli-app-templates\python3.9\cookiecutter-aws-sam-hello-python By calling...

Can someone point me to the part of the codebase here where files are written to the ...\AppData\Roaming\... area of the Windows file system?

@keithnicholson your fix is here: https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=powershell#enable-long-paths-in-windows-10-version-1607-and-later

All... I don't think MAX PATH will solve this. The path written to /Users/[username]/AppPath when the SAM CLI is installed need to follow a common naming convention for each segment....

@hawflau I used the local path, not a git URI. my case was: sam init --locaiton "C:\Users\[your_user_name]\AppData\Roaming\AWS SAM\aws-sam-cli-app-templates\python3.9\cookiecutter-aws-sam-hello-python" I will try the MAX_PATH fix going against the local path and...

All... OK, after setting MAX_PATH via PowerShell I uninstalled and reinstalled the client. sam init worked fine. I have not tried adding a file path with --location. Would love to...

@gmarshall56 Look through this thread... You need to run this in Powershell: New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" ` -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force

@gmarshall56 I'd like to see them change the "AWS SAM" segment to "aws-sam" to remove the space. I believe that is really where the root of the problem lies, because...