04-27-2018 07:55
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-27-2018 07:55
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I'm having an odd issue the Studio I'm getting the following errors when running my app from Fitbit Studio:
- [HOST][10:31:34 AM]App Closed
- [10:31:34 AM]Error 2 Invalid path 'C:/Users/~/AppData/Local/Programs/@fitbitsimulator/resources/static/runjs-ionic/./resources/screens/@.�$� �\ew
- [10:31:34 AM]Error 22 Invalid value ''
- [HOST][10:31:34 AM]App Started
What caused the errors is I moved some of the my screens to a sub folder in resources (and updated the hrefs where needed). If I move the files out of the sub folder the messages stop.
Even with the messages the app works without issue on both the an actual Versa and in the Simulator.
And there are no build errors.
Answered! Go to the Best Answer.
Accepted Solutions
04-30-2018 01:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


04-30-2018 01:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
It seems like you were importing the same files repeatedly in many gui files. That seems to fix the error.
I have created a PR with a few other fixes. https://github.com/grumpy-coders/pointy/pull/1/files

04-27-2018 10:58
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


04-27-2018 10:58
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Probably need to see the project structure and gui file contents. Can you put it on github?

04-28-2018 09:54
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-28-2018 09:54
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I'll get it posted to Github this weeked.

04-28-2018 16:22
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-28-2018 16:22
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I am getting the same error...

04-29-2018 05:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-29-2018 05:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
That makes at least two of us 🙂
I have posted my app to get hub ( https://github.com/grumpy-coders/pointy ). It was requested above. I had planned on hosting it there anyways, but hadn't gotten to it yet.

04-29-2018 05:18
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-29-2018 05:18
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I have posted it to get hub: https://github.com/grumpy-coders/pointy

04-30-2018 01:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


04-30-2018 01:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
It seems like you were importing the same files repeatedly in many gui files. That seems to fix the error.
I have created a PR with a few other fixes. https://github.com/grumpy-coders/pointy/pull/1/files

04-30-2018 08:06 - edited 04-30-2018 08:07
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-30-2018 08:06 - edited 04-30-2018 08:07
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
That worked great.
Just make sure I'm coding this correctly.
When using the same imported widget across multiple files the "link" should go into the widgets.gui and not in each of the gui files?

04-30-2018 08:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


04-30-2018 08:08
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Yeah, import once and it's available everywhere.
05-27-2018 14:51
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-27-2018 14:51
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Well, in my case, it is different.
I have a clock face, and I made it available on Ionic and Versa. So, here is my widgets gui file:
<svg>
<defs>
<link rel="stylesheet" href="styles.css" />
<link rel="stylesheet" href="circles.css" />
<link rel="stylesheet" href="styles~300x300.css" />
<link rel="stylesheet" href="circles~300x300.css" />
<link rel="import" href="/mnt/sysassets/widgets_common.gui" />
</defs>
</svg>
And I get this error:

05-27-2018 15:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

05-27-2018 15:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Ha! Replying to myself...finally figured out that I don't need to list BOTH sets of files in my widget.gui files. Whew! Duh...
It says so in the docs, but I guess my mind was wandering...
Works fine now!

