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
Normal Topic Error Compiling - XPathException (Read 4820 times)
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Error Compiling - XPathException
Aug 27th, 2013 at 4:49pm
Print Post  
A user sent this in using an invalid email address so we can't assign this issue to anyone just yet.

We would like to see the solution file which contains this breakpoint (.sln or .asln)

It looks like we have a bug with the encoding of breakpoint "WhenHit" or "Condition" properties. These properties are stored in an xml file which is why we see the xml errors.

Please email the solution to info [at] visualmicro.com

Thanks


Quote:
Compiling 'LearningToDebug2' for 'Arduino Uno'
Binary sketch size: 492 bytes (2% of a 32256 byte maximum) (0.14 secs)
System.Xml.XPath.XPathException: 'BreakPoint[@File='C:\Users\Owner\SkyDrive\General stuff\Arduino\Matt's code\LearningToDebug2\LearningToDebug2.ino']' has an invalid token.
at MS.Internal.Xml.XPath.XPathParser.CheckToken(LexKind t)
at MS.Internal.Xml.XPath.XPathParser.ParsePredicate(AstNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseStep(AstNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseRelativeLocationPath(AstNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseLocationPath(AstNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParsePathExpr(AstNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseUnionExpr(AstNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseUnaryExpr(AstNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseMultiplicativeExpr(AstNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseAdditiveExpr(AstNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseRelationalExpr(AstNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseEqualityExpr(AstNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseAndExpr(AstNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseOrExpr(AstNode qyInput)
at MS.Internal.Xml.XPath.XPathParser.ParseXPathExpresion(String xpathExpresion)
at System.Xml.XPath.XPathExpression.Compile(String xpath, IXmlNamespaceResolver nsResolver)
at System.Xml.XPath.XPathNavigator.Select(String xpath)
at System.Xml.XmlNode.SelectNodes(String xpath)
at Visual.Micro.BreakPointManager.BreakPointManager.BreakPointsOfFile(String fn)
at processing.app.SketchBuilder.load()
at processing.app.SketchBuilder.InitSketchBuilder()
at processing.app.SketchBuilder..ctor(SketchEditor leditor, String path, ProgramSettings ps)
at processing.app.SketchEditor.LoadSketch(String sketchFullFileName, ProgramSettings ps)
at Visual.Micro.Visual.Studio.Arduino.AddInApp.CompileDo(Project oProject, Boolean IsDebugStartCommand)
at Visual.Micro.Visual.Studio.Arduino.AddInApp.Compile(Project oProject, Boolean IsDebugStartCommand)
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error Compiling - XPathException
Reply #1 - Aug 27th, 2013 at 9:29pm
Print Post  
We have tested this issue, it is not a problem with encoding and are unable to replicate.

Please submit a visual studio solution file if you encounter this issue

Thanks
  
Back to top
IP Logged
 
Matt Rebbeck
Newbies
*
Offline


Posts: 1
Joined: Aug 27th, 2013
Re: Error Compiling - XPathException
Reply #2 - Sep 4th, 2013 at 11:00am
Print Post  
This was solved (thanks Visual Micro) - the problem was the apostrophe within the folder name structure that contained the arduino source code. Once the offending folder was renamed to remove the apostrophe everything worked fine.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint