Skip to content

[bug] sidecar: No such file or directory (os error 2) #4780

Description

@trevorparscal

Describe the bug

Appears to be similar to issue #3612.

Works in build, but not in dev.

Moving app-* (app-aarch64-apple-darwin in this case) to the src-tauri directory and changing "bin/app" to "app" did not work.

Reproduction

  1. Add a sidecar app

Relevant sections of my tauri.conf.json

{
    "tauri": {
        "allowlist": {
            "shell": {
                "sidecar": true,
                "scope": [
                    {
                        "name": "bin/app",
                        "sidecar": true
                    }
                ]
            },
            ...
        },
        "bundle": {
            "externalBin": [
                "bin/app"
            ],
            ...
        }
        ...
    }
}

And of the JavaScript...

const command = Command.sidecar( 'bin/app' );
console.log( await command.execute() );
  1. Use tauri dev
  2. See "No such file or directory (os error 2)" error in console when running command
  3. See that it works with tauri build

Expected behavior

Dev and build should behave the same.

Platform and versions

macOS 12.4 (21F79), M1 chip

tauri = { version = "1.0.5", features = ["api-all"] }

tauri-build = { version = "1.0.4", features = [] }

Stack trace

No response

Additional context

The example sidecar app only has one line, logging a string to the console.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions