24 Apr 2013 2:52 PM #1
Architect 2.2 and CSS not saving (maybe bug, maybe newbie mistake)
I'm trying to figure out what the best way to deal with CSS files is inside Architect.
From posts etc it seems to me that I should create a CSS file outside of Architect and then link it inside using the resources.
This 'sort off' works. So I linked a css file and then started to edit it inside of Architect. All seemed good, I could see the styles taking effect.
Save -> publish -> preview. Nothing.
After a bit of investigation it would appear that even though you edit the css file in Architect and save it and you can see the styles changing inside of Architect it never actually saves the file?? If it does it certainly doesn't save it to the same location that it loaded, nor has it created another file of the same name elsewhere.
So is this a bug or is there a correct way to deal with css files. Do I have to edit the css files outside of architect always?
24 Apr 2013 6:26 PM #2
Which framework are you using?Jason Minnick
Sencha Architect Development Team
25 Apr 2013 2:04 AM #3
I'm using the latest 2.2 touch and the latest 2.2. architect.
25 Apr 2013 3:21 AM #4
If you are looking to recreate, it should be really straight forward.
Using latest architect, create a touch 2.2 project.
then create an initial view, then outside of architect create a css file.
Add a resource using architect and link it to the file you just created.
Now edit the css file inside of architect and notice how your view changes depending on what is inside the css file.
Save all files/project. Then go to your file explorer and you'll notice that the css file is actually empty (unchanged from when it was created). If you publish Architect ill copy files to whatever your webapp folder is, and again the css file is empty (unchanged from when it was created)
I'm using windows 7 if that might make a difference.
25 Apr 2013 5:28 AM #5
In the latest architect 2.2, you can also create a new css resource within architect by dragging a css resource to the inspector and giving it a file name or an absolute path. when you hit save, architect creates the file. John
25 Apr 2013 7:27 AM #6
Using Architect 2.2.1 build 951, I'm unable to reproduce your issue. I created res/master.css outside of Architect then edited the file within Architect. After saving, I opened the file on the file system to see my changes intact.
Sencha Architect Development Team
25 Apr 2013 12:12 PM #7
Yes, I've gone to create a new project to test the issue from scratch and I can't get the problem to occur now...
I even did some of the extra things like setting up the project with Cmd just in case that was linked, but nope I can't recreate.
So not sure what happened (spent a wee while last night changing, saving, checking it but it now seems fine)
25 Apr 2013 11:35 PM #8
There is a bug...
I think there must be a bug somewhere....because this happened to me. I think it's happened at least twice when I've saved a project with a CSS file clearly there affecting my list then returning after closing and it not being there.
It happened when creating the CSS file from scratch and when using an external one.
It seems like a very intermittent bug however, as I've not seen it happen for a while.
I wonder what would cause this....I never had a single issue with 2.1 with CSS files so it must be something that has been introduced into the v2.2 build that causes it