Dreamweaver 8 'Brace balancing' bug

One of the worst features of php is the reliance on braces
for flow control.
Although I try to carefully indent my code to indicate where
I am, I frequently
get into trouble because I have overlooked some brace
somewhere. Dreamweaver's
'Brace balancing' feature is a great help, but unfortunately
in Dreamweaver 8 it
suffers from a serious bug, in that it will balance on braces
in comments, or
even mistakenly placed in HTML code. It usually seems to
ignore brackets, but
this morning it is being thrown into confusion by a left
bracket inside an
assignment statement: $test_str = 'if(';
Naturally this is in a complicated piece of code in which I
have made some
stupid mistake, and it makes the Brace balancing completely
useless.
Can anyone tell me if the latest version also suffers from
this bug?
Clancy

.oO(Clancy)
>Michael Fesser <[email protected]> wrote:
>
>>Have you considered to use SQL instead? You don't
even need a full DBMS,
>>SQLite should be enough in this case.
>
>This question is very relevant to my next question about
saving files.
>
> I have actually got MySQL installed on my system, but
after a quick look I
>realised it would probably take me a month to learn how
to use it, and I decided
>I didn't really need it yet.
It might take some time to get used to it and to grasp the
various
concepts like indexing and normalization for example, but
then SQL is a
really powerful tool with a rather surprisingly simple
syntax.
I was suggesting it because you're doing pretty much the
same, just your
own way. Currently you're building an 'if' statement
on-the-fly to cater
for a variable number and type of conditions to check
against. You can
do the very same thing with SQL and create complex queries
from small
different pieces. The condition part of such a query could
then look
like this:
status > 3 AND status < 6 OR class = 'student'
This is equal to
status >= 4 AND status <= 5 OR class = 'student'
which can also be written with a special operator to keep the
query a
bit more readable:
status BETWEEN 4 AND 5 OR class = 'student'
>Also, rightly or wrongly, I am under the
>impression that databases tend to be rather cumbersome
(an impression reinforced
>by Microsoft outlook professional, which I foolishly
installed, and which takes
>five seconds to load an address from my database of a few
hundred entries).
A real database is optimized to handle such things. If the
tables are
properly indexed, a search for all matching records is very
fast and
efficient, especially if you also want to sort the output or
want to do
something fancy with the data before you further process it
in your
script. Searching for an address in thousands or even
millions(!) of
entries can be done within the blink of an eye.
SQL can also be used to analyze the data or even extract and
create new
informations from the existing records. For example I have a
user
database, which stores firstname, lastname and birthname if
available
(besides a lot of other stuff). In my scripts I often want to
simply
print out the full name with the optional birthname in
parentheses:
Jane Bar (Foo)
John Doe
I could do it in the script, but it's much more efficent to
let the
database do this and have it return an additional field in
the result
set that already contains this full name in the required
format. So SQL
can easily return informations that are not directly stored
in the DB,
but generated on-the-fly. And this was just a very simple
example.
You should definitely give it a try if you find the time.
Micha

