<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Putting a comment after an int in prj.conf causes an error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121134/putting-a-comment-after-an-int-in-prj-conf-causes-an-error</link><description>There appears to be a bug with commenting in prj.conf. If I do this: 
 
 # This is the appearance of the device from the BLE SIG Assigned Numbers List (384 is general remote co 
 CONFIG_BT_DEVICE_APPEARANCE =384 
 
 ...it works fine. If I do this: 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 17 Jan 2026 04:57:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121134/putting-a-comment-after-an-int-in-prj-conf-causes-an-error" /><item><title>RE: Putting a comment after an int in prj.conf causes an error</title><link>https://devzone.nordicsemi.com/thread/558923?ContentTypeID=1</link><pubDate>Sat, 17 Jan 2026 04:57:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fbe4e94-6c94-4cac-9f00-d4f22487fac5</guid><dc:creator>Seraphina</dc:creator><description>&lt;p&gt;In &lt;a href="https://geometrydashlitepc.org/"&gt;&lt;span style="font-weight:400;"&gt;Geometry Dash&lt;/span&gt;&lt;/a&gt;, every click matters as you guide a cube through spikes, traps, and moving obstacles with precise timing and sharp focus.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Putting a comment after an int in prj.conf causes an error</title><link>https://devzone.nordicsemi.com/thread/548960?ContentTypeID=1</link><pubDate>Wed, 17 Sep 2025 04:36:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad28b98a-2daa-4e02-84ff-1a8427ce7022</guid><dc:creator>ubiquitybonnet</dc:creator><description>&lt;p&gt;I agree that this is not really a bug, but rather a limitation of the parser. The solution of putting comments on different lines or avoiding extra whitespace is certainly reasonable and practical. However, a parser that can detect and provide more specific error messages would certainly make &lt;span style="color:#000000;"&gt;&lt;a style="color:#000000;" href="https://geometrydashlite-2.github.io"&gt;geometry dash lite&lt;/a&gt;&lt;/span&gt; easier for new users to work with, instead of having to figure it out themselves.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Putting a comment after an int in prj.conf causes an error</title><link>https://devzone.nordicsemi.com/thread/548804?ContentTypeID=1</link><pubDate>Tue, 16 Sep 2025 03:20:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:315e85ea-c3f2-4c6b-9213-f0e7665c31af</guid><dc:creator>otiscavin</dc:creator><description>&lt;p&gt;Zephyr&amp;rsquo;s parser sometimes misreads inline comments after integer assignments if there&amp;rsquo;s no spacing or if the parser doesn&amp;rsquo;t expect extra tokens.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://incrediboxsprunki.io/"&gt;Sprunki&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Putting a comment after an int in prj.conf causes an error</title><link>https://devzone.nordicsemi.com/thread/538951?ContentTypeID=1</link><pubDate>Thu, 12 Jun 2025 06:41:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79b3bb65-fb4f-4cf0-93bb-1b086a908c94</guid><dc:creator>Seraphina</dc:creator><description>&lt;p&gt;To make the error codes easier to work with, I suppose it would be preferable if the parser searched for this problem. As far as I know, there are no plans to address this.&amp;nbsp;&lt;span style="color:#ffffff;"&gt;&lt;a style="color:#ffffff;" href="https://baseballbrosgame.io"&gt;&lt;span style="font-weight:400;"&gt;Baseball Bros IO&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Putting a comment after an int in prj.conf causes an error</title><link>https://devzone.nordicsemi.com/thread/533750?ContentTypeID=1</link><pubDate>Fri, 02 May 2025 12:27:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a6c2ef6-b26c-42fb-b47d-d36bf3051b88</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, we are aware of this being the case. I guess everything after the equals sign is considered a part of the value, unless you explicitly end the value using a final quotation mark. Another thing that would separate KConfig from what you would eg. expect from C, is that a &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/109451/following-lesson-3-exercise-2---error-building-prj-conf---warning-attempt-to-assign-the-value-y-to-the-undefined-symbol-myfunction"&gt;using spaces between the equals sign can be an issue as well&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;But I wouldn&amp;#39;t think of any of these as a bug per se - it is how to parser works. It has some limitations but that is typically considered fine. You can eg. add the comment on a different line, and don&amp;#39;t need the spaces.&lt;/p&gt;
&lt;p&gt;I guess it would be better if the parser looked for this issue, to make the error codes easier to work with. I haven&amp;#39;t heard of any plans to fix this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>