Add typed causes for a rejected source and for an opaque argument value
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 48/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- C#
- Estrelas
- 15
- Forks
- 0
- Merge médio
- 9h 8min
- PRs com merge (30d)
- 46
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de Aaronontheweb/ShellSyntaxTree
-
Bash: an assignment in a loop body that reads the loop variable is not listed on later commandsAbertabug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
Aaronontheweb/ShellSyntaxTree#249 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 57/100
Aaronontheweb/ShellSyntaxTree#244 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 55/100
Aaronontheweb/ShellSyntaxTree#235 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 38/100
Aaronontheweb/ShellSyntaxTree#227 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
Aaronontheweb/ShellSyntaxTree#190 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de Aaronontheweb/ShellSyntaxTree
Issues semelhantes
-
bug component/other
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 73/100
umbraco/Umbraco.AI#511 ·
Mantenedores costumam responder em até 1 dia
-
sev:L
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
Systemorph/MeshWeaver#6233 ·
Mantenedores costumam responder em até 1 dia
-
[Bug]:Abertabug needs response
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
Adyen/adyen-dotnet-api-library#1874 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
CommunityToolkit/Aspire#2231 ·
Mantenedores costumam responder em até 1 dia
-
BUG: `ExecutablePluginV2` is not set up correctly and FL uses `ExecutablePlugin` (v1) insteadAbertabug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
Flow-Launcher/Flow.Launcher#4697 ·
Mantenedores costumam responder em até 4 dias