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
Without changing the language at the bottom dialog (i.e. leaving TypeScript) type "C# code for Azure web application"
The tool generates a C# program while still saying "TypeScript":
Now click the "Deploy with Pulumi" button:
Go through the project creation steps. The project is generated as TypeScript with C# code:
Example
See above
Output of pulumi about
not relevant
Additional context
While this is a user error (I should have switched the language), the experience is a trap. I explicitly asked for what I want (a C# app) and expect to get it.
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered:
Curious what you would expect in this scenario, I think we have a pretty wide array of options:
Pulumi AI would override your chosen language based on the prompt - and what would the boundaries of that be, e.g.: "Write a program to deploy a C# web app" would be ambiguous?
Should we remove the language selection buttons entirely, and determine how to handle if the user asks for "a program" without a language in their prompt?
Pulumi AI should refuse to generate a program for "the wrong" language, be prompted to detect this situation
The least surprising behavior would be to switch the language selector to the user-specified language.
Internally, I would add a sanity check to detect language mismatch between the generated language and the file type. As in, if we're writing C# code into a .ts file, fail hard and report an error. (Not sure if this is recoverable, if we know the user intent at that point)
What happened?
The tool generates a C# program while still saying "TypeScript":
Now click the "Deploy with Pulumi" button:
Go through the project creation steps. The project is generated as TypeScript with C# code:
Example
See above
Output of
pulumi about
not relevant
Additional context
While this is a user error (I should have switched the language), the experience is a trap. I explicitly asked for what I want (a C# app) and expect to get it.
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: