theunraveler / taskwarrior-web

A web interface for the Taskwarrior todo application. Because being a neckbeard is only fun sometimes.
http://theunraveler.github.com/taskwarrior-web
MIT License
532 stars 60 forks source link

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

Open doronbehar opened 5 years ago

doronbehar commented 5 years ago

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 commented 4 years ago

bumped, same issue.

zesaver commented 4 years ago

I have the same

bitroniq commented 3 years ago

Same here, even on empty .task/

bitroniq commented 3 years ago

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