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) Main window sketch code view keeps disappearing (Read 6640 times)
dieter56
Junior Member
**
Offline


Posts: 21
Joined: May 6th, 2016
Main window sketch code view keeps disappearing
Jun 8th, 2016 at 12:32am
Print Post  
On occasion, when I open an Arduino Project or file, the code in the INO file is not showing, but I can compile and upload.

What can do to display this code window?

This happens quiet a bit and is very frustrating.

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Main window sketch code view keeps disappearing
Reply #1 - Jun 8th, 2016 at 6:24pm
Print Post  
Hi,

How do you open your projects? Do you double click in windows explorer or use the visual studio menus such as recent list, file>open, file open arduino etc.?

Thanks
  
Back to top
IP Logged
 
dieter56
Junior Member
**
Offline


Posts: 21
Joined: May 6th, 2016
Re: Main window sketch code view keeps disappearing
Reply #2 - Jun 8th, 2016 at 7:32pm
Print Post  
Most of the time when it does not work, I click on a RECENT file which had opened by one of the below methods. Then the OUTPUT window shows, and it says "parsing....", then READY - but NO source code INO window. However, I it did load the INO, since i can debug, compile, etc.  It just does not show the source code.

I typically use the VS menus - File > Open > File. Then locate the INO file...

Often I also go to a sketch directory, right click on an "library example" INO file and select OPEN WITH VS.  Doing this, most of the time the INO source code shows, but the Visual Micro tool bar does NOT show, but the VM menu item does.  Why is that?   I think once the source does not show, VS remembers, and every time thereafter when I try to open it  by clicking on RECENT, no source shows.

Considering I have many sub-directories containing example INOs (for learning), what is the appropriate method to open an INO?

Dieter
« Last Edit: Jun 8th, 2016 at 7:39pm by dieter56 »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Main window sketch code view keeps disappearing
Reply #3 - Jun 8th, 2016 at 7:42pm
Print Post  
The visual micro bars will show when you are editing visual micro code or have an arduino project selected in the solution explorer.

You should not use "File > Open > File." it simply opens files and not projects. Visual Micro has some intelligence to detect when an arduino .ino is being opened. If a solution is not open then an arduino project will be created or opened. So really it's to create new arduino projects or quickly review unrelated arduino code when editing an existing project. 

The "vMicro" menu gives you shortcuts to Open or Create a project. 
"File>Open>Project" or "File>Open>Arduino Project" are good ways to open existing project.
File>Recent>Projects can be useful but you need to use "File>Open>Project" or "File>>New>Project" for entries to appear in the recent Project list.

Let's first make sure you are seeing the right things on screen so you can understand what you are working with.

Do you have the "Solution Explorer" open all the time so that you can see the project and source code file names?

Can you give screen shot of ide when a project is open?
  
Back to top
IP Logged
 
dieter56
Junior Member
**
Offline


Posts: 21
Joined: May 6th, 2016
Re: Main window sketch code view keeps disappearing
Reply #4 - Jun 8th, 2016 at 8:03pm
Print Post  
I did not know how to do a sreen shot into this window, so i attached a PDF file.
Once I have a vMicro project open, how do i CLOSE or SAVE it?
Again, I have lots of simple INO files.  Do I have to create a project for each of them?

« Last Edit: Jun 8th, 2016 at 8:07pm by dieter56 »  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Main window sketch code view keeps disappearing
Reply #5 - Jun 8th, 2016 at 8:14pm
Print Post  
Okay it's good to keep the solution explorer open on the right.

You can use "File>Close Solution" to close the current project.

For beginners there should be one project/solution for each arduino sketch. An arduino project can have multiple .ino files but it is considered a single program.

If you open the Blink example this will be one project. The LED example will be a different project.

You can have multiple projects open in a single solution but for new users it is best to close the solution if you want to open a different arduino project.

When Visual Micro creates an arduino project from .ino and cpp code it becomes a standard Visual Studio project and an Arduino project. This means that after a project has been created it can be opened more easily than finding the .ino file Smiley

You can see a few examples in the First Steps section of the documentation http://www.visualmicro.com/page/User-Guide.aspx?doc=index
  
Back to top
IP Logged
 
dieter56
Junior Member
**
Offline


Posts: 21
Joined: May 6th, 2016
Re: Main window sketch code view keeps disappearing
Reply #6 - Jun 8th, 2016 at 8:17pm
Print Post  
Thanks, I will follow the tutorial...
  
Back to top
 
IP Logged
 
dieter56
Junior Member
**
Offline


Posts: 21
Joined: May 6th, 2016
Re: Main window sketch code view keeps disappearing
Reply #7 - Jun 8th, 2016 at 8:38pm
Print Post  
I followed the tutorial, but still am confused about CLOSE, Close Project, and Save ALL.

And, the solutions i saved does not show in RECENT, nor is it in solution explorer.

Is there a way for VS to remember all my solutions, such that i can quickly move from one to another?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Main window sketch code view keeps disappearing
Reply #8 - Jun 8th, 2016 at 9:12pm
Print Post  
1)
Okay great. So what you have really learnt is how to open arduino projects for the first time.

You will read in my previous post that after you have opened an arduino project for the first time you can use the standard visual studio open project or solution to open commands which do add to the recent projects list.

You can also use the Visual studio "file>new>project" wizard where you will find Visual Micro in the C++ section. This is the way to create new arduino projects and to have them automatically added to the file>recent projects list.

So hopefully you will find that the "Open arduino project" command is just for first time opening in Visual Studio of existing .ino code and the "create arduino project"command is for novices who haven't yet discovered the standard visual studio "File>New>Project" facility

2)

Solutions can contain multiple projects.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint