Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

an attempt to make a plugin #7

Closed
nkgsv opened this issue Sep 23, 2014 · 5 comments
Closed

an attempt to make a plugin #7

nkgsv opened this issue Sep 23, 2014 · 5 comments

Comments

@nkgsv
Copy link

nkgsv commented Sep 23, 2014

Hi! I tried to create a plugin, but it seems that something goes wrong. So, I've created a box in Nitrous and changed folder to ~/workspace/stepic-plugins/stepic_plugins. Then executed ./conf_nitrous.sh.
This has led to the following error message:

Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'                                                                                                 
Storing debug log for failure in /home/action/.pip/pip.log

So I just copied requirements.txt from the parent folder and re-launched ./conf_nitrous.sh. This time a server has started, but the preview looks strange:
stepic plugin
On my local computer it looks the same way. Have I done something wrong or it is supposed to be this way? Thanks!

@H1D
Copy link
Contributor

H1D commented Sep 24, 2014

That's definitely not how it supposed to work. Sorry, we are in a middle of huge refactoring. We'll try to hotfix this today

@H1D
Copy link
Contributor

H1D commented Sep 24, 2014

fixed layout in 36b672a
a bit better now
image

@H1D
Copy link
Contributor

H1D commented Sep 24, 2014

separated Nitro.us issue #8

Sorry, that's all we can do for now.

Also pay attention that only simple-choice, free-answer, sorting and number quizzes working with test server for now. Others tightly coupled with Stepic codebase. Upcoming refactoring should fix that.

Meanwhile don't be scared by this refactoring. Current API wouldn't be changed a lot but extended

@H1D H1D closed this as completed Sep 24, 2014
@nkgsv
Copy link
Author

nkgsv commented Sep 24, 2014

Thanks! Now it works.
One more remark: when I choose an answer and press Submit nothing happens.
I mean there is no message like "your answer is right/wrong"...
The buttons Save Quiz and New Attempt work fine:
stepic plugin

@H1D
Copy link
Contributor

H1D commented Sep 24, 2014

@nkgsv fixed 3afaa0c. Now you have Log section at the bottom. Also you can use browser console to see what's going on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants