Software Archive
Read-only legacy content

When I delete a old project and reopen a new project with the same name of old project, the old setting is come back

Matrix_Lee
Beginner
348 Views

When I delete a old project and reopen a new project with the same name of old project, the old setting is come back.

How can I remove old project totally, so I can open a new project with the same name.

I am using blank HTML5+Cordova with app designer mode to create a new project.

For example I have an old project is in bootstrap mode app designer,
when I remove the old project and reopen a new project in the same name, it will automatically choose bootstrap, and I cannot choose other app designer.

Thank you .

 

0 Kudos
7 Replies
PaulF_IntelCorp
Employee
348 Views

When you delete a project it doesn't delete the files. When you create a new project with the same name, if the old one is there it just reuses it, so you need to remove the existing project files (or rename the old project folder) if you want to reuse an already used project name.

0 Kudos
Matrix_Lee
Beginner
348 Views

This problem was happened when even I have removed the old folder.

It will still remember the settings and effect the same name new project.

That's why I feel strange to ask the problem.

Thank you for your help.

0 Kudos
PaulF_IntelCorp
Employee
348 Views

You're correct. I just reproduced it. I'll file a bug report.

0 Kudos
Matrix_Lee
Beginner
348 Views

Thank you.

0 Kudos
Matrix_Lee
Beginner
348 Views

It seems the problem solved, right?

0 Kudos
PaulF_IntelCorp
Employee
348 Views

Matrix -- the problem has not been solved, it has been identified. There is a bug request filed, but it is not clear when it will be fixed. In the meantime, there is a workaround:

IMPORTANT!! Pay very close attention to the commas on the line preceding the "framework" line, this file must be a valid JSON file when you are done or the XDK will not read it properly!!! I highly advise you make a copy before editing this file!!!!

In other words, change the entries from something like this:

...
    "FILE-/Users/myname/Documents/XDK/notifiers-ad-af/index.html": {
      "canvas_width": 414,
      "canvas_height": 480,
      "framework": "app framework"
    },
    "FILE-/Users/myname/Documents/XDK/demo-app-framework/index.html": {
      "canvas_width": 320,
      "canvas_height": 480
    },
    "FILE-/Users/myname/Documents/XDK/test-ad-jquery/index.html": {
      "canvas_width": 320,
      "canvas_height": 556,
      "framework": "app framework"
    },
...

to something like this:

...
    "FILE-/Users/myname/Documents/XDK/notifiers-ad-af/index.html": {
      "canvas_width": 414,
      "canvas_height": 480
    },
    "FILE-/Users/myname/Documents/XDK/demo-app-framework/index.html": {
      "canvas_width": 320,
      "canvas_height": 480
    },
    "FILE-/Users/myname/Documents/XDK/test-ad-jquery/index.html": {
      "canvas_width": 320,
      "canvas_height": 556
    },
...

IMPORTANT!! Pay very close attention to the commas on the line preceding the "framework" line, this file must be a valid JSON file when you are done or the XDK will not read it properly!!! I highly advise you make a copy before editing this file!!!!

0 Kudos
Matrix_Lee
Beginner
348 Views

Dear Paul,

Thank you very much.

 Matrix

0 Kudos
Reply