Sorry - I am still having the problem. See the steps I have taken to reproduce the issue
1. Install Visual Studio for Arduino 10.10
(I have never installed any other version)
2. Start Visual Studio
3. Create New Arduino Project
4. Get MessageBox error
---------------------------
Visual.Micro.Visual.Studio.Arduino.10
---------------------------
Unable to create new sketch
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
---------------------------
OK
---------------------------
5. Close Visual Studio without saving project
6. Run Visual Studio
7. Create new Arduino Project (and did not get the previous error)
8. Add one 'const' statement
---8><---
const int LEN=2;
void setup()
{
/* add setup code here */
}
void loop()
{
/* add main program code here */
}
---8><---
9. Compile OK
10.Save Solution and restart Visual Studio
11.Open Arduino Project
12.Compile the project - Get the errors
1 IntelliSense: linkage specification is incompatible with previous "setup" (declared at line 8 of "d:\documents\projects\arduino\test2\.test2.vsarduino.h") c:\program files (x86)\arduino\hardware\arduino\cores\arduino\wiring.h 128 6
2 IntelliSense: linkage specification is incompatible with previous "loop" (declared at line 9 of "d:\documents\projects\arduino\test2\.test2.vsarduino.h") c:\program files (x86)\arduino\hardware\arduino\cores\arduino\wiring.h 129 6
13.close Visual Studio
14.Run devenv.exe /resetaddin Visual.Micro.Visual.Studio.Arduino.Helper
15.Open solution - no issues
16.Close solution
17.Open Solution - Get the problem
Given the fact that it opens OK the first time and fails the second, could it be similar
to the Duplicate buttons problem I have in that code is being duplicated
Comments: Important: Would you also please confirm the version number of your plugin via tools>options>Visual micro> version.
1. Install Visual Studio for Arduino 10.10
(I have never installed any other version)
2. Start Visual Studio
3. Create New Arduino Project
4. Get MessageBox error
---------------------------
Visual.Micro.Visual.Studio.Arduino.10
---------------------------
Unable to create new sketch
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
---------------------------
OK
---------------------------
5. Close Visual Studio without saving project
6. Run Visual Studio
7. Create new Arduino Project (and did not get the previous error)
8. Add one 'const' statement
---8><---
const int LEN=2;
void setup()
{
/* add setup code here */
}
void loop()
{
/* add main program code here */
}
---8><---
9. Compile OK
10.Save Solution and restart Visual Studio
11.Open Arduino Project
12.Compile the project - Get the errors
1 IntelliSense: linkage specification is incompatible with previous "setup" (declared at line 8 of "d:\documents\projects\arduino\test2\.test2.vsarduino.h") c:\program files (x86)\arduino\hardware\arduino\cores\arduino\wiring.h 128 6
2 IntelliSense: linkage specification is incompatible with previous "loop" (declared at line 9 of "d:\documents\projects\arduino\test2\.test2.vsarduino.h") c:\program files (x86)\arduino\hardware\arduino\cores\arduino\wiring.h 129 6
13.close Visual Studio
14.Run devenv.exe /resetaddin Visual.Micro.Visual.Studio.Arduino.Helper
15.Open solution - no issues
16.Close solution
17.Open Solution - Get the problem
Given the fact that it opens OK the first time and fails the second, could it be similar
to the Duplicate buttons problem I have in that code is being duplicated
Comments: Important: Would you also please confirm the version number of your plugin via tools>options>Visual micro> version.