{"action":"closed","issue":{"url":"https://api.github.com/repos/tangrams/tangram-es/issues/1059","repository_url":"https://api.github.com/repos/tangrams/tangram-es","labels_url":"https://api.github.com/repos/tangrams/tangram-es/issues/1059/labels{/name}","comments_url":"https://api.github.com/repos/tangrams/tangram-es/issues/1059/comments","events_url":"https://api.github.com/repos/tangrams/tangram-es/issues/1059/events","html_url":"https://github.com/tangrams/tangram-es/issues/1059","id":187036496,"number":1059,"title":"Cannot load files specified with relative paths","user":{"login":"westnordost","id":4661658,"avatar_url":"https://avatars.githubusercontent.com/u/4661658?v=3","gravatar_id":"","url":"https://api.github.com/users/westnordost","html_url":"https://github.com/westnordost","followers_url":"https://api.github.com/users/westnordost/followers","following_url":"https://api.github.com/users/westnordost/following{/other_user}","gists_url":"https://api.github.com/users/westnordost/gists{/gist_id}","starred_url":"https://api.github.com/users/westnordost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/westnordost/subscriptions","organizations_url":"https://api.github.com/users/westnordost/orgs","repos_url":"https://api.github.com/users/westnordost/repos","events_url":"https://api.github.com/users/westnordost/events{/privacy}","received_events_url":"https://api.github.com/users/westnordost/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-03T11:37:33Z","updated_at":"2016-12-09T16:01:06Z","closed_at":"2016-12-09T16:01:06Z","body":"I was trying to load the Tron 2.0 style (unbundled) on Android and got a bunch of errors. The root problem here seems to be that Tangram is unable to find files that are referenced in paths that include `../`, like they can be found plentiful in the Tron style when blocks, images etc. are imported.\r\n\r\nTangram then reports the error:\r\n\r\n```\r\nD/Tangram: Failed to open asset at path: tron/styles/../blocks/geometry/normal.yaml\r\n```\r\n\r\nI am guessing the problem is, that any paths specified in a scene file (be it `import` or a texture definition) are interpreted by Tangram-JS as relative to the file the statement is written while Tangram-ES interprets the paths as relative to the main scene file.\r\nIf my assumption is correct, then any \"modern\" style that organizes its components into several folders rather than put everything in one scene.yaml will not work on Tangram-ES."}}
{"actor":{"display_login":"tallytalwar"}}