Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When loading a LAMBDA project with a custom workingDirectory in launchSettings.json - the value is incorrectly changed #479

Open
Paul-Langille-Alludo-Com opened this issue Nov 21, 2024 · 1 comment
Labels
bug We can reproduce the issue and confirmed it is a bug. service:lambda

Comments

@Paul-Langille-Alludo-Com

Describe the bug
When loading a LAMBDA project with a custom workingDirectory in launchSettings.json - the value is incorrectly changed - but ONLY if the AWS Toolkit is installed.

To Reproduce

  1. Create a custom lambda project
  2. Edit the workingDirectory value to use a different var (like $(OutputPath))
  3. Save and close the project.
  4. Close Visual Studio
  5. Reopen Visual Studio and reopen the project
  6. Open the launchSettings.json
  7. The workingDirectory is set to a different value

Expected behavior
The workingDirectory should NOT be changed from the value set in step 2

Development System (please complete the following information):

  • Windows Version: Windows 10
  • Visual Studio Version: Visual Studio 2022
  • AWS Toolkit for Visual Studio Version: Latest
@Paul-Langille-Alludo-Com Paul-Langille-Alludo-Com added the bug We can reproduce the issue and confirmed it is a bug. label Nov 21, 2024
@awschristou
Copy link
Contributor

Hi @Paul-Langille-Alludo-Com , thank you for reaching out.

I am able to reproduce this behavior. Right now, I don't know if this is deliberate or accidental behavior by the Toolkit. As a workaround, you can create your own entry in launchSettings.json file, calling it something other than "Mock Lambda Test Tool". This way you can debug using your own custom profile values, and you can use the "Mock Lambda Test Tool" as a reference in order to set it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug We can reproduce the issue and confirmed it is a bug. service:lambda
Projects
None yet
Development

No branches or pull requests

2 participants