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

{% extends "evaluation.prompty" %} Return errors template not found #153

Open
Skyquek opened this issue Dec 18, 2024 · 3 comments
Open

{% extends "evaluation.prompty" %} Return errors template not found #153

Skyquek opened this issue Dec 18, 2024 · 3 comments
Assignees
Labels
extension Related to the Prompty VS Code Extension

Comments

@Skyquek
Copy link

Skyquek commented Dec 18, 2024

When I run this file

{% extends "evaluation.prompty" %}

It seems like template is missing. How can I fix it?

Call Stack: Template render error: (unknown path)
  Template render error: (unknown path)
  Error: template not found: evaluation.prompty
	at Object._prettifyError (c:\Users\alex\.vscode\extensions\ms-toolsai.prompty-0.1.2024060511\packages\core\out\extension.js:3624:15)
	at c:\Users\alex\.vscode\extensions\ms-toolsai.prompty-0.1.2024060511\packages\core\out\extension.js:13969:24
	at Template2.root [as rootRenderFunc] (eval at _compile (c:\Users\alex\.vscode\extensions\ms-toolsai.prompty-0.1.2024060511\packages\core\out\extension.js:14027:22), <anonymous>:39:3)
	at Template2.render2 [as render] (c:\Users\alex\.vscode\extensions\ms-toolsai.prompty-0.1.2024060511\packages\core\out\extension.js:13964:14)
	at Environment2.renderString (c:\Users\alex\.vscode\extensions\ms-toolsai.prompty-0.1.2024060511\packages\core\out\extension.js:13835:21)
	at Object.renderString (c:\Users\alex\.vscode\extensions\ms-toolsai.prompty-0.1.2024060511\packages\core\out\extension.js:14529:19)
	at NunjucksRenderer.invokeSync (c:\Users\alex\.vscode\extensions\ms-toolsai.prompty-0.1.2024060511\packages\core\out\extension.js:18102:25)
	at NunjucksRenderer.invoke (c:\Users\alex\.vscode\extensions\ms-toolsai.prompty-0.1.2024060511\packages\core\out\extension.js:18099:37)
	at NunjucksRenderer.call (c:\Users\alex\.vscode\extensions\ms-toolsai.prompty-0.1.2024060511\packages\core\out\extension.js:17948:27)
	at _InvokerFactory.call (c:\Users\alex\.vscode\extensions\ms-toolsai.prompty-0.1.2024060511\packages\core\out\extension.js:17991:56)
	at _Prompty.prepare (c:\Users\alex\.vscode\extensions\ms-toolsai.prompty-0.1.2024060511\packages\core\out\extension.js:18182:35)
	at execute (c:\Users\alex\.vscode\extensions\ms-toolsai.prompty-0.1.2024060511\packages\core\out\extension.js:93079:47)
	at c:\Users\alex\.vscode\extensions\ms-toolsai.prompty-0.1.2024060511\packages\core\out\extension.js:93825:34
	at J_.d (file:///c:/Users/alex/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:156:32324)
	at J_.withProgress (file:///c:/Users/alex/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:156:32190)
	at Object.withProgress (file:///c:/Users/alex/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:157:47957)
	at runPrompt (c:\Users\alex\.vscode\extensions\ms-toolsai.prompty-0.1.2024060511\packages\core\out\extension.js:93769:20)
	at cw.h (file:///c:/Users/alex/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:115:32833)
	at cw.$executeContributedCommand (file:///c:/Users/alex/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:115:33683)
	at Dy.S (file:///c:/Users/alex/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:32:115275)
	at Dy.Q (file:///c:/Users/alex/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:32:115055)
	at Dy.M (file:///c:/Users/alex/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:32:114144)
	at Dy.L (file:///c:/Users/alex/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:32:113249)
	at kh.value (file:///c:/Users/alex/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:32:112046)
	at P.B (file:///c:/Users/alex/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:30:746)
	at P.fire (file:///c:/Users/alex/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:30:964)
	at Vn.fire (file:///c:/Users/alex/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:32:9457)
	at kh.value (file:///c:/Users/alex/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:175:13296)
	at P.B (file:///c:/Users/alex/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:30:746)
	at P.fire (file:///c:/Users/alex/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:30:964)
	at Vn.fire (file:///c:/Users/alex/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:32:9457)
	at MessagePortMain.<anonymous> (file:///c:/Users/alex/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:175:11588)
	at MessagePortMain.emit (node:events:518:28)
	at MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2949)
@Skyquek
Copy link
Author

Skyquek commented Dec 18, 2024

Image

Also the property base is not allowed.

@sethjuarez
Copy link
Member

Yes - this is an experimental feature that works in the python runtime but not the JavaScript runtime (which the extension uses). I am working on updating the extension to handle these cases.

@sethjuarez sethjuarez self-assigned this Jan 9, 2025
@sethjuarez sethjuarez added the extension Related to the Prompty VS Code Extension label Jan 9, 2025
@Skyquek
Copy link
Author

Skyquek commented Jan 12, 2025

@sethjuarez in our use case, we would be also using this in C# semantic kernel, hope that the fix can cater for C# based semantic kernel as well. Thanks in advance.😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension Related to the Prompty VS Code Extension
Projects
None yet
Development

No branches or pull requests

2 participants