Giter Site home page Giter Site logo

Comments (12)

sunner avatar sunner commented on June 4, 2024

Could you try gcc -D_MOODLE_ONLINE_JUDGE_ -Wall -static -o hello hello.c -lm and send the file hello along with judge/sandbox/sand/policy.c to [email protected] ? Thank u

from moodle-local_onlinejudge.

sunner avatar sunner commented on June 4, 2024

Are you using 64bit Linux? If yes, try the latest code please.

from moodle-local_onlinejudge.

weezel avatar weezel commented on June 4, 2024

Yes, I am using Linux 64bit. Sorry for completely forgetting to give arch related information.

That made it, cheers! But there's an another thing now: When the file is compiled and evaluated, in the place "Details: Case 1: Accepted (info-button)", it gives the following error when pressing info-button:
Coding error detected, it must be fixed by a programmer: The course you passed to $PAGE->set_cm does not correspond to the $cm.

from moodle-local_onlinejudge.

weezel avatar weezel commented on June 4, 2024

For "restricted functions", case solved, thus -> close issue. Thanks!

from moodle-local_onlinejudge.

sunner avatar sunner commented on June 4, 2024

You are not the first one who reports the $cm problem. But I can not reproduce it on my site.

Could you increase the debug level of your site and retry. Moodle should output more details about this problem. Paste the details and the url of info-button here, please.

Thank you.

from moodle-local_onlinejudge.

weezel avatar weezel commented on June 4, 2024

Finally I had time to debug it. It seems to have something related to our custom theme. I am still finding the way to repair it but I suppose it's mainly because of our theme. Thanks anyway.

from moodle-local_onlinejudge.

weezel avatar weezel commented on June 4, 2024

Confirmed it's a bug in our theme, case closed.

from moodle-local_onlinejudge.

sunner avatar sunner commented on June 4, 2024

Could you provide more details? Since it is the only page meets this problem, probably I can do something to improve its compatibility. Thanks.

from moodle-local_onlinejudge.

weezel avatar weezel commented on June 4, 2024

Yes, sure. This was the fix we needed in our theme https://github.com/MoodleCodeCheck/ohop/commit/c11020e46b9bd011c6bd22d64d08c0c9e02586df

And here is the full stack trace:
line 3361 of /lib/navigationlib.php: call to moodle_page->set_cm()
line 2838 of /lib/navigationlib.php: call to settings_navigation->load_module_settings()
line 601 of /lib/pagelib.php: call to settings_navigation->initialise()
line 617 of /lib/pagelib.php: call to moodle_page->magic_get_settingsnav()
line 2607 of /lib/navigationlib.php: call to moodle_page->__get()
line 2638 of /lib/navigationlib.php: call to navbar->has_items()
line 2300 of /lib/outputrenderers.php: call to navbar->get_items()
line 93 of /theme/ohop/layout/general.php: call to core_renderer->navbar()
line 654 of /lib/outputrenderers.php: call to include()
line 612 of /lib/outputrenderers.php: call to core_renderer->render_page_layout()
line ? of unknownfile: call to core_renderer->header()
line 1291 of /lib/setuplib.php: call to call_user_func_array()
line ? of unknownfile: call to bootstrap_renderer->__call()
line 58 of /local/onlinejudge/details.php: call to bootstrap_renderer->header()

And ohop-theme can be obtained from here: https://github.com/MoodleCodeCheck/ohop

from moodle-local_onlinejudge.

weezel avatar weezel commented on June 4, 2024

thank you once again :) btw. we are working on a finnish version of the online judge so be aware that you will receive a pull request anytime soon :)

from moodle-local_onlinejudge.

sunner avatar sunner commented on June 4, 2024

Hi weezel!

Nothing. Just say hello and I really appreciate your finnish version. ;-)

from moodle-local_onlinejudge.

weezel avatar weezel commented on June 4, 2024

Hello Sunner!

The joy is on my side :) Sorry for the delay but the translation should have been already done a week ago. Unfortunately I am not responsible for it so I cannot either have affect on that.

And thousand thanks for the snappy responses and even snappier fixes :)

from moodle-local_onlinejudge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.