Skip to content
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

Excluded rules still imported #882

Open
tjwelde opened this issue Feb 6, 2019 · 0 comments
Open

Excluded rules still imported #882

tjwelde opened this issue Feb 6, 2019 · 0 comments

Comments

@tjwelde
Copy link

tjwelde commented Feb 6, 2019

The Fuck 3.28 using Python 3.7.2 and Fish Shell 2.7.1

Your system (Debian 7, ArchLinux, Windows, etc.):

macOS 10.14.2

How to reproduce the bug:

  • execute fuck with debug on

The output of The Fuck with THEFUCK_DEBUG=true exported (typically execute export THEFUCK_DEBUG=true in your shell before The Fuck):

DEBUG: Run with settings: {'alter_history': True,
 'debug': True,
 'env': {'GIT_TRACE': '1', 'LANG': 'C', 'LC_ALL': 'C'},
 'exclude_rules': ['apt_get',
                   'apt_get_search',
                   'apt_invalid_operation',
                   'apt_list_upgradable',
                   'apt_upgrade',
                   'adb_unknown_command',
                   'ag_literal'],
 'history_limit': None,
 'instant_mode': False,
 'no_colors': False,
 'num_close_matches': 3,
 'priority': {},
 'repeat': False,
 'require_confirmation': True,
 'rules': [<const: All rules enabled>],
 'slow_commands': ['lein', 'react-native', 'gradle', './gradlew', 'vagrant'],
 'user_dir': PosixPath('/Users/user/.config/thefuck'),
 'wait_command': 3,
 'wait_slow_command': 15}
