Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Conversation

connorshea
Copy link
Contributor

@connorshea connorshea commented Mar 16, 2019

Previously, the globPattern used in rake.ts was failing to find Rakefiles if they were named Rakefile, without the .rb` extension. This fixes the globPattern so now it matches in that case.

This has the downside of also matching any filename that starts with Rakefile, e.g. Rakefile2 or Rakefileadsadadsad, but I'm not sure of a great way to fix this without that downside.

If you select Task: Run Task in the Command Palette you can see the difference (note the workspace needs to have a file named Rakefile, Rakefile.rb will be detected without this change).

Before:

Screen Shot 2019-03-15 at 10 19 23 PM

After:
Screen Shot 2019-03-15 at 10 15 51 PM

This fixes #273.

  • The build passes
  • TSLint is mostly happy
  • Prettier has been run

Previously, the globPattern used in rake.ts was failing to find Rakefiles
if they were named 'Rakefile', without the .rb extension. This fixes the
globPattern so now it matches in that case.

This has the downside of also matching any filename that starts with
Rakefile, e.g. 'Rakefile2' or 'Rakefileadsadadsad', but I'm not sure of
a great way to fix this without that downside.
@connorshea
Copy link
Contributor Author

@wingrunr21 sorry for the ping, can this fix be merged? :)

@wingrunr21 wingrunr21 merged commit 14cd956 into rubyide:master May 4, 2019
@connorshea connorshea deleted the fix-rake-task-detection branch May 4, 2019 15:57
@connorshea
Copy link
Contributor Author

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't get rake auto-detection to work
2 participants