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

fix error when parsing config file #820

Closed
wants to merge 1 commit into from

Conversation

jschank
Copy link
Contributor

@jschank jschank commented May 18, 2021

YAML parser returns wrong number of arguments(given 4, expected 1),
this fix removes the extra parameters, while still passing in the
allowAliases flag.

YAML parser returns wrong number of arguments(given 4, expected 1),
this fix removes the extra parameters, while still passing in the
allowAliases flag.
@ethagnawl
Copy link
Member

Thanks for putting this together @jschank. Do you or anyone else know what the underlying problem is? I've only been able to dedicate a few minutes to this, but haven't been able to reproduce it and don't understand why the CI passes. In the meantime, until someone figures out what the underlying problem is, I wonder if YAML.method(:safe_load).arity could be used to paper over the problem?

@jschank
Copy link
Contributor Author

jschank commented May 25, 2021 via email

@ethagnawl
Copy link
Member

There's been a lot of churn in the Psych library relating to this method, but I'm still not clear on what exactly changed (in libyaml or Psych) and when.

But this fix seems to work ok.

Right, but it breaks the CI build. Granted, those failures were for versions of Ruby which have been EOL'd. If that winds up being the "best" fix, then we'll need to properly drop support for those versions of Ruby.

@jschank
Copy link
Contributor Author

jschank commented May 25, 2021 via email

@ethagnawl
Copy link
Member

Any thoughts on this, @tmuxinator/tmuxinator? I haven't had time to do a deep dive on the underlying issue or whether we should integrate this PR as-is and deprecate versions of Ruby which fail CI as a result or try to find a more backwards compatible approach.

@jschank
Copy link
Contributor Author

jschank commented Jun 1, 2021 via email

@ethagnawl
Copy link
Member

@jschank Which version of libyaml are you seeing this problem with?

If you don't happen to know, you should be able to use one of the following:

  • run this one-liner from your shell: ruby -e 'require "psych"; v=Psych.libyaml_version; puts(v.join(", "))')
  • apt list --installed | grep libyaml

@jschank
Copy link
Contributor Author

jschank commented Jun 4, 2021 via email

@ethagnawl
Copy link
Member

Ah, okay. I thought you were on Ubuntu. For whatever it's worth, I'm not seeing the issue with libyaml 0.2.1 (Debian) or 0.2.2 (Ubuntu).

Anyways, I've taken a pass at deprecating the EOL'd Ruby versions that were causing the CI build to fail. Have a look at #823 and let me know if you have any feedback. Thanks for getting the ball rolling on this fix!

@jschank
Copy link
Contributor Author

jschank commented Jun 4, 2021 via email

@ethagnawl
Copy link
Member

Closed by #823.

@ethagnawl ethagnawl closed this Jun 7, 2021
@pbek
Copy link

pbek commented Jun 7, 2021

@ethagnawl, do you know when there will be a new release?

@ethagnawl
Copy link
Member

@pbek I just published 3.0.0.

@pbek
Copy link

pbek commented Jun 7, 2021

Great, thank you. I will test it with the next release of https://github.com/pbek/QOwnNotes 😉

@pbek
Copy link

pbek commented Jun 13, 2021

I can confirm version 3.0.0 works again! Thank you very much!

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

Successfully merging this pull request may close these issues.

None yet

3 participants