Similar Messages

  • Track Mixer Balance Bug

    It seems there's a new bug introduced with the 7.2.1 update.  Changing the Track Mixer's pan/balance setting for a track will cause it to behave as if it's set fully to one side, regardless of the mix setting.  For example, a setting of 5 will push all audio to the right channel, leaving the left channel entirely mute.  Here's the bug report I submitted for others to copy/paste.
    ******BUG******
    Track Mixer Balance Bug
    Steps to reproduce bug:
    1. Adjust the track mixer balance
    Results:
    No matter what the Pan/Balance knob is set to, it behaves as if it's set to 100% on that side.
    Expected results:
    Pan/Balance should mix according to its setting, not be an all-or-nothing function.

    Another work around.
    If you select the audio master to be 5.1 the joystick panner seems to work as expected. You could then just export as stereo, the fold down from 5.1 to stereo should give you the stereo mix. Make sure the joystick panner dot stays tight to the top of the box.

  • Dreamweaver auto balance braces

    Hello everyone;
    I a lot see (Specially Notepad++ and PHPStorm) auto balance braces. These mostly gray color and striped of balance braces. I search this feature in Dreamweaver.
    This picture have a example: http://plugins.jetbrains.com/files/7163/screenshot_14071.png

    DW's code view is sorely lacking many of the code display features that are widely available in other plain plain text/code editors.  I often use more than one app when I'm developing code so I don't really miss it.  Feel free to submit a feature request at the link below with good reasons why you need it.
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Nancy O.

  • Dreamweaver, php-xml bug

    I have a simple php file that generates an xml file. When I
    save this file and close it, dreamweaver changes some of the
    formatting when I reopen the file. Specifically, dreamweaver
    de-capitalizes some of the text in the document.
    Example:
    The code:
    $this->xml_request = '
    <PickupType>
    <Code>01</Code>
    </PickupType>';
    is converted to
    $this->xml_request = '
    <PickupType>
    <code>01</code>
    </PickupType>';
    after the file is saved, closed, and reopened. Note the Code
    tag has been chanced to code, which breaks the API I'm working
    with. This xml is always within php code as above as I've been
    using it..
    This happens on several fields, Code and Address so far, and
    happens to the same fields every time, no matter the document, or
    how many times they appear in the document. No other tag names are
    affected as far as I've found. I've tried completely uninstalling,
    removing all configuration files, and re-installing Dreamweaver and
    get the exact same affect every time.
    I really need to get this bug / mis-configuration fixed. Any
    suggestions would be greatly appreciated.
    This is CS3 (DW9) running on XP Pro.

    jestep,
    In Preferences > Code Format, make sure that the "Override
    case of"
    settings for "Tags" is turned off.
    HTH,
    Randy
    > I have a simple php file that generates an xml file.
    When I save this file and
    > close it, dreamweaver changes some of the formatting
    when I reopen the file.
    > Specifically, dreamweaver de-capitalizes some of the
    text in the document.
    >
    > Example:
    >
    > The code:
    > $this->xml_request = '
    > <PickupType>
    > <Code>01</Code>
    > </PickupType>';
    >
    > is converted to
    >
    > $this->xml_request = '
    > <PickupType>
    > <code>01</code>
    > </PickupType>';
    >
    > after the file is saved, closed, and reopened. Note the
    Code tag has been
    > chanced to code, which breaks the API I'm working with.
    This xml is always
    > within php code as above as I've been using it..
    >
    > This happens on several fields, Code and Address so far,
    and happens to the
    > same fields every time, no matter the document, or how
    many times they appear
    > in the document. No other tag names are affected as far
    as I've found. I've
    > tried completely uninstalling, removing all
    configuration files, and
    > re-installing Dreamweaver and get the exact same effect
    every time.
    >
    > I really need to get this bug / mis-configuration fixed.
    Any suggestions would
    > be greatly appreciated.
    >

  • Css Tabs in Dreamweaver CS4 Workspace bug?/annoyance

    Css Tabs in Dreamweaver CS4 Workspace. This is probably more
    of an
    annoyance than a bug.
    When working with CSS, I use multiple CSS files and when I
    make a change
    to one, I hit save (CTRL S)but it doesn't save the CSS file I
    was just
    working on. In order to make it save that CSS file, I have to
    click on
    one of the others and then back to the one I was just working
    on and
    then hit save.
    Kind of annoying, right?
    I demand this to be fixed! ;)

    Art,
    I guess you didn't understand what I meant by "focus". Let me
    try to
    explain in terms of your recipe -- all you need is a slight
    change in
    workflow:
    > 1. Open page with multiple style sheets applied
    > 2. Have split screen
    > 3. click on one style sheet and edit it anywhere. After
    editing, the
    > rounded box will be black and have an asterisk applied
    At this point, the style sheet has "focus", so click Ctrl+S
    now, before
    you click back in Design View (which changes the "focus" back
    to the
    main document).
    FYI, if you're clicking in Design View to update the
    rendering, you can
    hit F5 to update the main document rendering without giving
    it "focus".
    > 4. Click back to page in design view.
    > 5. Click control save. It doesn't save the style sheet
    that is
    > highlighted and has an asterisk.
    > 6. In order to save you must "save all" or click off
    and then on
    > to the style sheet.
    Hope this helps,
    Randy
    Art wrote:
    > Let me restate the problem so it's clear what is
    happening.
    >
    > 1. Open page with multiple style sheets applied
    > 2. Have split screen
    > 3. click on one style sheet and edit it anywhere. After
    editing, the
    > rounded box will be black and have an asterisk applied
    > 4. Click back to page in design view.
    > 5. Click control save. It doesn't save the style sheet
    that is
    > highlighted and has an asterisk.
    > 6. In order to save you must "save all" or click off and
    then on to the
    > style sheet.
    >
    > Perhaps this is more an issue of focus rather than a
    function of the
    > save command.
    >
    > Since it's not saving, perhaps Dreamweaver shouldn't be
    displaying the
    > black rounded box as it is no longer selected when you
    click back into
    > Design view.
    >
    > Of course there are ways around this; it's just a little
    annoying that
    > it's displaying "active" yet it's not.

  • Dreamweaver CS5.5 Bugs

    We've encountered some bugs in what is otherwise a great application and a great job by Adobe. We would, like to start a public discussion to see if anyone else has been able to reproduce any of the issues. Recently, we put a new production machine to work in the office and since it is a clean machine, with a fresh install of only Dreamweaver CS5.5, the issues would seem to be reproducible - rather than restricted to a specific machine or configuration. So here is the first test page:
    http://www.projectseven.com/testing/cs5.5-bugs/
    There are other bugs we'd like to test, but let's focus on a few for now.
    Happy Hunting :-)

    My specs before I go into answers:
    Apple Macbook Pro
    Mac OSX 10.6.8
    2.8 Ghz Core 2 Duo
    4GB Ram
    GeForce 9600M GT/9400M
    Touchpad + Logitech V400 wireless mouse
    1.  Didn't have time to test this one yet but I will later.
    2.  I haven't noticed anything too bad since I switched my web host and am now using FTPS (FTP over SSL Explicit).  But on regular FTP I used to see that all the time.  Although the whole FTP part of DW should be rebuilt it is behind even free solutions available in both features and speed and there is no need for it.
    3.  The "li" bug - Reproducible.  My only question here is if the user stays in Design View what would generate a new bullet?  Tab?
    Loss of Text Cursor - I'm unable to reproduce this one.  Only time I lose the cursor is on darker backgrounds where it blends in more. 
    To your comments on Design View in general I agree 100%.  They made Live View to show how the page will render and the example I like to point to is their own Spry code.  The 1.0 code would render in Design View whereas the new 2.0 (Spry UI) code will only render in Live View and show up as a list in Design View.  With the way DW and the web are going, Design View might as well be deprecated.  And I do agree that the Live View builds could be updated.  Small updates on a regular basis with the webkit updates would be nice here.
    I'm just keeping my fingers crossed about Lion.  No word on Adobe's website and unofficial ones have found nothing wrong with DW so far, although not all Adobe CS programs have been so lucky.

  • Dreamweaver Code Hints Bug?

    I'm evaluating CS4 and am noticing some really significant
    bugs that are deal breakers and surprising for a product that
    should have been QA'd for obvious bugs.
    One of the more significant bugs I'm encountering in
    Dreamweaver is regarding code-hinting.
    When I'm writing code, I often rely on code hints to cut down
    on typing and increase my speed significantly, but especially
    within stylesheets, the code hint list seems to pop up, then
    disappear so fast I don't have any time to choose an option. Often
    it happens while I'm scrolling down the list and it's clearly not
    operating as intended.
    I thought there might be a setting in the preferences that
    would adjust this, but it's clearly not a feature. There's no
    reason those code hints should disappear WHILE I'm interacting with
    the list.
    It does seem to fix itself after restarting the app, but
    something is definitely off because upon attempting a quit, it
    always spits out a bunch of error dialogues and fails to quit
    correctly.
    Advice?

    UXable wrote:
    > When I'm writing code, I often rely on code hints to cut
    down on typing and
    > increase my speed significantly, but especially within
    stylesheets, the code
    > hint list seems to pop up, then disappear so fast I
    don't have any time to
    > choose an option. Often it happens while I'm scrolling
    down the list and it's
    > clearly not operating as intended.
    >
    > I thought there might be a setting in the preferences
    that would adjust this,
    > but it's clearly not a feature. There's no reason those
    code hints should
    > disappear WHILE I'm interacting with the list.
    The code hints should stay open when you're scrolling up and
    down the list of options. For me, I can use the up/down arrows as
    well as the scrool bar with the mouse and have no issues. If I hit
    the left or right arrows, then the hints disappear. I suppose that
    some other non-text keys may also make the hints list disappear. Is
    it possible that you're inadvertantly hitting some other keys while
    perusing the hints list?
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • 3.6.10 no longer lets me preview sites from Dreamweaver CS4 - my bug or theirs?

    I updated my Mozilla Firefox browser via the automatic updates the other day, and I can no longer use Firefox to preview pages designed in Dreamweaver.
    The other browsers still work, just this one.

    There is a fix for Dreamweaver, so it works in Firefox 3.6+ versions:
    http://solutions.marketingmedley.com/
    There is a $5.00 fee for that Dreamweaver fix. That website and the fix are not associated with Mozilla in any manner. Support for that fix is provided by that that website via email.

  • Dreamweaver CC and BUG MYSQL

    Bonjour,
    Souhaitant évoluer vers Ddreamweaver cc, j'ai téléchargé la version d'essais. Je m'aperçois que les extensions liaisons et comportements serveurs ne fonctionnent pas avec MYSQL sous WampServer. En effet, si je peux construire mes comportements serveurs sans problème, une erreur s'affiche lors du test dans le navigateur. MYSQL serait apparemment obsolète et il faudrait que je passe à MYSQLI ou PDO.
    Merci d'avance pour votre aide.

    Salut,
    Ces caractéristiques ont été dépréciés dans la la libération de 2013. Vous pouvez utiliser l'extension de DMXzone si vous avez encore besoin de ces fonctionnalités.
    voir http://www.dmxzone.com/go/21842/enable-server-behaviors-and-data-bindings-panel-support-fo r-dreamweaver-cc/
    Merci,
    Preran
    (J'ai utilisé Google translate. Pardonnez les erreurs)

  • FTP Bug Dreamweaver CS3

    There is a issue with Dreamweaver CS3 and ftp connections. For some reason if I leave dreamweaver open for a few hours and come back, I get an error when saving to the web server that an ftp error has occurred. There is no problem with ftp service on the server and no the users are not maxing out the connection.
    The simple yet odd fix is to restart dreamweaver. The problem is that dreamweaver should not do this. If i have saved documents and open from the remote, and if the remote over rides the local, I have lost changes made to given file.
    Dreamweaver's ftp bug is a problem. Having 18 specific documents open in dreamweaver, just to have to close and re open dreamweaver just to save files to a known working ftp server.
    Has anyone else had this issue?    

    Those seem like good practices.
    As far as the firewall issue, I am very sure that it is not the firewall, unless its a bug with windows firewall being disabled and dreamweaver checking its status and getting confused. The windows firewall is disabled by group policy and being a local admin, I am sure of this.
    Just to give a better idea of the issue.
    I come in at 8, and I open dreamweaver. I open files edit them, save them, which by my settings ftp's saved files. I have no problem saving the files to the remote server.
    Around 12 ish i leave for lunch and I come back to dreamweaver. Dreamweaver, is the way i left it, it has a few of the files I am working on open inside of dreamweaver. I make a change to any given file and save it, i then get the FTP error. I could try changing the "site" i am working on and connect to its ftp, just to get an FTP error. I leave dreamweaver in its current state, and i open filezilla and ftp into the same server as well as delete, rename, copy files to the ftp.
    In order to resolve the connecting to ftp issue, I have to close and reopen dreamweaver. And only after doing that can i access any ftp server through dreamweaver.
    If i could never get to the ftp server through dreamweaver, I would assume a firewall issue, but that is not the case.

  • Dreamweaver CS3 and Windows 7

    We were just upgraded to Windows 7 from XP at work and althought my CS3 suite is not showing any signs of problems, Dreamweaver has this bug where when I am browins for a site folder using the Edia Sites dialog box, the settings don't save any folders deeper than one level, so for example, if I am locating the testing server location for a site, and that location is X:\devsites\sites\site4 and during the session I dorows to that location and open that site4 folder and click ok to select it, DW CS3 only takes the devcites folder top level as the desired folder. I have to manually type the path in the testing server folder field in order for DW CS3 to accept the location. Is there any support currently provided for bugs of CS3 since CS4 is already out?

    See http://forums.adobe.com/thread/478327.

  • Business Catalyst feature currently not working in Dreamweaver CS6

    Anyone else experiencing this? I can login to BC, but my module icons won't show and I can't jump to admin either. Is there a prferences setting I accidentally switched off? Is the system down?

    The Business Catalyst integration with Dreamweaver is just bug ridden. Since I first reported this bug 7 MONTHS AGO!!! (Thanks for getting on the problem Adobe) Anyway, since I first reported the problem I have purchased a brand new PC (this month) with a fresh install of CS6... I intentionally did not upgrade Dreamweaver CS6 because as soon as you do you lose all Business Catalyst function. Everything was fine until this morning when I logged on to work, launched Dreamweaver and again... I CAN'T LOG INTO BUSINESS CATALYST THROUGH DREAMWEAVER! Worked fine yesterday but today not so much... so here we go again -  unistall Dreamweaver re-install and hope it works. Not the most efficient system but when Adode doesn't respond to bug fixes for over half a year... there isn't much you can do. I'm a paid partner too... what a disgrace.

  • Flash menu not showing up in IE, but other flash is

    I downloaded a menu from f-source.com (
    http://f-source.com/buy/adobeMenu/
    to be specific) and finished my site up. it works fine in mozilla
    platforms but does not show up at all in IE - i have a feeling it
    is the dreamweaver 8/IE bug but don't know how to fix it other than
    deactivate the active X thing under coding prefs, which i already
    did.
    please view for yourself.
    coh.flowerdust.net
    the menu is flash-based but uses html for customization thru
    dreamweaver.
    thanks!!!!

    figured it out..well, not really..but recoded it and
    it works now. :)

  • Wrong Modified Times On Remote Server MAC

    Hello,
    One of our graphics designers that updates our website has an issue with her Dreamweaver CS3 for MAC, that when she refreshes a newly uploaded file, the file will show an 8hr difference in the modified column. I tested this by creating a new file on her local machine and checked its created/modified time which matched the Mac's time correctly. I then uploaded the file to a random folder on the live server which by the way is on our local network. At first in Dreamweaver, the remote server shows the modified column correctly but as soon as I click refresh the newly uploaded file shows 8 hours ahead. I know this is a Dreamweaver issue cause I checked out the servers time which was our local time zone and I also connected to the live server via Filezilla and not via Dreamweaver’s FTP which shows the create modified time on it correctly. So local machine is ok, remote server in same time zone is ok, viewing remote website files via Filezilla ok, viewing the remote server via Dreamweaver wrong. Remote site is running Linux and Apache.
    Thanks,
    Myronl

    I have this problem all the time too. It drives me crazy because I share updates with one other person and constantly get the message "there is a newer file on the remote server" which 99% is due either to the time difference - and I don't know how to adjust for this in Dreamweaver - or this bug. But I always have to cover myself by creating backups and downloading the file in case she actually uploaded a new file. And no I don't use "check in" which is a real pain.  So this is all a real waste of time.
    Thanks!

  • Problem updating

    I have, as many here, problem with dreamweaver 8 remembering
    FTP username and password. I tried to install dreamweaver 8.0.2
    update, but all I get is corrupted file.
    8.0.1 installs successfully but when I check help>about it
    shows current version 8.0. So I guess 8.0.1 doesn't want to install
    either.
    I have windows XP and IE7 installed on my computer.
    Can anyone help me?
    Thank you

    Strange. Works every time for me.
    It's a technote entitled "Dreamweaver 8.0.2 Updater download
    is corrupt".
    I've cut-and-pasted it below:
    Issue
    Some users are reporting that when they download the English
    version of the
    Dreamweaver 8.0.2 Updater and try to install it, the
    following error occurs:
    a.. On Windows: "The contents of the file cannot be
    unpacked. The
    executable you are attempting to run has been corrupted.
    Please obtain
    another copy of the file, verify its integrity, and try
    again."
    b.. On Mac OS: "Codec overrun", or "Invalid checksum". (Ref
    222846)
    Reason
    The Adobe web team is investigating this issue. So far, Adobe
    cannot
    reproduce the issue, and most users are not encountering this
    problem.
    Solution
    If you are experiencing corrupt download errors, then try one
    or more of the
    following solutions:
    1.. Download the updater again.
    2.. Clear the browser cache.
    a.. Internet Explorer 7: Tools > Internet Options >
    General tab >
    Browsing History > Delete > Temporary Internet Files
    > Delete Files > check
    "Delete all offline content"
    b.. Internet Explorer 6: Tools > Internet Options >
    General tab >
    Temporary Internet Files > Delete Files > check "Delete
    all offline content"
    c.. Firefox 2 (Windows): Tools > Options > Privacy
    > Private Data >
    Settings > make sure Cache is checked > OK > Clear
    Now
    d.. Firefox 2 (Mac OS): Firefox > Preferences >
    Privacy > Private Data >
    Settings > make sure Cache is checked > OK > Clear
    Now
    e.. Safari 2: Safari > Empty Cache
    3.. Disable any download managers or download accelerators.
    4.. Download the updater from a different computer.
    5.. If none of the other solutions in this document resolve
    the error,
    then download the updater from this alternate server.
    Note: This is the English version of the updater:
    a.. Windows updater
    b.. Mac OS updater
    Reporting Problems
    If you have experienced a corrupt Dreamweaver 8.0.2 Updater
    download, then
    please send the Dreamweaver team a bug report so we can
    continue to
    investigate the problem and track how many users are
    affected.
    Additional Information
    For additional suggestions, see Download help (ServiceNote
    tn_15296).
    If you are no longer getting corrupt download error messages,
    but you are
    still having trouble installing the updater, then please see
    the following
    TechNotes:
    a.. Can't install Dreamweaver 8 updaters for Windows after
    canceling
    updater installer (TechNote 785362aa)
    b.. Can't install Dreamweaver 8.0.2 Updater - InstallShield
    Wizard was
    interrupted (TechNote kb400150)
    Regards
    John Waller

Maybe you are looking for