<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Visual Studio Code, compilation error (while IDE is working)]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=894&amp;type=atom" />
	<updated>2020-02-09T19:14:10Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=894</id>
		<entry>
			<title type="html"><![CDATA[Re: Visual Studio Code, compilation error (while IDE is working)]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2551#p2551" />
			<content type="html"><![CDATA[<p>platformio.ini : src_build_flags = -Wno-error=narrowing</p><p>This did the job, Visual Studio Code does compile &amp; upload :-))))) Thanks you so much Guillaume.</p><p>BTW, I forgot to mention that I&#039;ve been using the RemoteXY-master Lib from FedericoBusero to make RomteXY working in Wifi with my ESP32.</p><p><a target="_blank" href="https://github.com/FedericoBusero/RemoteXY">https://github.com/FedericoBusero/RemoteXY</a></p>]]></content>
			<author>
				<name><![CDATA[KissInno]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=951</uri>
			</author>
			<updated>2020-02-09T19:14:10Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2551#p2551</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Visual Studio Code, compilation error (while IDE is working)]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2550#p2550" />
			<content type="html"><![CDATA[<p>Link to your remotexy project ?</p><p>Shit workaround for the error, add this in your platformio.ini : src_build_flags = -Wno-error=narrowing</p>]]></content>
			<author>
				<name><![CDATA[Guillaume]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=23</uri>
			</author>
			<updated>2020-02-08T21:45:29Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2550#p2550</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Visual Studio Code, compilation error (while IDE is working)]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=2549#p2549" />
			<content type="html"><![CDATA[<p>Visual Studio Code, VSC, is REALLY much better than IDE. Once you have tried it, it&#039;s almost impossible to come back to Arduino IDE.</p><p>But bad luck, VSC detects error while compiling my RemoteXY project:&nbsp; &quot;narrowing conversion of &#039;-110&#039; from &#039;int&#039; to &#039;uint8_t {aka unsigned char}&#039; inside { } [-Wnarrowing]&quot;</p><p>This VSC compilation error looks normal because some of the uint8_t are declared as negative value, while thy should remain between 0 mini to 255 maxi:</p><p>// RemoteXY configurate&nbsp; <br />#pragma pack(push, 1)<br />uint8_t RemoteXY_CONF[] =<br />// int16_t RemoteXY_CONF[] =&nbsp; this does not work, even with IDE<br />&nbsp; { 255,35,0,186,0,26,8,8,8,6,<br />&nbsp; 0,39,82,40,3,<strong>-110</strong>,85,18,6,0,<br />&nbsp; 16,75,105,115,115,46,73,110,110,111,<br />&nbsp; 118,97,116,105,111,110,64,103,109,97,<br />&nbsp; 105,108,46,99,111,109,0,66,129,98,<br /> <strong> -30</strong>,11,5,102,8,7,16,1,16,149,<br />&nbsp; 129,0,102<strong>,-27</strong>,12,3,83,11,18,6,<br />&nbsp; 1,17,84,104,114,111,116,108,101,49,<br />&nbsp; 0,65,4,<strong>-35</strong>,28,9,9,84,20,9,</p><p>For strange reasons, IDE 1.8.10 does compile without problem those negative uint8_t and my project works fine (ESP32 &amp; wifi connection to RemoteXY smartphone). For time being, I &#039;ve been using Copy/Paste from VSC to IDE to upload my ESP32... It works but it is boring.</p><p>I tried to do replace &quot;uint8_t RemoteXY_CONF[] =&quot; by &quot;int16_t RemoteXY_CONF[] =&quot;, VSC &amp; IDE do compile/upload without error but it does not work. </p><p>Does anybody know why I&#039;m getting these negatives declarations within my RemoteXY project? If I knew the cause, I could try to write my RemoteXY project differently. </p><p>Thanks for your help.</p>]]></content>
			<author>
				<name><![CDATA[KissInno]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=951</uri>
			</author>
			<updated>2020-02-08T19:42:18Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=2549#p2549</id>
		</entry>
</feed>
