question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Absolute image paths don't work

See original GitHub issue

Which version of the plugin are you using? [x] Data Populator for Sketch [ ] Data Populator for Adobe XD

Describe the bug

Using absolute image paths appears not to work:

  {
    "title": "chrome.storage - Google Chrome",
    "icon": "/Volumes/Data/Work/Projects/Extensions/Tabnado/design/themes/icons/exist.png"
  },

The text populates, but the images don’t.

Using relative image paths does work though.

Expected behavior The images would be populated.

Environment (please complete the following information):

  • macOS Version: [macOS Sierra 10.12.6]
  • Sketch Version [Sketch 51.2]
  • Plugin Version [2.3.5 + 3.0.0]

Additional context I tried also tried with with file:// but that didn’t work.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
lukewarcommented, Apr 1, 2019

Yes, my bad. I thought that this path should be relative to sketch file not the JSON file. Thank you for your help.

0reactions
nitradacommented, Jun 28, 2020

We’ll add a hint to the documentation and close this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

src absolute path problem - html - Stack Overflow
First open the image in any web browser. Then copy the path and add it as image source location like this :
Read more >
Images and figures can't have absolute paths: leading slash is ...
Describe the bug Images and figures can't have absolute paths: leading slash is removed at build. To Reproduce Steps to reproduce the ...
Read more >
img src not taking absolute path - MSDN - Microsoft
data has the value : picture.jpg . it works fine no issue. ... Does img src take only relative path and not absolute...
Read more >
Relative and absolute paths, in the file system and on the web ...
On Windows, the filesystem doesn't have the common root for the whole system but split between disks, so an absolute paths starts from...
Read more >
Markdown preview doesn't render image with absolute path ...
Markdown preview doesn't render image with absolute path relative to project root · 1. Place an image in the project at assets/img.png ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found