Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

no function clause matching in Meeseeks.Accumulator.One.add/3 #123

Open
fireindark707 opened this issue Apr 14, 2023 · 2 comments
Open

no function clause matching in Meeseeks.Accumulator.One.add/3 #123

fireindark707 opened this issue Apr 14, 2023 · 2 comments

Comments

@fireindark707
Copy link

I'm using some xpath like "//center[h2[@Class='chapter' and contains(text()[preceding-sibling::br],'some string')]]/following-sibling::h3[@Class='news-title']"

And here is the error:

** (FunctionClauseError) no function clause matching in Meeseeks.Accumulator.One.add/3    
    
    The following arguments were given to Meeseeks.Accumulator.One.add/3:
    
        # 1
        %Meeseeks.Accumulator.One{
          value: #Meeseeks.Result<{ <h3 class="news-title">some string</h3> }>
        }
    
        # 2
        #Meeseeks.Document<{...}>
    
        # 3
        566
    
    Attempted function clauses (showing 1 out of 1):
    
        def add(%Meeseeks.Accumulator.One{value: nil} = acc, document, id)

I'm not sure what happened, but if I removed [@Class='news-title'] at the end, meeseeks runs normally.

@mischov
Copy link
Owner

mischov commented Apr 14, 2023

Can you provide an html sample that can be used to re-create the issue?

@fireindark707
Copy link
Author

fireindark707 commented Apr 16, 2023

Can you provide an html sample that can be used to re-create the issue?

Yes, of course.

<center><h2 class="chapter">021<br>some string</h2></center>
<h3 class="news-title">some news title</h3>

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

No branches or pull requests

2 participants