Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 8 Replies) Project broken after update to latest (23.0731.03) (Read 4287 times)
gremlin
Newbies
*
Offline


Posts: 7
Joined: Dec 9th, 2017
Project broken after update to latest (23.0731.03)
Aug 26th, 2023 at 6:12pm
Print Post  
Using VS2017 (Fully updated)
I was previously using VSMicro 2022.429.1901 with no problems.

After updating to the latest VSMicro, I cannot get errors to go away.

Error are:
object of abstract class type "File" is not allowed: pure virtual function "Print::Write(uint8_t b)" has no overrider.

This is not just with the File class but multiple other libraries/classes as well.

Also, I have an error about using a type uint inside a struct.
identifier uint is undefined

Nothing else changed other than updating VSMicro.

I have ran the conversion to latest intellesense. I have cleaned project. I have rescanned toolchain/libraries, etc.

What other steps can i try to get this resolved. 
Thanks.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12189
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Project broken after update to latest (23.0731.03)
Reply #1 - Aug 26th, 2023 at 7:44pm
Print Post  
Updated

We have tested vs2017 without issue.

It isn't clear if you are seeing intellisense errors or build errors. Please follow the guide in yellow above.

Thanks
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12189
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Project broken after update to latest (23.0731.03)
Reply #2 - Aug 27th, 2023 at 9:54pm
Print Post  
Thanks for confirming it is an intellisense issue. we will review your email and make suggestions
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12189
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Project broken after update to latest (23.0731.03)
Reply #3 - Aug 27th, 2023 at 9:59pm
Print Post  
Thanks for the output. We will test teensy over the coming few days to see if we can replicate.
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2708
Joined: Feb 13th, 2019
Re: Project broken after update to latest (23.0731.03)
Reply #4 - Aug 29th, 2023 at 2:25pm
Print Post  
Can you confirm your project is showing (Arduino) in Solution Explorer?
  
Back to top
IP Logged
 
gremlin
Newbies
*
Offline


Posts: 7
Joined: Dec 9th, 2017
Re: Project broken after update to latest (23.0731.03)
Reply #5 - Aug 29th, 2023 at 10:31pm
Print Post  
It does not.
I have 3 projects in this solution so the header says:
Solution 'name' (3 projects)

2 Projects are Arduino and 1 is python.
I have always had 3 projects and have used this solution for a few years without problems.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2708
Joined: Feb 13th, 2019
Re: Project broken after update to latest (23.0731.03)
Reply #6 - Aug 30th, 2023 at 8:05am
Print Post  
Thanks for confirming.

When you have the Arduino Project active, you should have the "Convert Solution To Latest Format (Affects Arduino Project(s) Intellisense Only. Required!)" option on the vMicro menu.  If you click this it will upgrade the Arduino Project to the newer intellisense system which should resolve the Intelisense issue.

https://www.visualmicro.com/page/Upgraded-Intellisense-System-in-Visual-Micro.as...

Once the upgrade is completed the Arduino project will show as "ProjectName (Arduino)" in the solution explorer.
  
Back to top
IP Logged
 
gremlin
Newbies
*
Offline


Posts: 7
Joined: Dec 9th, 2017
Re: Project broken after update to latest (23.0731.03)
Reply #7 - Aug 31st, 2023 at 2:00am
Print Post  
I mentioned already trying that in my first post.
I have tried it again and noticed that there are errors in the output window.

Here are the errors. I have changed the name of my project to all x's just for this post:

"1. Scanning xxxx_xxxx_xxxxx_xxx_xxxx_xx_v0_2 for Projects...
     Identified Convertable Arduino Compatible VCXPROJ @ xxxx_xxxx_xxxxx_xxx_xxxx_xx_v0_2
Sequence contains no elements
System.InvalidOperationException: Sequence contains no elements
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at onverting(String VCXProjFilePath)
   at Visual.Micro.ConvertProjectToLinux.ConvertToLinuxProject._Convert(String PathToSLNFile)
   at Visual.Micro.ConvertProjectToLinux.ConvertToLinuxProject.Convert(String PathToSLNFile)
Reloading _xxxx_xxxxx_xxx_xxxx_xx_v0_2.sln'"
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2708
Joined: Feb 13th, 2019
Re: Project broken after update to latest (23.0731.03)
Reply #8 - Aug 31st, 2023 at 8:06am
Print Post  
Thanks for the update and the error log.

Would it be possible to send us your SLN and all VCXPROJ files so we can investigate the issue further?
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2708
Joined: Feb 13th, 2019
Re: Project broken after update to latest (23.0731.03)
Reply #9 - Sep 15th, 2023 at 2:05pm
Print Post  
Can you retry the conversion with the latest version of Visual Micro (23.0915.01) which is available from the top of the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
« Last Edit: Sep 20th, 2023 at 1:28pm by Simon@Visual Micro »  
Back to top
IP Logged
 
gremlin
Newbies
*
Offline


Posts: 7
Joined: Dec 9th, 2017
Re: Project broken after update to latest (23.0731.03)
Reply #10 - Nov 29th, 2023 at 11:05pm
Print Post  
This project was put on hold and I never actually got this working.
I am back on this now and need to get it working.
Here is where I'm at.
I have updated to the latest vMicro. 2023.1103.1900
I have opened the Solution in Visual Studio 2019.
I ran the Conversion "Convert Solution To Latest Format".

It went through the process but hung on the reloading solution step at the end.
I finally had to close VS.
I reopened VS and the solution but it will not load the projects.
It has an error:
": error  : Cannot load project: project does not contain requested configuration Debug|ARM. Please verify that .sln file is valid and uses only existing project configurations."

I will email the conversion log, and SLN and all VCXPROJ files.

  
Back to top
 
IP Logged
 
gremlin
Newbies
*
Offline


Posts: 7
Joined: Dec 9th, 2017
Re: Project broken after update to latest (23.0731.03)
Reply #11 - Nov 30th, 2023 at 1:18am
Print Post  
UPDATE:
The projects VCXPROJ files had these configs in it:
Code
Select All
<ProjectConfiguration Include="Debug|Win32">
      <Configuration>Debug</Configuration>
      <Platform>Win32</Platform>
    </ProjectConfiguration>
    <ProjectConfiguration Include="Release|Win32">
      <Configuration>Release</Configuration>
      <Platform>Win32</Platform>
    </ProjectConfiguration> 



I created a new arduino project to see what those were supposed to be.
I then manually edited my files and changed them to:

Code
Select All
<ProjectConfiguration Include="Debug|ARM">
      <Configuration>Debug</Configuration>
      <Platform>ARM</Platform>
    </ProjectConfiguration>
    <ProjectConfiguration Include="Release|ARM">
      <Configuration>Release</Configuration>
      <Platform>ARM</Platform>
    </ProjectConfiguration> 



This solved the problem of loading the projects.
It will build now but I still have the original intellisense problems where it shows about 1500 errors.


  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint