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


Current Time: Thu Sep 19 09:04:13 CEST 2024

Total time taken to generate the page: 0.05134 seconds