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) Intellisense or me? (Read 8426 times)
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Intellisense or me?
Dec 17th, 2014 at 10:31pm
Print Post  
I'm trying someting a bit new for me: Using Interrupts with the Mega2560.  My first ISR:

Code
Select All
ISR(USART0_RX_vect,ISR_NOBLOCK) {


} 



...and Intellisense is putting a little red mark at the opening curly brace saying "Error: Expected a declaration"

Is this a real error or just a slight Intellisense miss-match? if an error - any clues as to what I might be missing?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense or me?
Reply #1 - Dec 17th, 2014 at 10:50pm
Print Post  
It's just the intellisense not an error

I will see if it can be improved.

Thanks
  
Back to top
IP Logged
 
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Re: Intellisense or me?
Reply #2 - Dec 18th, 2014 at 12:48am
Print Post  
Thanks Tim - It has been a while since I worked with VM - I think I've hit this before.  I'd rather it on you than me...    Cheesy

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense or me?
Reply #3 - Dec 18th, 2014 at 1:30am
Print Post  
There isn't always a solution but then c++ is not a strength of mine.

If in doubt then build. The compile should always be accurate.
« Last Edit: Dec 18th, 2014 at 1:31am by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense or me?
Reply #4 - Jan 8th, 2015 at 9:22pm
Print Post  
Off-Topic replies have been moved to this Topic.
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense or me?
Reply #5 - Jan 11th, 2015 at 3:42am
Print Post  
Hi Harrzack,

If you are still working with vm then ...

There is a new beta 1412.10 sp4 which I would appreciate your testing to see how the ISR() function (and others) work with intellisense.

There has been some changes that I hope makes a big difference in vs 2013 especially.

If the change doesn't help I can tell you how to easily test some other combinations yourself.

Thanks
  
Back to top
IP Logged
 
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Re: Intellisense or me?
Reply #6 - Jan 11th, 2015 at 4:40pm
Print Post  
Tim - yes - back into Arduino, VS AND VM! "Can't do Arduino without them".  

Am getting the beta now and will report back in a bit.

=Alan R.    Cool


Tim@Visual Micro wrote on Jan 11th, 2015 at 3:42am:
Hi Harrzack,

If you are still working with vm then ...

There is a new beta 1412.10 sp4 which I would appreciate your testing to see how the ISR() function (and others) work with intellisense.

There has been some changes that I hope makes a big difference in vs 2013 especially.

If the change doesn't help I can tell you how to easily test some other combinations yourself.

Thanks

  
Back to top
 
IP Logged
 
Harrzack
Member
***
Offline


Posts: 133
Location: Lindenwold, NJ USA
Joined: Dec 28th, 2012
Re: Intellisense or me?
Reply #7 - Jan 11th, 2015 at 5:25pm
Print Post  
Tim - the beta looks great in regards to the Intellisense on the ISR functions.  No more little red-buggers on the opening braces.  I did a rebuild of a moderaly complex sketch and there were no complaits otherwise.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Intellisense or me?
Reply #8 - Jan 11th, 2015 at 5:26pm
Print Post  
Great thanks for testing so quickly.
  
Back to top
IP Logged
 
Martin Reinke
Newbies
*
Offline


Posts: 1
Joined: Jan 19th, 2015
Re: Intellisense or me?
Reply #9 - Jan 19th, 2015 at 4:42am
Print Post  
I still get some problems with the intelisense. I had to extract the ISR code from the ISR routine. Then I only get one error tag at the end of the routine header:

Code (C++)
Select All
ISR(TIMER2_OVF_vect, ISR_NOBLOCK) {
	Timer2Isr();
}
 



If I leave the whole code in the ISR - like below, then Intelisense marks every uint8_t in the whole project as unknown - and others. 
:

Code (C++)
Select All
ISR(TIMER2_OVF_vect, ISR_NOBLOCK) {

	uint8_t *framebuffercurrptr;

	// Point to the row after the current row to display
	framebuffercurrptr = &Peggy2Display::framebufferptr[(Peggy2Display::framerow+1)<<2];

....
	PORTD = 0;	// Turn row off

	PORTB |= BV(1);	// Send latch pulse
...
}
 




(The original ISR code is from Arthur J. Dahm's "dragongears/Peggy-2-Display-Library"and can be found in Github:  https://github.com/dragongears/Peggy-2-Display-Library/blob/master/Display.cpp)

Hope this helps...

Martin


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