Software Archive
Read-only legacy content

Cannot create projects - unexpected token

Uitlegentekst
Beginner
1,583 Views

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.

 

 

 

0 Kudos
9 Replies
Anusha_M_Intel1
Employee
1,583 Views

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. 

0 Kudos
Amrita_C_Intel
Employee
1,583 Views

Or try uninstalling and re-installing XDK. If you have any projects please take a backup.

0 Kudos
Uitlegentekst
Beginner
1,583 Views

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.

 

 

 

0 Kudos
Anusha_M_Intel1
Employee
1,583 Views

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?

0 Kudos
Uitlegentekst
Beginner
1,583 Views

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. 

 

 

 

0 Kudos
Anusha_M_Intel1
Employee
1,583 Views

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.

  1. 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.
  2. What is the operating system you are using?
  3. 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?
  4. What is the program you use to open the .xdk file for the first time?

 

 

0 Kudos
Uitlegentekst
Beginner
1,583 Views

 

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. 

 

0 Kudos
Anusha_M_Intel1
Employee
1,584 Views

Hi Mark,

Thank You for the information. I have escalated your issue. I will let you know as soon as I hear an update.

0 Kudos
DAVID_M_Intel2
Employee
1,584 Views

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. 

 

0 Kudos
Reply