yaworsw / euler-manager Goto Github PK
View Code? Open in Web Editor NEWStart, run, and test your project Euler solutions from the command line.
License: MIT License
Start, run, and test your project Euler solutions from the command line.
License: MIT License
Since we include lib/euler.*
files in templates we should probably create these files when a person runs the new
for the first time for that language.
I'm using Ubuntu 18.04 on Windows 10 using WSL.
When I try to run or test my solutions, without sudo, I get the error /var/lib/gems/2.5.0/gems/euler-manager-0.2.0/languages/julia.rb:4: warning: Insecure world writable dir /mnt/c in PATH, mode 040777
. With sudo, I get the error error: no implicit conversion of nil into String. Use --trace to view backtrace
.
The trace reads
Traceback (most recent call last):
12: from /var/lib/gems/2.5.0/gems/commander-4.4.7/lib/commander/import.rb:5:in `block in <top (required)>'
11: from /var/lib/gems/2.5.0/gems/commander-4.4.7/lib/commander/delegates.rb:15:in `run!'
10: from /var/lib/gems/2.5.0/gems/commander-4.4.7/lib/commander/runner.rb:68:in `run!'
9: from /var/lib/gems/2.5.0/gems/commander-4.4.7/lib/commander/runner.rb:446:in `run_active_command'
8: from /var/lib/gems/2.5.0/gems/commander-4.4.7/lib/commander/command.rb:153:in `run'
7: from /var/lib/gems/2.5.0/gems/commander-4.4.7/lib/commander/command.rb:182:in `call'
6: from /var/lib/gems/2.5.0/gems/euler-manager-0.2.0/bin/euler:20:in `block (2 levels) in <top (required)>'
5: from /var/lib/gems/2.5.0/gems/euler-manager-0.2.0/lib/euler.rb:110:in `params_from_dir_or_args'
4: from /var/lib/gems/2.5.0/gems/euler-manager-0.2.0/lib/euler.rb:120:in `parse_params_from_directory'
3: from /var/lib/gems/2.5.0/gems/euler-manager-0.2.0/lib/euler.rb:81:in `method_missing'
2: from /var/lib/gems/2.5.0/gems/euler-manager-0.2.0/config/config.rb:35:in `block (2 levels) in <top (required)>'
1: from /var/lib/gems/2.5.0/gems/euler-manager-0.2.0/lib/euler.rb:91:in `root'
Running a ruby example fails on requiring a non-existing file. I encountered the same behaviour not only with gem version 0.2.0, but also with current master.
Scenario:
igneus@pittiplatsch:~/euler$ gem install euler-manager
Fetching: euler-manager-0.2.0.gem (100%)
Successfully installed euler-manager-0.2.0
Parsing documentation for euler-manager-0.2.0
Installing ri documentation for euler-manager-0.2.0
Done installing documentation for euler-manager after 0 seconds
1 gem installed
igneus@pittiplatsch:~/euler$ euler init
igneus@pittiplatsch:~/euler$ euler new 1 ruby
Done initializing empty ruby solution for
#1 - Multiples of 3 and 5
igneus@pittiplatsch:~/euler$ euler run 1 ruby
/home/igneus/euler/1/ruby/1.rb:1:in `require_relative': cannot load such file -- /home/igneus/euler/lib/euler.rb (LoadError)
from /home/igneus/euler/1/ruby/1.rb:1:in `<main>'
$ euler init
invalid command. Use --help for more information
Because of this, I can't do anything else. Ruby version 2.0.0, Ubuntu 14.04.
¿Any ideas?
It would be cool to have more programming language support. if you know a language that isn't supported add it!
Hi there,
I just installed your gem and tried running euler new
in a directory that I created and also created an empty Eulerfile.rb
in. I'm getting an error when I run it:
error: No such file or directory @ rb_sysopen
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.