Skip to main content
roberts33286217
Inspiring
July 4, 2017
Answered

DW 2017.5 linting erors

  • July 4, 2017
  • 1 reply
  • 457 views

PHP Linting does not appear to be working correctly in 2017.5. I have errors showing on lines that refer to variables that are not on those lines, all following lines marked with an error show the same message.

    This topic has been closed for replies.
    Correct answer osgood_

    roberts33286217  wrote

    PHP Linting does not appear to be working correctly in 2017.5. I have errors showing on lines that refer to variables that are not on those lines, all following lines marked with an error show the same message.

    Linting is generally rubbish especailly if you are mixing languages php/html etc. I believe DW has a drop menu in the bottom right corner where you can choose the language you are working with. Never used it myself but that might help.

    In my experience most bits of software linting fail when a mix of languages are being used.

    I dont really treat linting that seriously. If might be useful as it provides an alert if something is wrong but often its not where you think it is according to the linting.

    1 reply

    osgood_Correct answer
    Legend
    July 4, 2017

    roberts33286217  wrote

    PHP Linting does not appear to be working correctly in 2017.5. I have errors showing on lines that refer to variables that are not on those lines, all following lines marked with an error show the same message.

    Linting is generally rubbish especailly if you are mixing languages php/html etc. I believe DW has a drop menu in the bottom right corner where you can choose the language you are working with. Never used it myself but that might help.

    In my experience most bits of software linting fail when a mix of languages are being used.

    I dont really treat linting that seriously. If might be useful as it provides an alert if something is wrong but often its not where you think it is according to the linting.

    roberts33286217
    Inspiring
    July 4, 2017

    I see the drop down, looks like it defaults to to file extension so in my case is already set to php so unfortunately that does not make it any more accurate. I'll take osgood_'s advise and not rely on it.

    BenPleysier
    Community Expert
    Community Expert
    July 4, 2017

    I think that you will find that the errors are prior to the warning lines. This often depends on the type of error, e.g. if the program is looking for an ending bracket which is not forthcoming, it will flag the error where it has given up searching.

    Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!