Rake not executing some tasks, gives "Invoke <task>s (first_time, not_needed)"
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 32/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- ruby
- Domain
- build-system, cli
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.
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
- Dominant language
- Ruby
- Stars
- 2.5k
- Forks
- 649
- Avg merge
- 4m
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ruby/rake
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
rake -P output is ambiguous with prereq namespacesPossibly taken @leoarnold claimed this 110 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
-
Difficulty 5/5 Over a week Newbie friendliness 28/100
-
FileList#<< bypasses exclusions while FileList#include respects themPossibly taken @hsbt claimed this 124 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 45/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
cline/mcp-marketplace#3886 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
jetrockets/recorder#61 ·
-
PROJECT: website-redesign
Difficulty 1/5 Under an hour Newbie friendliness 72/100
thewca/worldcubeassociation.org#16617 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day