This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP432P401R: (Related) CCS Version: 9.2.0.00013 - Print Margin Column Setting Inoperative (Linux)

Part Number: MSP432P401R

Ok, this is a bit bizarre. I asked a question related to the Right Margin in CCS Version: 9.2.0.00013 - Print Margin Column Setting Inoperative (Linux) not being able to be set in CCS. (all images in the original question are still exactly the same as here) No matter what you set in Preferences -> General -> Editors -> Text Editors -> Print margin columns: [XXX], the Show print margin line in CCS stays fixed at 80. As a work-around to this known old bug in CCS on Linux, the link in the original question has you edit /opt/ti/ccs920/ccs/eclipse/configuration/.settings/org.eclipse.ui.ide.prefs and set org.eclipse.cdt.core.formatter.lineSplit=90 (or whatever you desire)

That work-around stopped working a week or two ago. There were updates surrounding that time, but I don't recall any change at the time the updates installed, but rather it would have been after I shut CCS down and then reopened it at some point later when the print margin reverted back to 80. I have confirmed the setting in /opt/ti/ccs920/ccs/eclipse/configuration/.settings/org.eclipse.ui.ide.prefs is still set as org.eclipse.cdt.core.formatter.lineSplit=90, but this no longer seems to be a valid work-around.

Is this a known problem with recent updates to ? (chrome, etc..) I can confirm the work-around was working and now has stopped working on Linux. My Linux install has not changed.

Let me know if there is any additional information I can send. The Help-About page still shows version CCS 9.2.0.00013 so that hasn't changed.

  • I was able to get this but the procedure is a bit odd:

    Go to the Preferences dialog.

    Select show advanced settings at the bottom enable setting the C/C++ options

    THen go to c/C++ -> Code Style -> Formatter

    Click the edit button beside the CCS profile

    Then change the option here:

    Regards,

    John

  • I'll be damed! I don't know how you ever thought to look there. I always have the advanced settings shown and I have pawed through every setting of the main tree looking for something related. I have even set custom syntax colors for C/C++ to match KDE kate/kwrite and GTkate, but never in my wildest dream would I have thought to search there for right-margin display control. Especially given the very large and prominent explicit setting for the right-margin display at Preferences -> General -> Editors -> Text Editors -> Print margin columns: [XXX],

    Very well done. Thank you!

  • I was trying the same option as you and had the same issues and then started searching around Eclipse bugs and I found that procedure noted in the comments on one.  Basically they fixed the original Eclipse bug and at the same time enabled each of the "language" tools to override that default setting.  For C/C++ that override setting is quite buried.

  • In the past the LInux kernel coding standard was 80, but Linus moved into this century and upped it to 100. I've always liked the right-margin as it is a visual reminder of where you are and avoids having to divert your eyes to the status bar. It is also really helpful contributing to StackOverflow which wraps as 91 columns. So formatting up to 90 has become my norm.

    Fighting this bug I had tried every combination of the Print margin columns setting, the org.eclipse.cdt.core.formatter.lineSplit=90 hack and with and without the allow other editors to override checkbox. I know something had changed, but I couldn't figure out what or how to work around it to save my life. I guess they made progress on the bug, but did not completely fix it. With the [ ] Allow editors to override the margin column unchecked, the General -> Editors -> Text Editors setting still has no effect on the print margin.

    Thank you again for your persistence.