Home » Community » Newbie corner » skylark
skylark [message #57179] |
Sat, 05 June 2021 01:56 |
BetoValle
Messages: 203 Registered: September 2020 Location: Brasil Valinhos SP
|
Experienced Member |
|
|
Hi,
in tutorial example03, load with the message:
Missing template file Skylark03/index
what can be happening?
i noticed that the ide did not create a folder \Skylark03
where the created executable is located
thanks
|
|
|
|
Re: skylark [message #57616 is a reply to message #57180] |
Sat, 09 October 2021 13:35 |
Lance
Messages: 549 Registered: March 2007
|
Contributor |
|
|
Thanks for the tips. I have encountered the same problem.
from the log file(Debug/view log file), we can see a line like:
Starting Skylark, current static path: /home/lance/upp/.config/u++/theide/UppHub/Skylark;/home/lanc e/upp/uppsrc
That's where Skylark will look for static files including *.witz from.
One way to fix the problem, like suggested by you, is something like:
struct MyApp : SkylarkApp {
MyApp() {
root = "myapp";
path<<R"(;/home/lance/upp/.config/u++/theide/UppHub/Skylark/examples)";//******<---this line
#ifdef _DEBUG
prefork = 0;
use_caching = false;
#endif
}
};
Or, if you don't want to do that for all examples, you can optionally add the examples subfoler to the Skylark examples assembly folder:
Yet another way is prepend all reference to witz files and other static files with the "exmaple" subfolder, eg:
http.RenderResult("Skylark04/index");
should be revised to
http.RenderResult("examples/Skylark04/index");
Ideally, when a UppHub package is installed, option should be provided to add assembly for its corresponding tests/examples automatically (like in GUI). This will improve experience with UPP.
|
|
|
Goto Forum:
Current Time: Sat Sep 21 01:20:09 CEST 2024
Total time taken to generate the page: 0.05118 seconds
|