Comments (4)
Hi, I just did complgen check
on the usage file you posted and it doesn't report any errors. Also the jit
subcommand output looks good:
$ cargo run -- jit usage/hyprctl.usage bash
Finished dev [unoptimized + debuginfo] target(s) in 0.03s
Running `target/debug/complgen jit usage/hyprctl.usage bash`
--batch
--instance
-i
-j
activewindow
activeworkspace
animations
workspaces
I just added the version
subcommand. Could you please re-install the latest master of complgen and post the output of complgen version
here?
There may be some invisible characters in your usage file that get lost during copy-paste. The off-the-mark error message would support that. If you upload the usage file as some archive (tar, zip) here, I can check.
from complgen.
Did you push your commits? It still says the last commit was yesterday.
When I run the latest git master version of complgen, I get this output:
~/src/complgen ./target/release/complgen --help
Usage: complgen <COMMAND>
Commands:
check Do not complete -- only check a grammar file for errors
jit Emit completions on stdout
aot Write autocompletions shell script file
scrape Read `cmd --help` output of another command and emit a grammar
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
Also, here is my file.
hyprctl.usage.renamed_extension_for_github_embed.log
from complgen.
Now it's pushed, sorry. I will check your usage file, thanks
from complgen.
The larger file that you uploaded triggered the issue. There was a bug in error reporting (thus the off the mark error message) plus another one in checking in grammar ambiguities that. Both are fixed now.
The minimal-ish reproducing example lives in a e2e test case to avoid this in the future:
complgen/e2e/test_validation.py
Lines 32 to 42 in 0df6f4d
Thanks for reporting! It is a interesting edge case I hadn't thought of!
from complgen.
Related Issues (20)
- Eliminate redundant edges for subwords in DOT output
- Friendlier parsing error messages
- `complgen scrape` should output grammars using the "distributive descriptions" feature
- [bash] Words containing a colon not completed correctly HOT 2
- Bash integration not working for `--color=(always|never)` HOT 9
- zsh completion doesn't add space after choose a word HOT 4
- usage/complgen.usage is producing warnings HOT 2
- Completion for ZSH doesn't work in default path HOT 7
- Warning: Final DFA contains ambiguous transitions
- Bash: Respect `completion-ignore-case` readline setting
- JIT: Execute external command lazily based on the fallbacks order
- Implement fallback completions (`||`) in AOT mode
- Milestone: Rough feature parity with `git-completion.bash`
- [FR] <PATH> behaviour inconsistent with non-complgen path completion HOT 4
- how to use external command to generate a list of available values with decriptions HOT 3
- Unable to use subword completion HOT 7
- Tag v0.2.0 doesn't update Cargo version HOT 1
- Release 0.2.0 introduces breaking changes when git is not present HOT 3
- Representing multiple exclusive words separated by , HOT 4
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 complgen.