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

NoMethodError at / undefined method `length' for nil:NilClass #139

Open
doronbehar opened this issue Oct 26, 2019 · 4 comments
Open

NoMethodError at / undefined method `length' for nil:NilClass #139

doronbehar opened this issue Oct 26, 2019 · 4 comments

Comments

@doronbehar
Copy link

So today I wanted to test drive the application. I cloned the repo, Ran make run, and got the following error when opening http://localhost:5678/ in the browser:

 application error
NoMethodError at /
undefined method `length' for nil:NilClass

    file: delimiter.rb location: parse line: 192 

This is copied from the web interface, I'd have liked to print a full backtrace but I'm not sure where I'm supposed to get it from, as the web interface doesn't seem to provide a plaintext version of it..

I read at #100 that taskwarrior needs to be installed. Is it installed in the docker image? Will running the application with this method will use my ~/.taskrc and it's included files?

@jwynn6
Copy link

jwynn6 commented Dec 21, 2019

bumped, same issue.

@zesaver
Copy link

zesaver commented Dec 24, 2019

I have the same

@bitroniq
Copy link

Same here, even on empty .task/

@bitroniq
Copy link

I found a root cause of this bug - it is due to wrong docker volume or empty ~/.task and/or ~/.taskrc - Especially when using taskwarrior-web in a docker.

This is the docker-compose.yml that works for me I displays correctly the tasks:

cat docker-compose.yml

version: '3'

services:
  app:
    build:
      context: .
      dockerfile: Dockerfile
    ports:
    - 5678:5678
    deploy:
      restart_policy:
        condition: always
    volumes:
    - ~/.task:/root/.task

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

4 participants