`--matlabLaunchCommandArgs` does not accept value starting with "-" (Not enough arguments following)

Aberta
#78 8 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
45/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Estagnada
Stack de tecnologia
node.js, typescript
Domínio
cli

Direção de pesquisa

Faça o build de out/index.js e reproduza os dois comandos da issue; em seguida, inspecione o parsing dos argumentos da CLI para --matlabLaunchCommandArgs. Verifique se valores que começam com '-' são aceitos e repassados como outras strings, enquanto o comando existente continua iniciando normalmente.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

bug

Describe the bug
When passing a value starting with - to --matlabLaunchCommandArgs, the server exits with a Not enough arguments following: matlabLaunchCommandArgs error, while other strings work as expected.

To Reproduce
From the repository root (after building out/index.js):

  1. Run:

    node out/index.js --stdio --matlabLaunchCommandArgs "xxx"
    

    The server starts normally.

  2. Then run:

    node out/index.js --stdio --matlabLaunchCommandArgs "-xxx"
    

    The process exits with the following error (or similar):

    Not enough arguments following: matlabLaunchCommandArgs
    

Expected behavior
--matlabLaunchCommandArgs should accept arbitrary strings as its value, including strings that start with - (e.g. "-xxx"), and pass them through to MATLAB in the same way as "xxx".

Useful Information

  • MATLAB-language-server: current main (commit: 6c7e6b4)
  • Node.js: v24.11.1

Additional context
This looks like the value is not being counted as an argument for matlabLaunchCommandArgs, but I am not sure whether this is intended behavior or a bug in how the CLI options are parsed.

If you need additional information or logs, I can provide them.

Linguagem predominante
TypeScript
Estrelas
128
Forks
20
Merge médio
1d 55min
PRs com merge (30d)
1

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de mathworks/MATLAB-language-server

Todas as issues de mathworks/MATLAB-language-server

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.