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
Very Hot Topic (More than 25 Replies) vMicro afther update 86 errors ".. was not declared in this scope" (Read 8580 times)
Rolf Degen
Junior Member
**
Offline


Posts: 19
Location: Deutschland
Joined: Jul 12th, 2021
vMicro afther update 86 errors ".. was not declared in this scope"
Mar 4th, 2022 at 11:06am
Print Post  
vMicro current Version has 86 errors ".. was not declared in this scope"  ????????

There are no problems with the old version of vMicro

Pleas help  Embarrassed
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #1 - Mar 4th, 2022 at 1:05pm
Print Post  
Hi

We will look at the intellisense errors with teensy.

In the meantime you can alter the combobox above the errors list to "build only". Then you will see an accurate list.

Please post the information requested in the yellow box above so that we can see which tool chain versions you are using.

Thanks
  
Back to top
WWW  
IP Logged
 
Rolf Degen
Junior Member
**
Offline


Posts: 19
Location: Deutschland
Joined: Jul 12th, 2021
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #2 - Mar 4th, 2022 at 1:36pm
Print Post  
I have check two version of vMicro in Microchip Studio 7

Version 2020.920.3 have no problems Smiley
Version 2021.606.0 have many problems Sad
« Last Edit: Mar 4th, 2022 at 1:47pm by Rolf Degen »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #3 - Mar 4th, 2022 at 1:47pm
Print Post  
Please follow the guide in yellow above so that we can help you.

  
Back to top
WWW  
IP Logged
 
Rolf Degen
Junior Member
**
Offline


Posts: 19
Location: Deutschland
Joined: Jul 12th, 2021
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #4 - Mar 4th, 2022 at 1:54pm
Print Post  
I can't find an attachment function in chrome. How can I send you the text??
  
Back to top
 
IP Logged
 
Rolf Degen
Junior Member
**
Offline


Posts: 19
Location: Deutschland
Joined: Jul 12th, 2021
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #5 - Mar 4th, 2022 at 1:57pm
Print Post  
Ok i found this.

output in the appendix. Thanks for help Smiley
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #6 - Mar 4th, 2022 at 1:58pm
Print Post  
Hi,

The Quick reply does not show attachment. You have to click the reply button.

You can also email the output as a .txt file.

  
Back to top
WWW  
IP Logged
 
Rolf Degen
Junior Member
**
Offline


Posts: 19
Location: Deutschland
Joined: Jul 12th, 2021
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #7 - Mar 4th, 2022 at 2:01pm
Print Post  
Ok. Here my txt file..
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Rolf Degen
Junior Member
**
Offline


Posts: 19
Location: Deutschland
Joined: Jul 12th, 2021
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #8 - Mar 4th, 2022 at 2:11pm
Print Post  
Oh.. sorry. I forgot to rebuild my project.

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #9 - Mar 4th, 2022 at 5:22pm
Print Post  
We are looking into the problem related to auto-gen prototypes, that shows up when building that midi project you are working with.

More news early next week.

Thanks for the report.
  
Back to top
WWW  
IP Logged
 
Rolf Degen
Junior Member
**
Offline


Posts: 19
Location: Deutschland
Joined: Jul 12th, 2021
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #10 - Mar 5th, 2022 at 8:18am
Print Post  
Thanks a lot. My Project Files on github: 

https://github.com/rolfdegen/Jeannie-Open-source-Synthesizer
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #11 - Mar 7th, 2022 at 5:10pm
Print Post  
The latest release (22.02.18-3) should resolve the Prototype Generation issues for this project, which is available from the top of the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
 
IP Logged
 
Rolf Degen
Junior Member
**
Offline


Posts: 19
Location: Deutschland
Joined: Jul 12th, 2021
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #12 - Mar 7th, 2022 at 10:05pm
Print Post  
Is the version 22.02.18-3 also for Microchip Studio?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #13 - Mar 8th, 2022 at 2:34pm
Print Post  
Atmel studio is on a slower release cycle. It is more difficult to publish extensions to the microchip gallery.

We will update this thread when the release has been accepted.

If you are using non-atmel hardware then Visual Studio is a better alternative.
  
Back to top
WWW  
IP Logged
 
Rolf Degen
Junior Member
**
Offline


Posts: 19
Location: Deutschland
Joined: Jul 12th, 2021
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #14 - Mar 8th, 2022 at 3:19pm
Print Post  
Thanks for help. I can't change my IDE at the moment because I'm working on a big project. I would then have to adjust a lot in my C code  Embarrassed
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #15 - Mar 8th, 2022 at 3:29pm
Print Post  
It's Arduino or Teensy, same code,same libraries, same config. Same should also build in the Arduino IDE.

You should be able to install VS, close your project. Click File>open>arduino project in VS and open the same code. Then you close VS, open atmel and re-open the same code.

All should work, if you have select special Board options or set an additional compiler defines in the visual micro menus/properties then there is possibly you have to reselect some of those options again but code is unaffected.

Opening the code in VS will not alter or change your code. We don't use either IDE to perform the builds, that happens via Visual Micro. the IDE's mainly only provide intellisenss and a solution explorer.


  
Back to top
WWW  
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #16 - Mar 9th, 2022 at 3:13pm
Print Post  
The 22.02.18-3 release is now available for Microchip Studio on the updated release page at the top of the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
 
IP Logged
 
Rolf Degen
Junior Member
**
Offline


Posts: 19
Location: Deutschland
Joined: Jul 12th, 2021
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #17 - Mar 9th, 2022 at 3:45pm
Print Post  
Hallo Tim

Thanks for your great work. Version 22.02.18-3 for Microchip Studio works fine. I'm getting a flash/ram status now  Smiley Smiley Smiley

But syntax errors in the ino file are still not displayed  Embarrassed

When I only change the ino file and make a build no flash/ram info is displayed.
« Last Edit: Mar 9th, 2022 at 3:52pm by Rolf Degen »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #18 - Mar 11th, 2022 at 12:37pm
Print Post  
Thanks for the update.

We have a fix for the memory and code summary not being shown which will be released next week.

Can you send a screenshot of a syntax error which is not being highlighted in your INO file, so we can investigate further?
  
Back to top
 
IP Logged
 
Rolf Degen
Junior Member
**
Offline


Posts: 19
Location: Deutschland
Joined: Jul 12th, 2021
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #19 - Mar 11th, 2022 at 2:06pm
Print Post  
Syntax error into ino file is not displayed in the error list

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #20 - Mar 11th, 2022 at 7:37pm
Print Post  
Some later toolchains see a "const" data type as something different, even though it is not. Many older Arduino projects fail to compile because of the "const" issue. Visual Studio doesn't see a difference because the data type is the same. Both are far pointers to a float.

Visual Studio cannot know some finer detail such as that is built into the actual tool chain .exe and is not defined in external sources. For this reason  Visual Studio can only give 99% accuracy with intellisense. The alternative would be to run the actual tool chain in background while you are coding, that is a huge overhead especially for slower toolchains.

Visual Studio maintains a database for fast intellisense lookups, therefore we have to forgive it some inaccurancy. 

As you have noted, you can rely on the Visual Micro build process to give accurate results because it uses the toolchain directly without involvement from Visual Studio. 

There are other differences you will find between a real build and intellisense. That is because Visual Studio does not understand some of the underlying Gcc code that some toolchains use.

We can improve some areas of intellisense but some areas are beyond what can be achieved. We will look into this but it might be one of those ones we cannot cater for.

« Last Edit: Mar 11th, 2022 at 7:39pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #21 - Mar 14th, 2022 at 4:09pm
Print Post  
Thanks for the update.

The errors and code suggestions in Atmel Studio are provided by VisualAssistX, which is not driven directly by Visual Micro.

It seems odd there are no build errors at all for that variable after a build has been run, I would expect a "was not declared in this scope" error from what we can see in the image.
  
Back to top
 
IP Logged
 
Rolf Degen
Junior Member
**
Offline


Posts: 19
Location: Deutschland
Joined: Jul 12th, 2021
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #22 - Mar 15th, 2022 at 1:06pm
Print Post  
Hallo Simon

Current vMicro version causes errors in Teensy 4.1's RAM management. Patches with band-limited PWM waveforms can no longer be loaded. system hangs.  Huh
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #23 - Mar 23rd, 2022 at 1:14pm
Print Post  
Thanks for the update and apologies for the delay in responding.

Can you enable the verbose and show build properties options as seen at the top of the page, and attach the full build output from your build.

If you have an example simple sketch we can replicate with it will help us understand the issue further.

Does the same happen when uploading the same sketch via the Arduino IDE?
  
Back to top
 
IP Logged
 
Rolf Degen
Junior Member
**
Offline


Posts: 19
Location: Deutschland
Joined: Jul 12th, 2021
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #24 - Mar 23rd, 2022 at 2:38pm
Print Post  
It is probably due to my large program code. The display of free ITCM RAM1 (fast code) in Teensy 4.1 is same with old and new vMicro version. In the old version of vMicro, the code for calculating bandlimited waveforms is faster and doesn't crash. In the new version the code is very slow and the band limited waveforms cannot be calculated fast enough.




« Last Edit: Mar 23rd, 2022 at 2:42pm by Rolf Degen »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2145
Joined: Feb 13th, 2019
Re: vMicro afther update 86 errors ".. was not declared in this scope"
Reply #25 - Mar 23rd, 2022 at 3:16pm
Print Post  
Thanks for the update and logs.

Can you also send over the "Jeannie.ino.cpp" from the build folder, after building in the old and new versions so we can compare them?

Do you get the same issue in the Arduino IDE when uploading the same program?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 
Send TopicPrint