Apple Silicon - Dependency install aborts on missing gozip, leaving in-proc func binaries unsigned

Aperta
#9,647 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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
58/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
node.js, typescript, vscode
Ambito
backend, devtools

Direzione di ricerca

Find the dependency installation and post-install permission/signing loop that handles FuncCoreTools; the issue does not name its source file or a test. Start by locating the code that chmods the package-root gozip and review how failures are handled. Verify the fix against Core Tools 4.15.2 on Apple Silicon: installation should finish and the in-proc6 and in-proc8 func binaries should be signed and run.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

VSCode
Severity

P2 - High (Major functionality broken)

Describe the Bug with repro steps

What happens
On activation, dependency installation fails:

Failed to install FuncCoreTools after download at
~/.azurelogicapps/dependencies/FuncCoreTools:
ENOENT: no such file or directory,
chmod '~/.azurelogicapps/dependencies/FuncCoreTools/gozip'
Error in dependencies validation and installation

gozip is not at the package root in Core Tools 4.15.2. It ships at:
FuncCoreTools/in-proc6/gozip
FuncCoreTools/in-proc8/gozip

The post-install loop aborts there, so the binaries after it never get their
permissions and ad-hoc signatures applied. Result:

codesign -v FuncCoreTools/in-proc8/func
  -> "code object is not signed at all"
FuncCoreTools/in-proc8/func --version
  -> exit 137 (SIGKILL; unsigned arm64 binaries are killed by the kernel)

func itself is signed and runs. It spawns in-proc8/func as a child, the
kernel kills it instantly, and the parent exits 0 having printed nothing.

Symptoms for the user

  • "Open Designer" fails: "Timed out waiting for design-time startup ...
    after 300000 ms"
  • F5 fails: "Failed to detect running Functions host within 60 seconds"
  • func host start from a terminal: exit 0, zero bytes of output
  • Nothing in the Output channel after "Running command ... with pid: N"
  • No crash report

There is no diagnostic output anywhere unless --verbose is passed, which
reveals "Started child process with ID: N" as the last line before death.

Because the failed install re-runs on every activation, it re-extracts Core
Tools each time and strips any manual fix.

Workaround
codesign -s - --force ~/.azurelogicapps/dependencies/FuncCoreTools/in-proc8/func
codesign -s - --force ~/.azurelogicapps/dependencies/FuncCoreTools/in-proc6/func
and set
"azureLogicAppsStandard.autoRuntimeDependenciesValidationAndInstallation": false
so the reinstall stops undoing it.

Suggested fix
Look for gozip in the in-proc subfolders, or skip it when absent rather than
aborting the loop. Also worth not swallowing the post-install error — it is
currently logged once and then the extension proceeds as if dependencies
were valid.

What type of Logic App Is this happening in?

Standard (VSCode)

Are you experiencing a regression?

No response

Which operating system are you using?

MacOS

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

Screenshots or Videos

No response

Environment

Extension: ms-azuretools.vscode-azurelogicapps 5.996.0
VS Code: 1.140.0
OS: macOS 26.7.1, arm64 (Apple Silicon)
Core Tools: 4.15.2 (auto-installed by the extension)

Additional context

No response

Lingua principale
TypeScript
Stelle
114
Fork
115
Merge medio
1g 3h
PR unite (30g)
40

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure/LogicAppsUX

Tutte le issue di Azure/LogicAppsUX

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.