Skip to content

Note tiles try to read an undefined file path and fail with ENOENT #126

Description

@BearHuddleston

Summary

Creating or opening a note tile causes the app to try to read a file path of undefined, which fails with an ENOENT from the desktop file bridge.

Observed error:

Error: Error invoking remote method 'fs:readfile': Error: ENOENT: no such file or directory, open 'C:\Users\arkouda\AppData\Local\Programs\Collaborator\undefined'

Reproduction

  1. Create a note tile via the collab canvas tools/UI.
  2. Open or render the tile.
  3. The app attempts to read a file path and throws the ENOENT above.

What I observed

  • A code tile includes a real filePath in its tile metadata.
  • A note tile does not include filePath.
  • The failing path resolves exactly like a missing filePath is being passed into the desktop fs:readfile bridge and normalized into the Collaborator app directory.

Expected behavior

note tiles should be treated as in-memory content, or otherwise avoid file reads unless a valid backing path exists.

Likely fix

Guard file-backed tile loading by tile type and reject missing filePath before calling fs:readfile. In particular, note should not flow through the same file-loading path as code/other file-backed tiles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions