Hybrid View

  1. #1
    Sencha Premium Member
    Join Date
    Mar 2012
    Location
    Scotland
    Posts
    111
    Vote Rating
    2
    delp is on a distinguished road

      0  

    Default Architect 2.2 and CSS not saving (maybe bug, maybe newbie mistake)

    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?

  2. #2
    Sencha - Architect Dev Team
    Join Date
    Jan 2009
    Location
    Frederick, Maryland
    Posts
    857
    Vote Rating
    32
    jminnick has a spectacular aura about jminnick has a spectacular aura about

      0  

    Default


    Which framework are you using?
    Jason Minnick
    Sencha Architect Development Team

  3. #3
    Sencha Premium Member
    Join Date
    Mar 2012
    Location
    Scotland
    Posts
    111
    Vote Rating
    2
    delp is on a distinguished road

      0  

    Default


    I'm using the latest 2.2 touch and the latest 2.2. architect.

  4. #4
    Sencha Premium Member
    Join Date
    Mar 2012
    Location
    Scotland
    Posts
    111
    Vote Rating
    2
    delp is on a distinguished road

      0  

    Default


    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.

  5. #5
    Touch Premium Member BostonMerlin's Avatar
    Join Date
    Aug 2010
    Location
    Boston
    Posts
    522
    Vote Rating
    41
    BostonMerlin has a spectacular aura about BostonMerlin has a spectacular aura about BostonMerlin has a spectacular aura about

      0  

    Default


    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
    I love being a dad (5 & 7), flying airplanes (KBED) and writing code (spaghetti).
    BostonMerlin aka John Bond aka JB
    See U @ SenchaCon '13

  6. #6
    Sencha - Architect Dev Team
    Join Date
    Jan 2009
    Location
    Frederick, Maryland
    Posts
    857
    Vote Rating
    32
    jminnick has a spectacular aura about jminnick has a spectacular aura about

      0  

    Default


    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.

    css-issue.PNG
    Jason Minnick
    Sencha Architect Development Team

Thread Participants: 3

Tags for this Thread