Add typed causes for a rejected source and for an opaque argument value
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
Start by reading the parser’s command-name rejection path and the argument analysis types that expose Unknown with ArgKind.DynamicSkip; the issue does not name specific files or tests. Trace how ShellOpaqueCause is currently represented and exposed. Done means parse failures carry a typed reason and argument values expose the three listed opaque causes as public typed facts.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
Since 0.4.0-beta.18, the parser rejects a source with a brace list in the
command name, such as {"b":2,"nested":{"c":3}}. That is correct, because
Bash expands the word to another program and its operands. But the parser
gives the consumer only an error string. Also, a brace word in an argument
position reaches the consumer as an Unknown value with ArgKind.DynamicSkip,
the same as an arithmetic word or a command substitution. The internal
ShellOpaqueCause is not public.
Netclaw gives the agent a rewrite correction for some unresolved forms. It
needs the cause to choose the correct advice:
- A rejected source with a brace list in the command name: before beta.18,
the agent got the "run each command separately" correction. Now 30 corpus
rows of JSON text get a prompt, or an unattended denial. Netclaw must not
match the error string. git {push,fetch} origin: Netclaw now gives the general "write the command
words literally" advice, because it cannot see that the word is a brace list.
Request
- Add a typed reason to a parse failure, for example an enum value
BraceExpansionInCommandName, next to the error text. - Expose the opaque cause of an argument value as a public typed fact, for
exampleAnalyzedArgument.OpaqueCauseswith the valuesBraceExpansion,
ArithmeticExpansion, andCommandSubstitution.
Both facts are general shell syntax facts. They do not depend on a program.
Consumer
netclaw-dev/netclaw#2349, review comment 4187346461.
- Lingua principale
- C#
- Stelle
- 16
- Fork
- 0
- Merge medio
- 9h 8m
- PR unite (30g)
- 46
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Aaronontheweb/ShellSyntaxTree
-
Bash: an assignment in a loop body that reads the loop variable is not listed on later commandsApertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
Aaronontheweb/ShellSyntaxTree#249 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 57/100
Aaronontheweb/ShellSyntaxTree#244 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
Aaronontheweb/ShellSyntaxTree#235 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 38/100
Aaronontheweb/ShellSyntaxTree#227 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
Aaronontheweb/ShellSyntaxTree#190 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Aaronontheweb/ShellSyntaxTree
Issue simili
-
area:jobads-cv BE mvp P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
klasolsson81/jobbliggaren#2099 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
0 - Backlog Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
BrighterCommand/Brighter#4581 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
Esri/calcite-dotnet-toolkit#30 · 1 reazione ·
-
kind:docs simplification size:S status:todo
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
elsa-workflows/elsa-foundation#2604 ·
I maintainer di solito rispondono entro 1 giorno