|
From: | Enrico Gallus |
Subject: | [cybop-developers] Api still not generated on mac os x |
Date: | Sat, 25 Feb 2017 22:50:17 +0900 |
Hello Christian, really well done with the new knowledge path, looks flexible and seems to cover all possible cases that could arise. Sounds like a lot of work, so the Japanese would say in this situation: おつかれさまでした This time the email address should be registered in the subscription list. Therefore that we have new members from other countries, i think it is the best to stick to English rather than German. Please forgive me for any mistakes. Unfortunately the generation of the html file under mac os x is still not working. I tried several things today. I started to debug a lot in the source code, but to be honest, even having the xml documentation on the classes, doesn’t make it easy to read the code with all the var names p0-p13 and the general pointers void*. Possible that i need some time to get used to that more. But there have been some points in the code i already understood quite well. Nevertheless, i could not find the issue by debugging. I still think it is some architectural problem. I try to explain what I did to isolate the issue, I hope you can point in the right direction to help me out. (Of course i checked out the current version rev. 3651 and cleaned up using make and build it again) 1. I deleted the api.css and api.html from my hard drive to check if it will be generated newly. 2. I run src/controller/cyboi --knowledge=doc/books/cybol/api/run.cybol a) the api files have not been created 3. I started the api cybol with different log levels (btw, loglevel=debug throws an Segmentation fault:11) a) using the warning-level showed some really strange deserialising problems like: - Warning: Could not deserialise cybol encoding. The source encoding is unknown. - Warning: Could not deserialise cybol. The format is unknown. b) additionally to that it logged a lot of (really a lot of) - Error: Could not remove array. The destination index is outside the array boundaries. - Warning: Could not compare all array. The left array count is not equal to the right array count. - as well as other warnings about the arrays (if helpful i can send the whole log file) After a couple of hours debugging, i realised that i will not be able to figure out the root of the problem, but it helped me a lot to get a bit closer to the source code. I had the idea to call the cyboi without any arguments to check if this will log any issues, and even just calling cybop enrico$ src/controller/cyboi --loglevel=warning --logfile=without.txt ended up in logging four errors. do you have the same on windows/linux? Error: Could not remove array. The destination index is outside the array boundaries. Error: Could not remove array. The destination index is outside the array boundaries. Error: Could not remove array. The destination index is outside the array boundaries. Error: Could not remove array. The destination index is outside the array boundaries. My next idea was to restrict the issue by playing around with the cybol definition of the api. First thing that i was interested in was to see if the model is build correctly. I added the following snippet after the initialise node to the run.cybol to print the model: <node name="TEST" channel="inline" format="communicate/send" model=""> <node name="channel" channel="inline" format="meta/channel" model="file"/> <node name="encoding" channel="inline" format="meta/encoding" model="utf-8"/> <node name="language" channel="inline" format="meta/language" model="text/model-diagram"/> <node name="format" channel="inline" format="meta/format" model="element/part"/> <node name="message" channel="inline" format="text/cybol-path" model="."/> <node name="receiver" channel="inline" format="text/plain" model="test_api.txt"/> </node> The output was unexpectedly the following: '[selected_node] | element/part | ‘ Doesn’t look correct to me. I moved the ’Test’-Node to print the model to the app.cybol and afterwards to the logic.cybol, but there was no output file anymore. So looks like that the communicate/receive is not processed correctly. I uncommented the prints in content_element_part_cybol_deserializer.c, which gave the following output and is an proof for that the cyboi only process the run.cybol. src/controller/cyboi --knowledge=doc/books/cybol/api/run.cybol TEST content element part cybol deserialiser *slmc: 10 TEST content element part cybol deserialiser slmd: 184836616 TEST content element part cybol deserialiser *slmd: text/cybol TEST content element part cybol deserialiser sfmc: 19 TEST content element part cybol deserialiser sfmd: 953162960 TEST content element part cybol deserialiser *sfmd: communicate/receive TEST content element part cybol deserialiser fd: 1400 TEST content element part cybol deserialiser td: 70 TEST content element part cybol deserialiser *slmc: 10 TEST content element part cybol deserialiser slmd: 184836616 TEST content element part cybol deserialiser *slmd: text/cybol TEST content element part cybol deserialiser sfmc: 12 TEST content element part cybol deserialiser sfmd: 953168208 TEST content element part cybol deserialiser *sfmd: meta/channel TEST content element part cybol deserialiser fd: 491 TEST content element part cybol deserialiser td: 34 TEST content element part cybol deserialiser *slmc: 10 TEST content element part cybol deserialiser slmd: 184836616 TEST content element part cybol deserialiser *slmd: text/cybol TEST content element part cybol deserialiser sfmc: 13 TEST content element part cybol deserialiser sfmd: 953173408 TEST content element part cybol deserialiser *sfmd: meta/encoding TEST content element part cybol deserialiser fd: 492 TEST content element part cybol deserialiser td: 34 TEST content element part cybol deserialiser *slmc: 10 TEST content element part cybol deserialiser slmd: 184836616 TEST content element part cybol deserialiser *slmd: text/cybol TEST content element part cybol deserialiser sfmc: 13 TEST content element part cybol deserialiser sfmd: 953178656 TEST content element part cybol deserialiser *sfmd: meta/language TEST content element part cybol deserialiser fd: 493 TEST content element part cybol deserialiser td: 34 TEST content element part cybol deserialiser *slmc: 10 TEST content element part cybol deserialiser slmd: 184836616 TEST content element part cybol deserialiser *slmd: text/cybol TEST content element part cybol deserialiser sfmc: 11 TEST content element part cybol deserialiser sfmd: 953183904 TEST content element part cybol deserialiser *sfmd: meta/format TEST content element part cybol deserialiser fd: 494 TEST content element part cybol deserialiser td: 34 TEST content element part cybol deserialiser *slmc: 10 TEST content element part cybol deserialiser slmd: 184836616 TEST content element part cybol deserialiser *slmd: text/cybol TEST content element part cybol deserialiser sfmc: 10 TEST content element part cybol deserialiser sfmd: 953189152 TEST content element part cybol deserialiser *sfmd: text/plain TEST content element part cybol deserialiser fd: 622 TEST content element part cybol deserialiser td: 71 TEST content element part cybol deserialiser *slmc: 10 TEST content element part cybol deserialiser slmd: 184836616 TEST content element part cybol deserialiser *slmd: text/cybol TEST content element part cybol deserialiser sfmc: 15 TEST content element part cybol deserialiser sfmd: 953194464 TEST content element part cybol deserialiser *sfmd: text/cybol-path TEST content element part cybol deserialiser fd: 610 TEST content element part cybol deserialiser td: 71 TEST content element part cybol deserialiser *slmc: 10 TEST content element part cybol deserialiser slmd: 184836616 TEST content element part cybol deserialiser *slmd: text/cybol TEST content element part cybol deserialiser sfmc: 16 TEST content element part cybol deserialiser sfmd: 953199744 TEST content element part cybol deserialiser *sfmd: maintain/startup TEST content element part cybol deserialiser fd: 2001 TEST content element part cybol deserialiser td: 70 TEST content element part cybol deserialiser *slmc: 10 TEST content element part cybol deserialiser slmd: 184836616 TEST content element part cybol deserialiser *slmd: text/cybol TEST content element part cybol deserialiser sfmc: 12 TEST content element part cybol deserialiser sfmd: 953204960 TEST content element part cybol deserialiser *sfmd: meta/channel TEST content element part cybol deserialiser fd: 491 TEST content element part cybol deserialiser td: 34 TEST content element part cybol deserialiser *slmc: 10 TEST content element part cybol deserialiser slmd: 184836616 TEST content element part cybol deserialiser *slmd: text/cybol TEST content element part cybol deserialiser sfmc: 13 TEST content element part cybol deserialiser sfmd: 953210320 TEST content element part cybol deserialiser *sfmd: flow/sequence TEST content element part cybol deserialiser fd: 1702 TEST content element part cybol deserialiser td: 70 TEST content element part cybol deserialiser *slmc: 10 TEST content element part cybol deserialiser slmd: 184836616 TEST content element part cybol deserialiser *slmd: text/cybol TEST content element part cybol deserialiser sfmc: 15 TEST content element part cybol deserialiser sfmd: 953215504 TEST content element part cybol deserialiser *sfmd: text/cybol-path TEST content element part cybol deserialiser fd: 610 TEST content element part cybol deserialiser td: 71 TEST content element part cybol deserialiser *slmc: 10 TEST content element part cybol deserialiser slmd: 184836616 TEST content element part cybol deserialiser *slmd: text/cybol TEST content element part cybol deserialiser sfmc: 13 TEST content element part cybol deserialiser sfmd: 953220928 TEST content element part cybol deserialiser *sfmd: flow/sequence TEST content element part cybol deserialiser fd: 1702 TEST content element part cybol deserialiser td: 70 TEST content element part cybol deserialiser *slmc: 10 TEST content element part cybol deserialiser slmd: 184836616 TEST content element part cybol deserialiser *slmd: text/cybol TEST content element part cybol deserialiser sfmc: 15 TEST content element part cybol deserialiser sfmd: 953226112 TEST content element part cybol deserialiser *sfmd: text/cybol-path TEST content element part cybol deserialiser fd: 610 TEST content element part cybol deserialiser td: 71 TEST content element part cybol deserialiser *slmc: 10 TEST content element part cybol deserialiser slmd: 184836616 TEST content element part cybol deserialiser *slmd: text/cybol TEST content element part cybol deserialiser sfmc: 9 TEST content element part cybol deserialiser sfmd: 953231504 TEST content element part cybol deserialiser *sfmd: live/exit TEST content element part cybol deserialiser fd: 1800 TEST content element part cybol deserialiser td: 70 Information: Exit cyboi normally. Any ideas how to fix this? I really appreciate any help! Greetings from Japan Enrico
|
[Prev in Thread] | Current Thread | [Next in Thread] |