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 · 1 comment
Open

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant