ruby / ruby/rake

Rake not executing some tasks, gives "Invoke <task>s (first_time, not_needed)"

Open
#69 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
2.5k
Forks
650
Avg merge
6m
Merged PRs (30d)
3

Description

I posted a SO question about his issue here. Most of the background is there. Here's the gist:

I have a task called :run that takes one argument, :filter. Depending on what I pass as the argument, it will sometimes execute with the trace:

** Invoke run (first_time)
** Execute run

Other times it doesn't execute at all, giving the trace:

** Invoke runs (first_time, not_needed)

Notice that when it fails, the trace says runs and not run even though run is the task typed in the command.

This happens when I run the rakefile in some directories, but not others.

Using:

  • ruby 2.0.0p645 (2015-04-13) [i386-mingw32]
  • rake, version 10.4.2
  • Window 7

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Stack Overflow question and reproduce the behavior using the mentioned Rakefile, the :run task, and its :filter argument. Compare runs from the directories where the trace differs, focusing on why the trace changes from run to runs and reports not_needed. Done means the task executes consistently with the expected trace across those directories.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
build-system, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.