Comments (4)
It is unclear what it could be because the tester uses the latest available.
antlr4/.github/workflows/hosted.yml
Line 247 in 380ce4b
we recommend always setting Python version explicitly using the python-version or python-version-file inputs
). In addition, to properly qualify a version range, you need to test each and every version in a range of versions in a test matrix in Github Actions workflow. In grammars-g4, I set the version explicitly to 3.10 because I had problems with version 3.8. https://github.com/antlr/grammars-v4/blob/153d66809d26425e5ac49cec77294f034d99eb0b/.github/workflows/main.yml#L113 However, that may be because some of the grammars have base class support code that relies on 3.10, and not with the generated parsers themselves. I don't test a range because it takes a long time to do this testing with each PR. And it can be expensive.from antlr4.
Thanks for the response @kaby76, it's raised some further questions.
The plugin itself recommends setting an explicit version: (
we recommend always setting Python version explicitly using the python-version or python-version-file inputs
).
Where'd you find that line? The readme for the Python target doesn't seem to have that text in it and I'm unsure what a 'plugin' is in the ANTLR ecosystem. Also don't get any code matches on a Github search.
In addition, to properly qualify a version range, you need to test each and every version in a range of versions in a test matrix in Github Actions workflow. ... I don't test a range because it takes a long time to do this testing with each PR. And it can be expensive.
Hmm yeah having a look at the GitHub actions it looks like this repo is using one giant sequential job for the bulk of the Workflow. I feel like there'd be huge benefit in making a larger number of small jobs, but that's probably a different ticket.
The kind of code I'm proposing removal of (if 3.6 is minimum supported) is blocks like
from antlr4.
Where'd you find that line?
Sorry, it is from https://github.com/actions/setup-python , the first big paragraph under "Basic usage".
Yes, validating the supported versions of a runtime environment is another problem. The change in the Antlr source code is also something that needs to be fixed with the correct value or removed.
from antlr4.
Sorry, it is from https://github.com/actions/setup-python , the first big paragraph under "Basic usage".
Ah I misunderstood; thought you were talking about ANTLR suggesting pinning Python.
from antlr4.
Related Issues (20)
- [Go] Can not use BailErrorStrategy since ParseCancellationException is not implement HOT 2
- Issue with using ANTLR4 from Julia via PyCall
- [TypeScript target] I would like to know how to create a custom visitor in TypeScript. HOT 4
- C++ warning + fix HOT 2
- Error with books source examples in chapter 4
- Unable to customize error messages on top of error messages generated by ANTLR4 Parser HOT 1
- [go] performance downgrade a lot after upgrade antlr from 4.9 to 4.13.1 HOT 8
- [C++] Building grammar with rule named "match" causes errors
- JavaScript runtime fails to parse input that can be parsed by `grun` with same grammar HOT 1
- Regex
- Go target: missing constructor call to the superclass of the generated parser or lexer HOT 2
- limits like DIGIT {min,max} in patterns HOT 1
- antlr4 lacks automatic module name, which is inconsistent to antlr4-runtime
- ANTLR 4.2 and later fail to report error with mislocated 'assoc'
- ANLTR4 Pascal target for parsing Pascal Object Notation HOT 8
- TSQL select query not parsed when it inside the quotes
- [go target] Build errors with PartiQL parser HOT 8
- setErrorHandler method is missing from Parser class in TypeScript target
- _sharedContextCache is not thread safe
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antlr4.