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

'IgnoreParser' object has no attribute 'parse_rule_file' #22

Closed
1 of 3 tasks
cloewen8 opened this issue May 17, 2021 · 0 comments
Closed
1 of 3 tasks

'IgnoreParser' object has no attribute 'parse_rule_file' #22

cloewen8 opened this issue May 17, 2021 · 0 comments

Comments

@cloewen8
Copy link

  • **I'm submitting a ... **

    • bug report
    • feature request
    • support request
  • Do you want to request a feature or report a bug?

Report a bug.

  • What is the current behavior?
    The example in the README appears to be incorrect or outdated. The parse_rule_file does not appear to exist. If I attempt to use this function, Python raises an error: AttributeError: 'IgnoreParser' object has no attribute 'parse_rule_file'.

  • **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
    Running Python in a directory with a .gitignore file:

>>> import igittigitt
>>> parser = igittigitt.IgnoreParser()
>>> parser.parse_rule_file(".gitignore")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'IgnoreParser' object has no attribute 'parse_rule_file'
  • What is the expected behavior?
    I can't find any parse_rule_file function in the source code. Guessing parse_rule_files is the intended function to use.
>>> parser.parse_rule_files(pathlib.Path('/home/bitranox/project/'))
  • What is the motivation / use case for changing the behavior?
    I spent way too long trying to get this inexistant function working, And I'd rather no one else ever has to go through the pain again.

  • Please tell us about your environment:

  • Release Number of the Repository used : v2.0.4
  • Python Version : 3.9
  • OS, OS Version : Windows 10, build 20H2
  • Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow
    , gitter, etc)
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