mathieudutour / mathieudutour/git-sketch-plugin
Unable to create diff files – Error: EISDIR
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'

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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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