- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When starting a new project from any template or try to open a sample or demo, I get the error: 'Error creating project: In file ...xdk Unexpected token'. Any recommendations? Thanks.
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am not able to replicate it in 2170 or 2248. When you create from a sample, go to that project directory and you will find a file called <projectname>.xdk. Could you please copy paste the content of your .xdk file into http://jshint.com/ and see if there are any errors that it throws.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Or try uninstalling and re-installing XDK. If you have any projects please take a backup.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi. Tried de-reinstalling several times, alas to no avail. The <projectname>.xdk is corrupted on every new project I create on a template or sample. (I cannot copy the contents: it contains invalid chars). However, I did find a workaround. When I delete the <projectname>.xdk in the project and rename the <samplename>.xdk tot <project>.xdk it seems to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That is very strange. Could you PM me one of these invalid projects?
What are you referring to as projectname, samplename and project.xdk? You mean you delete the .xdk file and recreate it through an import?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, here's an example.What I did: New Project> Templates> Blank> Standard HTML. I called it 'test'. The created 'test.xdk' is corrupted. The workaround I found is using the blank-ad-project-template.xdk as test.xdk (renaming it). It is strange, though. I did update to ver. 2323, but that didn't help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have never seen a .xdk file like that. This is very interesting. Looks like your system is not recognizing the .xdk file type and some process is converting it to gibberish unicode. If you can provide me with some more information, it will be useful to help narrow down the problem.
- Where did you get the 'blank-ad-project-template.xdk' from? Was that from a Standard HTML App designer project creation? Or did you get that from the gomobile Git repo? I am assuming its from the Git repo.
- What is the operating system you are using?
- When you first create your project, what is the file size of your .xdk file before you open it? Does it change after you open it?
- What is the program you use to open the .xdk file for the first time?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Anusha,
1) The file is not from Git or any external source. It is created by XDK. I opened XDK and created a new project through projects> start new project> Templates > Blank > Standard HTML5 (+ app designer). After continuing I get the error 'Error creating project: In file test.xdk Unexpected token'. I tried different templates, samples, demo's and XDK-versions. They all give the same result: a corrupted xdk-file with the name of the project (eg. test.xdk) and a working file with the name of the template (eg. blank-ad-project-template.xdk). As a workaround renamed the last file to the project (eg: blank-ad-project-template.xdk > test.xdk)
2) Mac: OS X Yosemite
3) 4 KB. It does not change when I open it (didn't save it)
4) I first tried intel XDK. It gives Error opening project. Could not read Tests/Xdk/test In file Tests/Xdk/test/test.xdk Unexpected token. To see the contents I opened it in text editor, but did not save it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Mark,
Thank You for the information. I have escalated your issue. I will let you know as soon as I hear an update.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The file you sent contains the string com.apple.quarantine. (BTW, it appears to be UTF-16). I see no evidence of the xdk file being embedded in there, so presumably it has been squirreled away somewhere.
So it looks like anti-trojan software has got in the way somehow. I found an article (by searching for com apple quarantine) that suggested clicking on the file will cause it to give you an option to keep the file. Beyond that, however, I don't understand why the checker has taken this action, or how you stop it.
Maybe you can shed some light on that, or if you can give us details of your setup, especially with respect to security software, we may be able to reproduce it.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page