mathieudutour / mathieudutour/git-sketch-plugin

Unable to create diff files – Error: EISDIR

Open
#231 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
2.4k
Forks
119
PR merge metrics
No merged PRs in 30d

Description

After upgrading from 0.11.x to o.12.x
I am getting the following error, every time I save or I try to create diff files.

> Failed…
> Error: EISDIR: illegal operation on a directory, read
> '/users/[…]/[sketch_files_path]/.exportedArtboards/[file_name]/input'

![Screenshot 2020-05-07 at 11 08 28](https://user-images.githubusercontent.com/4033737/81277188-5bcc7500-9054-11ea-9c68-09668639c8f0.png)

It seems the problem is with the name of my symbols in the document:
> input/primary-btn
> input/alt-btn

After some searching, I found this:
> "EISDIR means that the target of the operation is a directory in reality but that the expected filetype of the target is something other than a directory."

Is there a way to solve this problem or is it a bug with the plugin?
When I revert to 0.11 I have no problems.

Sketch version 65.1
macOS 10.15.4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce saving or creating diff files with symbols named input/primary-btn and input/alt-btn, focusing on the .exportedArtboards/[file_name]/input path shown in the error. Trace how those symbol names become exported paths and verify the fix against Sketch 65.1 on macOS by confirming diff files can be created without EISDIR.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.