Timeout due to https://search.maven.org/ being unreachable
https://github.com/antlr/antlr4-tools/blob/10a090aab6ec70217d1d8aa0c2f16c9f1e425861/antlr4_tool_runner.py#L26-L27
Facing timeout at L26 antlr4_tool_runner.py since https://search.maven.org/ users are now redirected to https://central.sonatype.com/
Reference:
https://central.sonatype.org/faq/what-happened-to-search-maven-org/#what-about-the-searchmavenorg-api
The link used in antlr4_tool_runner.py: https://search.maven.org/solrsearch/select?q=a:antlr4-master+g:org.antlr is unreachable.
Thanks. Could you send a pull request?
@parrt Hello, I did the PR for this issue: https://github.com/antlr/antlr4-tools/pull/19. Can you look at it? Thanks
antlr4 python is unusable again because there's an outage with https://status.maven.org/ (and would still be the case if central.sonatype.com/ went down).
This should be a soft failure with antlr4, warning instead of erroring out. --help and --version should work even if maven is down, and we also should have a --skip-version-check cmdline option.
I started to fix this, then realised TimeoutError is already added and committed[1] but not released. So currently, users via pip will see:
...
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.12.5/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1104, in read
return self._sslobj.read(len, buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TimeoutError: The read operation timed out
instead of
Could not get latest version number, attempting to fall back to latest downloaded version...
Found version '4.13.2', this version may be out of date
Could we get an updated release on pip please? This would fix this issue and https://github.com/antlr/antlr4/issues/4703
[1] https://github.com/antlr/antlr4-tools/commit/ee5c134b07c3e9a107131535155b2afedce492e2#diff-21162dbe8ccb0f459c574307a41c0452f7b910d7540de6642549b0c810690989L31
@parrt #20
Thanks
Fixed by #20
Sorry for the delay. I released 0.2.2 which should include the fixed to avoid maven timeouts.
On Fri, Oct 4, 2024 at 4:46 AM moogman @.***> wrote:
antlr4 python is unusable again because there's an outage with https://status.maven.org/ (and would still be the case if central.sonatype.com/ went down).
This should be a soft failure with antlr4, warning instead of erroring out. --help and --version should work even if maven is down, and we also should have a --skip-version-check cmdline option.
— Reply to this email directly, view it on GitHub https://github.com/antlr/antlr4-tools/issues/18#issuecomment-2393518520, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABLUWNY4HQ3CWROB4X2AILZZZ5YLAVCNFSM6AAAAABOQE4QJ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJTGUYTQNJSGA . You are receiving this because you were mentioned.Message ID: @.***>
-- Dictation in use. Please excuse homophones, malapropisms, and nonsense.
Sorry for the delay. I released 0.2.2 which should include the fixed to avoid maven timeouts.