-
Notifications
You must be signed in to change notification settings - Fork 138
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
Earmark.Global.Messages
not started
#147
Comments
Thank you for reporting this. Unfortunately I am only an OTP beginner, but the decision to use an agent for error messages has been taken because failure is acceptable (within certain limits of course). My question is: Is the occasional failure a nuisance. |
The problem seems to be that earmark doesn't support being called from multiple processes concurrently. If you need to use a global, named agent I would suggest starting it in the application supervisor and storing error messages for each process instead of breaking when the agent is used from two processes concurrently. |
@RobertDober @ericmj Thanks for your support.
Personally it's a yes for me, how I occasionally got this error was calling I totally agree that failure should not fail the parsing, but in this case the error was from
I believe And actually I think all texts are valid Markdown from the parser point of view? In that case maybe we don't need error agents? |
@qcam I was not aware of this restriction, and if you can go back to 1.1 (or even 1.1.x) please do so. Well even in great programming languages like Elixir/Erlang, Clojure and Haskell, state is still an additional hassle. But I will definitely fix it, maybe getting pure again, not sure yet. |
@RobertDober Thanks for the fix ❤️ |
@RobertDober thanks. I think I'm good with 1.1.x so you can release whenever you wish. :) |
We appreciate that. |
My application uses Earmark in compile time and some times I get this error.
Have anyone encountered this before? Perhaps we need a way to supervise the agent?
The text was updated successfully, but these errors were encountered: