Comments (8)
Hi @kipcole9, can you please provide a repo and a command that reproduces those so i can take a look at the,?
from nimble_parsec.
from nimble_parsec.
from nimble_parsec.
And after a loooong time I'm back on this. I've added this pull request that corrects the @spec
for tag/3
and label/3
but I am still seeing dialyzer errors on calls to label/3
that I can't identify. I think this is the root of several other errors I'm seeing.
https://github.com/elixir-cldr/cldr is a repo that exhibits the issue with a single dialyzer error (I've commented out all other calls to label/3
to make this clearer). It's configured to use my fork of nimble_parsec
which has the fixes for tag/3
and label/3
specs.
Running mix dialzyer
should show a single error:
lib/cldr/language_tag/rfc5646_grammar.ex:21:call_with_opaque
The call NimbleParsec.label('Elixir.NimbleParsec':t(),<<97,32,118,97,108,105,100,32,66,67,80,45,52,55,32,108,97,110,103,117,97,103,101,32,116,97,103>>) contains an opaque term in 1st argument when terms of different types are expected in these positions}.
Apologies for keeping this issue open and inactive so long.
from nimble_parsec.
No problem at all @kipcole9! If you can figure out the warnings, please let us know and we will gladly accept PRs. :)
from nimble_parsec.
The last PR I sent fixing two @spec
s resolves the outstanding dialyzer warnings (now that I've added @spec
s to my combinators.
Closing this issue. And hoping you might consider pushing master as a new release to hex?
from nimble_parsec.
With pleasure, 0.5.1 is out. Thank you for the contributions @kipcole9, very appreciated!
from nimble_parsec.
Actually, v0.5.1 is not out, there seems to be an issue with Hex. I will publish it as soon as it is fixed.
from nimble_parsec.
Related Issues (20)
- Can't use remote combinators defined with defparsec HOT 7
- Library Abuse or Slow Compilation Times HOT 1
- `repeat_while` passing the wrong `context` in nested context
- Warning emitted by integer combinator HOT 3
- Add a default value to `optional` combinator HOT 2
- "Combinators are built during runtime" HOT 1
- When choice after repeat, not work HOT 2
- Fail to create combinator of consecutive repeats HOT 2
- No combinator for the beginning of a string
- MatchError from choice with integer and string. HOT 1
- Accept atoms as labels HOT 2
- Documentation: Error in second example under `repeat_while/4`
- NimbleParsec does not respect clauses order with OTP 26.0 (Elixir 1.14.4) HOT 3
- Potential "The pattern can never match the type." issue found by dialyxir HOT 3
- [proposal] Improve integer parsing HOT 2
- Add missing git tag for 1.3.1 HOT 1
- Nested parsec() call seems to consume error HOT 3
- takeP equivalent HOT 3
- Parse any character until HOT 3
- Add cheatsheet to documentation HOT 1
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 nimble_parsec.