DEBUG: Execution timed out!
DEBUG: Call: fuck; with env: {'Apple_PubSub_Socket_Render': '/private/tmp/com.apple.launchd.Kj4HGoNWqL/Render', 'COLORFGBG': '15;0', 'COLORTERM': 'truecolor', 'COMMAND_MODE': 'unix2003', 'DISPLAY': '/private/tmp/com.apple.launchd.Sf6EgF2gVH/org.macosforge.xquartz:0', 'GOPATH': '/Users/user/Development/go', 'HOME': '/Users/user', 'ITERM_PROFILE': 'Colorful', 'ITERM_SESSION_ID': 'w1t0p0:6103EE51-B85E-40B1-8069-4AAE6B391CC7', 'LC_CTYPE': 'UTF-8', 'LOGNAME': 'user', 'OMF_CONFIG': '/Users/user/.config/omf', 'OMF_PATH': '/Users/user/.local/share/omf', 'PATH': '/Users/user/.composer/vendor/bin:/Applications/DevDesktop/drush:/Applications/DevDesktop/php7_1_x64/bin:/Users/user/.yarn/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/MacGPG2/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Library/TeX/texbin:/Applications/Wireshark.app/Contents/MacOS:/Applications/MAMP/Library/bin:/Users/user/Development/go/bin:/Users/user/.cargo/bin', 'PWD': '/Users/user', 'SECURITYSESSIONID': '186a8', 'SHELL': '/usr/local/bin/fish', 'SHLVL': '1', 'SSH_AUTH_SOCK': '/private/tmp/com.apple.launchd.biiGxnAktX/Listeners', 'TERM': 'xterm-256color', 'TERM_PROGRAM': 'iTerm.app', 'TERM_PROGRAM_VERSION': '3.2.7', 'TERM_SESSION_ID': 'w1t0p0:6103EE51-B85E-40B1-8069-4AAE6B391CC7', 'THEFUCK_DEBUG': 'true', 'TMPDIR': '/var/folders/lb/n_lbycfn0gs5cq6d2vsz3gpr0000gn/T/', 'USER': 'user', 'XPC_FLAGS': '0x0', 'XPC_SERVICE_NAME': '0', '__CF_USER_TEXT_ENCODING': '0x1F5:0x0:0x0', 'TF_SHELL': 'fish', 'TF_ALIAS': 'fuck', 'PYTHONIOENCODING': 'utf-8', 'LC_ALL': 'C', 'LANG': 'C', 'GIT_TRACE': '1'}; is slow:  took: 0:00:03.014516
DEBUG: Importing rule: adb_unknown_command; took: 0:00:00.000593
DEBUG: Importing rule: ag_literal; took: 0:00:00.001340
DEBUG: Importing rule: apt_get; took: 0:00:00.003373
DEBUG: Importing rule: apt_get_search; took: 0:00:00.001947
DEBUG: Importing rule: apt_invalid_operation; took: 0:00:00.002920
DEBUG: Importing rule: apt_list_upgradable; took: 0:00:00.000827
DEBUG: Importing rule: apt_upgrade; took: 0:00:00.000777
DEBUG: Importing rule: aws_cli; took: 0:00:00.000609
DEBUG: Importing rule: az_cli; took: 0:00:00.000585
DEBUG: Importing rule: brew_cask_dependency; took: 0:00:00.000991
DEBUG: Importing rule: brew_install; took: 0:00:00.000236
DEBUG: Importing rule: brew_link; took: 0:00:00.000450
DEBUG: Importing rule: brew_reinstall; took: 0:00:00.000990
DEBUG: Importing rule: brew_uninstall; took: 0:00:00.000507
DEBUG: Importing rule: brew_unknown_command; took: 0:00:00.000366
DEBUG: Importing rule: brew_update_formula; took: 0:00:00.000649
DEBUG: Importing rule: cargo; took: 0:00:00.000371
DEBUG: Importing rule: cargo_no_command; took: 0:00:00.002753
DEBUG: Importing rule: cat_dir; took: 0:00:00.000862
DEBUG: Importing rule: cd_correction; took: 0:00:00.002207
DEBUG: Importing rule: cd_mkdir; took: 0:00:00.000883
DEBUG: Importing rule: cd_parent; took: 0:00:00.000360
DEBUG: Importing rule: chmod_x; took: 0:00:00.000460
DEBUG: Importing rule: composer_not_command; took: 0:00:00.001137
DEBUG: Importing rule: cp_omitting_directory; took: 0:00:00.001012
DEBUG: Importing rule: cpp11; took: 0:00:00.000604
DEBUG: Importing rule: dirty_untar; took: 0:00:00.003544
DEBUG: Importing rule: dirty_unzip; took: 0:00:00.002581
DEBUG: Importing rule: django_south_ghost; took: 0:00:00.000299
DEBUG: Importing rule: django_south_merge; took: 0:00:00.000294
DEBUG: Importing rule: dnf_no_such_command; took: 0:00:00.001710
DEBUG: Importing rule: docker_not_command; took: 0:00:00.001072
DEBUG: Importing rule: dry; took: 0:00:00.000256
DEBUG: Importing rule: fab_command_not_found; took: 0:00:00.000816
DEBUG: Importing rule: fix_alt_space; took: 0:00:00.000761
DEBUG: Importing rule: fix_file; took: 0:00:00.003910
DEBUG: Importing rule: gem_unknown_command; took: 0:00:00.000990
DEBUG: Importing rule: git_add; took: 0:00:00.001147
DEBUG: Importing rule: git_add_force; took: 0:00:00.000446
DEBUG: Importing rule: git_bisect_usage; took: 0:00:00.000477
DEBUG: Importing rule: git_branch_delete; took: 0:00:00.000470
DEBUG: Importing rule: git_branch_exists; took: 0:00:00.000534
DEBUG: Importing rule: git_branch_list; took: 0:00:00.000552
DEBUG: Importing rule: git_checkout; took: 0:00:00.000546
DEBUG: Importing rule: git_commit_amend; took: 0:00:00.000580
DEBUG: Importing rule: git_diff_no_index; took: 0:00:00.000533
DEBUG: Importing rule: git_diff_staged; took: 0:00:00.000439
DEBUG: Importing rule: git_fix_stash; took: 0:00:00.000504
DEBUG: Importing rule: git_flag_after_filename; took: 0:00:00.000413
DEBUG: Importing rule: git_help_aliased; took: 0:00:00.000414
DEBUG: Importing rule: git_merge; took: 0:00:00.000416
DEBUG: Importing rule: git_merge_unrelated; took: 0:00:00.000521
DEBUG: Importing rule: git_not_command; took: 0:00:00.000451
DEBUG: Importing rule: git_pull; took: 0:00:00.000572
DEBUG: Importing rule: git_pull_clone; took: 0:00:00.000439
DEBUG: Importing rule: git_pull_uncommitted_changes; took: 0:00:00.000437
DEBUG: Importing rule: git_push; took: 0:00:00.000432
DEBUG: Importing rule: git_push_different_branch_names; took: 0:00:00.000448
DEBUG: Importing rule: git_push_force; took: 0:00:00.000418
DEBUG: Importing rule: git_push_pull; took: 0:00:00.000481
DEBUG: Importing rule: git_push_without_commits; took: 0:00:00.000681
DEBUG: Importing rule: git_rebase_merge_dir; took: 0:00:00.000488
DEBUG: Importing rule: git_rebase_no_changes; took: 0:00:00.000336
DEBUG: Importing rule: git_remote_delete; took: 0:00:00.000432
DEBUG: Importing rule: git_remote_seturl_add; took: 0:00:00.000432
DEBUG: Importing rule: git_rm_local_modifications; took: 0:00:00.000512
DEBUG: Importing rule: git_rm_recursive; took: 0:00:00.000789
DEBUG: Importing rule: git_rm_staged; took: 0:00:00.000559
DEBUG: Importing rule: git_stash; took: 0:00:00.000749
DEBUG: Importing rule: git_stash_pop; took: 0:00:00.000609
DEBUG: Importing rule: git_tag_force; took: 0:00:00.000659
DEBUG: Importing rule: git_two_dashes; took: 0:00:00.000633
DEBUG: Importing rule: go_run; took: 0:00:00.000485
DEBUG: Importing rule: gradle_no_task; took: 0:00:00.000824
DEBUG: Importing rule: gradle_wrapper; took: 0:00:00.000424
DEBUG: Importing rule: grep_arguments_order; took: 0:00:00.000402
DEBUG: Importing rule: grep_recursive; took: 0:00:00.000383
DEBUG: Importing rule: grunt_task_not_found; took: 0:00:00.000681
DEBUG: Importing rule: gulp_not_task; took: 0:00:00.000454
DEBUG: Importing rule: has_exists_script; took: 0:00:00.000389
DEBUG: Importing rule: heroku_multiple_apps; took: 0:00:00.000409
DEBUG: Importing rule: heroku_not_command; took: 0:00:00.000552
DEBUG: Importing rule: history; took: 0:00:00.000218
DEBUG: Importing rule: hostscli; took: 0:00:00.000596
DEBUG: Importing rule: ifconfig_device_not_found; took: 0:00:00.000504
DEBUG: Importing rule: java; took: 0:00:00.000793
DEBUG: Importing rule: javac; took: 0:00:00.000642
DEBUG: Importing rule: lein_not_task; took: 0:00:00.000654
DEBUG: Importing rule: ln_no_hard_link; took: 0:00:00.000439
DEBUG: Importing rule: ln_s_order; took: 0:00:00.000430
DEBUG: Importing rule: long_form_help; took: 0:00:00.000227
DEBUG: Importing rule: ls_all; took: 0:00:00.000450
DEBUG: Importing rule: ls_lah; took: 0:00:00.000637
DEBUG: Importing rule: man; took: 0:00:00.000719
DEBUG: Importing rule: man_no_space; took: 0:00:00.000504
DEBUG: Importing rule: mercurial; took: 0:00:00.000760
DEBUG: Importing rule: missing_space_before_subcommand; took: 0:00:00.000387
DEBUG: Importing rule: mkdir_p; took: 0:00:00.003036
DEBUG: Importing rule: mvn_no_command; took: 0:00:00.001306
DEBUG: Importing rule: mvn_unknown_lifecycle_phase; took: 0:00:00.000610
DEBUG: Importing rule: no_command; took: 0:00:00.000766
DEBUG: Importing rule: no_such_file; took: 0:00:00.000351
DEBUG: Importing rule: npm_missing_script; took: 0:00:00.001096
DEBUG: Importing rule: npm_run_script; took: 0:00:00.000565
DEBUG: Importing rule: npm_wrong_command; took: 0:00:00.000725
DEBUG: Importing rule: open; took: 0:00:00.000619
DEBUG: Importing rule: pacman; took: 0:00:00.000880
DEBUG: Importing rule: pacman_not_found; took: 0:00:00.000212
DEBUG: Importing rule: path_from_history; took: 0:00:00.000294
DEBUG: Importing rule: php_s; took: 0:00:00.000499
DEBUG: Importing rule: pip_unknown_command; took: 0:00:00.000680
DEBUG: Importing rule: port_already_in_use; took: 0:00:00.000481
DEBUG: Importing rule: prove_recursively; took: 0:00:00.000490
DEBUG: Importing rule: python_command; took: 0:00:00.000559
DEBUG: Importing rule: python_execute; took: 0:00:00.000480
DEBUG: Importing rule: quotation_marks; took: 0:00:00.000406
DEBUG: Importing rule: react_native_command_unrecognized; took: 0:00:00.000570
DEBUG: Importing rule: remove_trailing_cedilla; took: 0:00:00.000205
DEBUG: Importing rule: rm_dir; took: 0:00:00.000415
DEBUG: Importing rule: rm_root; took: 0:00:00.000407
DEBUG: Importing rule: scm_correction; took: 0:00:00.000456
DEBUG: Importing rule: sed_unterminated_s; took: 0:00:00.000545
DEBUG: Importing rule: sl_ls; took: 0:00:00.000218
DEBUG: Importing rule: ssh_known_hosts; took: 0:00:00.000539
DEBUG: Importing rule: sudo; took: 0:00:00.000451
DEBUG: Importing rule: sudo_command_from_user_path; took: 0:00:00.000777
DEBUG: Importing rule: switch_lang; took: 0:00:00.000418
DEBUG: Importing rule: systemctl; took: 0:00:00.001345
DEBUG: Importing rule: test.py; took: 0:00:00.001148
DEBUG: Importing rule: tmux; took: 0:00:00.001156
DEBUG: Importing rule: touch; took: 0:00:00.000563
DEBUG: Importing rule: tsuru_login; took: 0:00:00.000455
DEBUG: Importing rule: tsuru_not_command; took: 0:00:00.000437
DEBUG: Importing rule: unknown_command; took: 0:00:00.000217
DEBUG: Importing rule: unsudo; took: 0:00:00.000210
DEBUG: Importing rule: vagrant_up; took: 0:00:00.000528
DEBUG: Importing rule: whois; took: 0:00:00.000786
DEBUG: Importing rule: workon_doesnt_exists; took: 0:00:00.000620
DEBUG: Importing rule: yarn_alias; took: 0:00:00.000458
DEBUG: Importing rule: yarn_command_not_found; took: 0:00:00.000892
DEBUG: Importing rule: yarn_command_replaced; took: 0:00:00.000621
DEBUG: Importing rule: yarn_help; took: 0:00:00.000457
DEBUG: Trying rule: dirty_unzip; took: 0:00:00.000132
No fucks given
DEBUG: Total took: 0:00:04.752746

Anything else you think is relevant:

Importing rules, which are excluded still takes time away. I want to not load them at all.

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

No branches or pull requests

1 participant