You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This prints at the bottom of the rubocop -d output
1 error occurred:
An error occurred while VariableForce cop was inspecting /Users/me/Desktop/repo/path/to/file/file.rb.
Errors are usually caused by RuboCop bugs.
Please, report your problems to RuboCop's issue tracker.
https://github.com/rubocop-hq/rubocop/issues
Mention the following information in the issue report:
0.85.0 (using Parser 2.7.1.3, rubocop-ast 0.0.3, running on ruby 2.6.6 x86_64-darwin19)
Here is the spec file that is causing the parsing error:
# typed: false# frozen_string_literal: truerequire'features_helper'RSpec.feature'Retailer'dofeature'Filtering leads',:db,type: :featuredoinclude_context:rodauthlet!(:store)docreate:store,:fiddlesticks,retailer_id: retailer.idendbeforedoretailer_accountendscenario'3 filters are present by default and all leads show',:jsdocreate_three_leadsloginvisit ::Container['retailer.routes'].leads_pathpage.find('.leads-filter__toggle').clickpage.find('.multi-select__multi-value',text: 'Phone Call')page.find('.multi-select__multi-value',text: 'Chat')page.find('.multi-select__multi-value',text: 'Form')expect(page).tohave_selector('.leads__card',count: 3)endscenario'filter show and hide',:jsdocreate_three_leadsloginvisit ::Container['retailer.routes'].leads_pathpage.find('.leads-filter__toggle').clickexpect(page).tohave_selector('.lead-filter__container',count: 1)page.find('.lead-filter__menu-close').clickexpect(page).tohave_selector('.lead-filter__container',count: 0)endscenario'filters only phone calls leads (removing chat and form filters)',:jsdocreate_three_leadsloginvisit ::Container['retailer.routes'].leads_pathpage.find('.leads-filter__toggle').clickexpect(page).tohave_selector('.leads__card',count: 3)chat_filter=page.find('.multi-select__multi-value',text: 'Chat')form_filter=page.find('.multi-select__multi-value',text: 'Form')chat_filter.find('.multi-select__multi-value__remove').clickform_filter.find('.multi-select__multi-value__remove').clickpage.find('.lead-filter__apply').clickexpect(page).tohave_selector('.leads__card',count: 1)endscenario'filter the leads by form only (removing the chat and phone call filters)',:jsdocreate_three_leadsloginvisit ::Container['retailer.routes'].leads_pathpage.find('.leads-filter__toggle').clickchat_one_filter=page.find('.multi-select__multi-value',text: 'Chat')phones_filter=page.find('.multi-select__multi-value',text: 'Phone Call')chat_one_filter.find('.multi-select__multi-value__remove').clickphones_filter.find('.multi-select__multi-value__remove').clickpage.find('.lead-filter__apply').clickexpect(page).tohave_selector('.leads__card',count: 1)endscenario'filters the leads by chat and form only (removing phone call)',:jsdocreate_three_leadsloginvisit ::Container['retailer.routes'].leads_pathpage.find('.leads-filter__toggle').clickexpect(page).tohave_selector('.leads__card',count: 3)phones_filter=page.find('.multi-select__multi-value',text: 'Phone Call')phones_filter.find('.multi-select__multi-value__remove').clickpage.find('.lead-filter__apply').clickexpect(page).tohave_selector('.leads__card',count: 2)endscenario'clears filters after selected and show all leads',:jsdocreate_three_leadsloginvisit ::Container['retailer.routes'].leads_pathpage.find('.leads-filter__toggle').clickexpect(page).tohave_selector('.leads__card',count: 3)phone_filter=page.find('.multi-select__multi-value',text: 'Phone Call')phone_filter.find('.multi-select__multi-value__remove').clickpage.find('.lead-filter__apply').clickexpect(page).tohave_selector('.leads__card',count: 2)page.find('.lead-filter__clear').clickexpect(page).tohave_selector('.leads__card',count: 3)expect(page).tohave_selector('.multi-select__multi-value',count: 0)endscenario'refresh page with filters params filters for only chat',:jsdocreate_three_leadsloginvisit ::Container['retailer.routes'].leads_pathstringify_filters='%7B"leadCategories"%3A%5B%7B"value"%3A"CHAT"%2C"label"%3A"Chat"%7D%5D%7D'visit ::Container['retailer.routes'].leads_path(filters: stringify_filters)wait(10).fordopage.find('.leads-filter__toggle').clickpage.find('.multi-select__multi-value',text: 'Chat')expect(page).tohave_selector('.leads__card',count: 1)endenddefcreate_three_leadsattrs=Hash[store_id: store.id,retailer_id: store.retailer_id]create:lead,:variant_inquiry, **attrsstore_inquiry=create:store_inquiry,contact_method: 'floorforce_drift'lead_created=create:lead,store_inquiry_id: store_inquiry.id, **attrscreate:lead,:phone_call_with_recording, **attrsendendend
The text was updated successfully, but these errors were encountered:
Expected behavior
Rubocop should parse my file with no errors.
Actual behavior
I get an error pointing to a possible rubocop bug while VariableForce cop was inspecting my file.
Here is the very verbose stack trace for my particular file that errors out after running
rubocop -d
:This prints at the bottom of the
rubocop -d
outputHere is the spec file that is causing the parsing error:
The text was updated successfully, but these errors were encountered: