Open kaby76 opened 2 years ago
hi! Yep, I can't remember but I believe that I had that CHECK_JRE_VERSION in there for debugging.
I think I point out that it requires 11 for the tool but I don't enforce it. I probably should.
I agree about the Quickstart instructions. I left a snarky comment about Windows installation not updating the path in antlr4-tools README since I wasted an hour trying to get it to work. Can you give me instructions how to just pip install these tools and type antlr4
to have it work? I tried DOS and powershell. The scripts get placed in some unbelievably mysteriously deep path and I just don't understand why software would be so ignorant as to not update the path so I could run the code.
Strange, I got the instructions from the tool page, and it just works on Windows--albeit in MSYS64.
$ pip uninstall antlr4-tools
Found existing installation: antlr4-tools 0.1
Uninstalling antlr4-tools-0.1:
Would remove:
c:\users\kenne\appdata\local\programs\python\python310\lib\site-packages\antlr4_tool_runner.py
c:\users\kenne\appdata\local\programs\python\python310\lib\site-packages\antlr4_tools-0.1-py3.10.egg-info
c:\users\kenne\appdata\local\programs\python\python310\scripts\antlr4-parse-script.py
c:\users\kenne\appdata\local\programs\python\python310\scripts\antlr4-parse.exe
c:\users\kenne\appdata\local\programs\python\python310\scripts\antlr4-script.py
c:\users\kenne\appdata\local\programs\python\python310\scripts\antlr4.exe
Proceed (Y/n)?
Successfully uninstalled antlr4-tools-0.1
Kenne@DESKTOP-DL44R7B MINGW64 /c/Users/Kenne/Documents/GitHub/Domemtech.Trash/_tests/piggy
$ antlr4
bash: antlr4: command not found
Kenne@DESKTOP-DL44R7B MINGW64 /c/Users/Kenne/Documents/GitHub/Domemtech.Trash/_tests/piggy
$ pip install antlr4-tools
Collecting antlr4-tools
Using cached antlr4-tools-0.1.tar.gz (3.4 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: install-jdk in c:\users\kenne\appdata\local\programs\python\python310\lib\site-packages (from antlr4-tools) (0.3.0)
Using legacy 'setup.py install' for antlr4-tools, since package 'wheel' is not installed.
Installing collected packages: antlr4-tools
Running setup.py install for antlr4-tools ... done
Successfully installed antlr4-tools-0.1
WARNING: You are using pip version 22.0.4; however, version 22.2.2 is available.
You should consider upgrading via the 'C:\Users\Kenne\AppData\Local\Programs\Python\Python310\python.exe -m pip install --upgrade pip' command.
Kenne@DESKTOP-DL44R7B MINGW64 /c/Users/Kenne/Documents/GitHub/Domemtech.Trash/_tests/piggy
$ which antlr4
/C/Users/Kenne/AppData/Local/Programs/Python/Python310/Scripts/antlr4
I don't recall if I manually had to set up PATH. I have another machine, and I check all this there.
Java 11 is the minimum stated here.
Thanks for checking. Maybe it's the version of windows or that you had already put it in the path I guess? Please do check on another machine if you have one. I will try again after a reboot of my windows box.
also, DOS and powershell say which
doesn't exist. Are you running a unix shell in that mingw thingie?
Of course, I'm running a Bash shell! No one with intelligence would use DOS Cmd or Powershell--unless forced to. But, I'll check those.
omg. agreed. those users should be punished.
@kaby76 Any luck with a DOS or powershell command to support the python scripts ...\local-packages\python38\scripts added to PATH?
I updated the antlr getting started documentation to use this tool set: https://github.com/antlr/antlr4/blob/master/doc/getting-started.md
For Windows:
Thanks. I’ll update doc here and antlr
I still need to change the examples on the main webpage of antlr but I'm wondering if I should do a refresh on the look of the website.