-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
expected newline, found an identifier #3
Comments
Stork version 1.3 was just released and is not yet supported. The docs are at least somewhat clear that the supported version is 1.2.x, so you'll need to download and use that version until this plugin has been updated for Stork 1.3 compatibility. |
I figure I should re-open this since I have come across the same issue even after getting a compatible version. On a Debian Bullseye machine I built Stork 1.2.1 via Cargo. rustc and Cargo are both version 1.57.0. Stork itself works fine. Pelican is in a venv with Python 3.9.2, Pelican 4.7.1, and pelican-search 1.0.0 as the only plugin. All changes to my theme and I attempted to build with
|
Hi Alex. I'm sorry to hear that you're having the same problem with Stork 1.2.1. Which theme are you using? This search plugin is still new, and while I've been using it without problems for several months, it hasn't been widely exposed to against a broad range of content, themes, and settings. The first suggestion I can offer is to invoke Pelican with I also highly recommend that you test with as many "stock" components as possible. For example:
Can you try that and let me know what you discover? |
I have the same issue. Pelican version: 4.8.0 Here are my debug infos, if helpful: https://dpaste.com/35CVJ6H5F Not sure if relevant, but I noticed in |
Problem solved - my bad.
Escaping the quotes in all the article titles that had them solved the issue (eg title above in Markdown would be And my search engine is now working :) Thank you for this plugin! Really easy to implement. |
@ndeville: I'm glad you were able to resolve the issue. @oiseaumanifesto: I never got a response to my comments above, so for now I will close this issue. In the interim, I have updated the README with details for Stork 1.5, which I have successfully tested on multiple sites. I also just released v1.0.1 of this plugin, which resolves an issue with incorrect search result URLs when searching from non-home pages. |
After having merged #15, I now see a spurious backslash before double-quotation marks in the search result titles. So in my testing, the escaping added in #15 is adding a backslash where there shouldn't be one. I then locally reverted the escaping logic from #15, and the spurious backslash went away. And I didn't have any trouble with search index generation — the double-quotation marks were already escaped properly inside I'm confused as to what caused the problem reported in this issue, since I can't reproduce it. Until someone can, having already reverted #23, I am inclined to also revert the changes in #15. Can anyone reliably reproduce the reported problem with Stork v1.5.0 and cc: @s3lph |
Steps up to this point:
stork --version
reports 1.3.0.SEARCH_MODE = "output"
andSEARCH_HTML_SELECTOR = "main"
to thepelicanconf.py
file.After that I got this error.
Help! I do not understand Python at all, so I don't have any insight into the issue beyond what I have here. :( I am happy to provide additional information if requested (and given a little instruction on how).
The text was updated successfully, but these errors were encountered: