def-gthill / lexurgy

A high-powered sound change applier
GNU General Public License v3.0
46 stars 5 forks source link

Lexurgy CLI loops indefinitely #78

Closed Wofi closed 4 months ago

Wofi commented 4 months ago

Hello, when I try to run the Lexurgy CLI to apply sound changes, it loops until I close the cmd window or terminate with ctrl-c:

C:\Users\wofi\Desktop\lang>lexurgy sc changes.lsc words.wli

C:\Users\wofi\Desktop\lang>lexurgy sc changes.lsc words.wli

C:\Users\wofi\Desktop\lang>lexurgy sc changes.lsc words.wli

C:\Users\wofi\Desktop\lang>lexurgy sc changes.lsc words.wli

C:\Users\wofi\Desktop\lang>lexurgy sc changes.lsc words.wli

I am running windows 10. I have lexurgy installed into C:\Users\wofi\Desktop\tools\lexurgy\bin and added to my PATH.

The files passed into the program are as follows:

changes.lsc

rewrite:
 j => i
 then: ŭ => u

words.wli

Ĉiuj

Any help will be much appreciated!

def-gthill commented 4 months ago

Having trouble reproducing this. I tried it with CMD and PowerShell and GitBash, all on Windows 10. I also tried both giving the path to the executable explicitly and adding the bin directory to PATH. Everything worked as expected.

To confirm, did you see this with Lexurgy 1.6.0 or an earlier version?

Wofi commented 4 months ago

This is with 1.6.0. I've tried using both an Oracle version of Java 12 and a Zulu version of Java 8 (just what I had lying around) and I had the issue with both versions.

def-gthill commented 4 months ago

What shell are you using?

Wofi commented 4 months ago

The default windows cmd.exe, I don't think I've done anything weird to it. I get the same issue when I run the command using a .bat file.

def-gthill commented 4 months ago

What happens if you run lexurgy --help?

Wofi commented 4 months ago

Oh, I figured out what the issue was! I had a lexurgy.bat in the folder, so when I tried to run lexurgy, it was running the .bat, which then would try to run lexurgy.bat (instead of the lexurgy in the path), so it was looping forever. It seems to work fine now that I've renamed the .bat. My mistake! Thank you for the help!

def-gthill commented 4 months ago

Glad to hear you figured it out!