--commands_to_delete hangs forever
See original GitHub issueHere’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:
- Created a year ago
- Reactions:1
- Comments:6 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.Thanks so much @joellindegger for the investigation! Adding
regex
is perfectly fine, it’d be great if you could send a PR.