-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
plugins/spectre: set freeformType for engine options #1952
Conversation
Thanks for you contribution! However, due to If you're unable to define the config then that means we have a bigger issue such as a sub-option blocking access to the freeformType. |
I'm not sure if it is a freeform option. To reproduce, I've modified the plugin test like this: diff --git a/tests/test-sources/plugins/utils/spectre.nix b/tests/test-sources/plugins/utils/spectre.nix
index 5cb545c2..8ee2ce8a 100644
--- a/tests/test-sources/plugins/utils/spectre.nix
+++ b/tests/test-sources/plugins/utils/spectre.nix
@@ -249,6 +249,7 @@ in
replace_engine = {
sed = {
cmd = "sed";
+ warn = false;
args = [
"-i"
"-E" Running the test with
|
I've updated this PR to set the missing freeformType option instead. The above test now works. |
warn
engine optionThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much better! Small discussion point that may or may not need changing, then I think we're good to merge.
Also: minor nit on the commit message, we don't usually include the full verbose path plugins/utils/spector:
; usually `plugins/spector: would be fine 😀
There's a few tests failing (even after I tried a rebuild). Struggling to read the logs on my phone though, so you may have to investigate on your own for now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems tests all good now!
Did you want to rebase and get full commit attribution?
@Mergifyio queue |
🛑 The pull request has been removed from the queue
|
8fbb7c8
to
4d415dc
Compare
Great, thanks. I don't want to rebase - let's get it in! |
@Mergifyio refresh |
✅ Pull request refreshed |
@Mergifyio queue |
🛑 The pull request has been removed from the queue
|
4d415dc
to
4d6d3bd
Compare
@Mergifyio refresh |
✅ Pull request refreshed |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 4d6d3bd |
This adds the
warn
engine option to be able to silence messages when an executable is missing from the PATH. See nvim-pack/nvim-spectre#242 for the upstream change.