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

xml2 locks the XML file if the file has XML syntax error #382

Closed
jmendys opened this issue Feb 22, 2023 · 2 comments
Closed

xml2 locks the XML file if the file has XML syntax error #382

jmendys opened this issue Feb 22, 2023 · 2 comments

Comments

@jmendys
Copy link

jmendys commented Feb 22, 2023

Steps to reproduce

  1. Create an XML file with an invalid structure for example
  2. Open the file with xml2::read_xml() command

Expected behavior:

  • an error is displayed
  • the process is terminated

Actual behavior:

  • an error is displayed
  • the input XML file is locked (can't be modified or deleted) until R session is restarted (the process seems to continue in the background in a separate thread)
  • if you keep calling xml2::read_xml() the R studio will eventually crash.
@hadley
Copy link
Member

hadley commented Oct 30, 2023

I think this is likely an interaction between libxml2 and windows that unfortunately there's nothing we can do about.

@hadley hadley closed this as completed Oct 30, 2023
@hadley
Copy link
Member

hadley commented Oct 30, 2023

Actually this looks like #376

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

2 participants