Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Losing code when toggling Code/Design view #61

Closed
monkeybrau opened this issue Jul 30, 2014 · 15 comments
Closed

Losing code when toggling Code/Design view #61

monkeybrau opened this issue Jul 30, 2014 · 15 comments
Assignees

Comments

@monkeybrau
Copy link

I noticed this issue between 7/29/2014 and 7/30/2014. If you just navigate to a fresh designer view you can reproduce it: http://www.polymer-project.org/tools/designer/

Drag a Core Card onto the page, click to toggle code/design view and examine the code. Click again to return to design view and your canvas will be blank. Click to code view again and your code is gone. I am seeing this in Chrome 36.0.1985.125m (today's latest) and Firefox 31 (if that's interesting.)

Upon toggling back from code view to design view, the following exception is caught in the Chrome dev console:

Exception caught during observer callback: TypeError: undefined is not a function
at x-meta.Polymer.ensureMeta (http://www.polymer-project.org/tools/designer/components/x-meta/x-meta.html:151:47)
at design-host.Polymer.loadElementImports (http://www.polymer-project.org/tools/designer/elements/design-host/design-host.html:122:22)
at design-host.Polymer.loadHtml (http://www.polymer-project.org/tools/designer/elements/design-host/design-host.html:96:12)
at design-canvas.Polymer.loadHtml (http://www.polymer-project.org/tools/designer/elements/design-canvas/design-canvas.html:549:21)
at design-frame.Polymer.loadHtml (http://www.polymer-project.org/tools/designer/elements/design-frame/design-frame.html:62:19)
at designer-element.Polymer.loadHtml (http://www.polymer-project.org/tools/designer/elements/designer-element/designer-element.html:434:19)
at designer-element.Polymer.codeToDesign (http://www.polymer-project.org/tools/designer/elements/designer-element/designer-element.html:332:10)
at designer-element.Polymer.selectedChanged (http://www.polymer-project.org/tools/designer/elements/designer-element/designer-element.html:277:12)
at designer-element.g.invokeMethod (http://www.polymer-project.org/tools/designer/components/polymer/polymer.js:12:13312)
at designer-element.g.notifyPropertyChanges (http://www.polymer-project.org/tools/designer/components/polymer/polymer.js:12:11598)

@sorvell
Copy link

sorvell commented Jul 30, 2014

Can confirm the issue. The version of designer on the web site needs to be updated.

@64BitAsura
Copy link

I am also experiencing same issue in chrome Version 36.0.1985.125 m on windows vista

@ebidel
Copy link
Contributor

ebidel commented Jul 30, 2014

We pushed an update yesterday that installs designer from the latest release version:

bower install Polymer/designer
cd designer
bower install

This error repos for me locally after running a server. A new release should clear up the API changes between master/release.

@ebidel
Copy link
Contributor

ebidel commented Jul 30, 2014

bower install Polymer/designer#master
cd designer
bower install

clears this up for Chrome, but under the polyfill there are errors:

screen shot 2014-07-30 at 11 34 05 am

@sorvell
Copy link

sorvell commented Jul 30, 2014

@Larceniii
Copy link

Yea, it's blowing up on me too, both my own designer, and the hosted demo designer.
It erased my entire gist and I've been trying to load it back to a previous gist, but even with copy/paste it's all messed up, is my project lost?

@Larceniii
Copy link

This is happening on http://www.polymer-project.org/tools/designer/ Just going switching between the code view and document view. Without adding any components to a blank designer....

Chrome 36 and Canary 38.0.2108.0

image

@Libbux
Copy link

Libbux commented Jul 31, 2014

Can confirm this issue as well. Chrome 35.0.1916.153 (Official Build 274914) m on Win.

@ThaisRobba
Copy link

Same issue on Firefox 31 (64bit Linux) and Chromium 34 (64bit Linux)

@jarrodldavis
Copy link

If this helps at all, the last good version was 0.3.2. Checking that version seems to have no issues, but version 0.3.3 (even after removing the components folder and doing bower cache clean) causes the designer view to be cleared when switching from code view. I tested both versions in an Incognito Window in Chrome 36.0.1985.125.

Here's the diff between the two, if that helps as well: 0.3.2...0.3.3

@Larceniii
Copy link

@jarrodldavis Thanks, that really helps. SMH. I'm too tired to be coding...

@iandouglas
Copy link

Confirmed on Ubuntu 14.04 and Chrome 38.

@monkeybrau
Copy link
Author

Any workarounds or eta on this issue? Even my local copy of 0.3.4 stopped working. As we are on the bleeding edge with you, the visual designer has become important for us to adopt polymer components and rapidly prototype UI's. Based on @jarrodldavis comment maybe we need to revert back to 0.3.2 for the time being?

@thibaultmol
Copy link

I don't know if this helps. But I would like to add that when I try to use a link like this one:
http://www.polymer-project.org/tools/designer/#[GITHUB TOKEN]
my gist project does not appear and no code is loaded. (even though I didn't go the the code view).

@ebidel
Copy link
Contributor

ebidel commented Aug 8, 2014

This should now be fixed with the latest site push and 0.3.5. Holler if you see otherwise.

@ebidel ebidel closed this as completed Aug 8, 2014
justinfagnani added a commit that referenced this issue Apr 1, 2015
Allow dragging of elements right when they’re selected.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants