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

fix: avoid prompt template directory error #14421

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

sdirix
Copy link
Member

@sdirix sdirix commented Nov 8, 2024

What it does

The prompt customization service tried to access the prompt template directory even if it did not exist (yet). This case is now checked.

How to test

Prerequisites:

  • Delete the prompt-templates directory if it exists for you in the user .theia directory
  • Reset the template directory preference in case you customized it

To test:

  • Start an example application. Observe that there is no longer a template error like Unable to resolve nonexistent file 'C:\Users\thomas\.theia\prompt-templates' in the log

Fixes #14367

Review checklist

Reminder for reviewers

The prompt customization service tried to access the prompt template
directory even if it did not exist (yet). This case is now checked.

Fixes eclipse-theia#14367
@sdirix sdirix merged commit 6c76b44 into eclipse-theia:master Nov 8, 2024
11 checks passed
@sdirix sdirix deleted the avoid-template-error branch November 8, 2024 19:11
@sdirix sdirix added this to the 1.56.0 milestone Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Theia AI] Exception in Log at Startup
2 participants