question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--commands_to_delete hangs forever

See original GitHub issue

Here’s a minimal example. If my source file includes:

\todo1{
\begin{figure}
\caption{\todo2{\emph{problem}}}
\end{figure}
}

When running:

python3.8 -m arxiv_latex_cleaner --commands_to_delete todo1 todo2 --verbose sources

It seems to hang forever on the above file. In my attempts, removing any of the todo1, todo2, figure, or emph seems to make the problem go away…

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
bradknoxcommented, Jun 5, 2022

I did a pseudo-binary search to find the problematic command and manually removed it.

I played around with just that command, trying to find a minimal example. I found that this version allows arxiv_latex_cleaner to complete but slows it down by 10x or so:

\test{Alternative: $\Psi \{\psi_{\pi_{SF}}\}$}

And this version does appear to make it hang indefinitely: \test{Alternative: $\Psi \cup \{\psi_{\pi_{SF}}\}$}

I’m running python3 -m arxiv_latex_cleaner <folder_name> --commands_to_delete test with Python 3.8.2.

0reactions
jponttusetcommented, Sep 20, 2022

Thanks so much @joellindegger for the investigation! Adding regex is perfectly fine, it’d be great if you could send a PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Removing a directory hangs - rm - Unix Stack Exchange
Removing a file or directory is an atomic operation requiring one system call, so if the rm command hangs, it's because the kernel...
Read more >
SQL Server 2008R2: 'DELETE FROM' hangs forever, but ...
DELETE FROM FILES WHERE Asset_Id = 340. And it hangs forever in the query window -- just says "Executing query...".
Read more >
Windows Explorer hangs when deleting files - Super User
Delete the files you need to delete via administrator elevated command prompt with the DEL command in order to avoid Windows Explorer from ......
Read more >
Can't delete file - Stuck on Preparing to Recycle - TechNet
1. Write down the file name you want to delete and the folder it is in. · 2. Open the Task Manager and...
Read more >
Delete script runs forever - Oracle: All versions - Tek-Tips
I'm trying to delete a single record from a table. The SQL I'm using is: DELETE FROM FOREST.CODE_LOOKUP WHERE COLU_LOOKUP_TYPE = 'ACTS' AND ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found