Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » skylark
skylark [message #57179] Sat, 05 June 2021 01:56 Go to next message
BetoValle is currently offline  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 #57180 is a reply to message #57179] Sat, 05 June 2021 04:33 Go to previous messageGo to next message
BetoValle is currently offline  BetoValle
Messages: 203
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member

ok, i solved this problem by putting in the parameter "path", the parent directory where the .witz files are located.

Thanks
Re: skylark [message #57616 is a reply to message #57180] Sat, 09 October 2021 13:35 Go to previous message
Lance is currently offline  Lance
Messages: 526
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:
index.php?t=getfile&id=6514&private=0

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.
Previous Topic: Build with no preset comper/linker switches
Next Topic: Avoid Copy when adding a Tuple to a VectorMap
Goto Forum:
  


Current Time: Fri Apr 19 18:13:04 CEST 2024

Total time taken to generate the page: 0.01946 seconds