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 Encountering System.Xml.XPath.XPathException (Read 5725 times)
MCH Coder
Newbies
*
Offline


Posts: 4
Location: Missouri, USA
Joined: Oct 24th, 2015
Encountering System.Xml.XPath.XPathException
Oct 24th, 2015 at 10:15pm
Print Post  
Can Visual Micro debug sketch files that are located on network drives?

When I try to debug a sketch file that is located at a UNC path, I get the following error:
System.Xml.XPath.XPathException: 'BreakPoint[@File='\\totoro\users\heironimus\documents\matthew's documents\arduino\simplerelayexample\simplerelayexample.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.ParseExpresion(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 Visual.Micro.MiroAppAPI.SketchBuilder.load()
   at Visual.Micro.MiroAppAPI.SketchBuilder.InitSketchBuilder()
   at Visual.Micro.MiroAppAPI.SketchBuilder..ctor(SketchEditor leditor, String path, ProgramSettings ps)
   at Visual.Micro.MiroAppAPI.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: Encountering System.Xml.XPath.XPathException
Reply #1 - Oct 24th, 2015 at 10:43pm
Print Post  
Thanks that sounds like a bug. There are a few bug fixes due over the next day or so will try to include it.
  
Back to top
IP Logged
 
MCH Coder
Newbies
*
Offline


Posts: 4
Location: Missouri, USA
Joined: Oct 24th, 2015
Re: Encountering System.Xml.XPath.XPathException
Reply #2 - Oct 24th, 2015 at 10:50pm
Print Post  
Thanks. Let me know if you need any more details.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Encountering System.Xml.XPath.XPathException
Reply #3 - Oct 25th, 2015 at 12:19am
Print Post  
Oh. it's not the unc but the single quote in the path "matthew's documents"

I'll have to fix that.
  
Back to top
IP Logged
 
MCH Coder
Newbies
*
Offline


Posts: 4
Location: Missouri, USA
Joined: Oct 24th, 2015
Re: Encountering System.Xml.XPath.XPathException
Reply #4 - Oct 25th, 2015 at 1:51am
Print Post  
Thanks for looking into that issue.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Encountering System.Xml.XPath.XPathException
Reply #5 - Oct 28th, 2015 at 11:32am
Print Post  
That was fixed in the build from 26th

Thanks
  
Back to top
IP Logged
 
MCH Coder
Newbies
*
Offline


Posts: 4
Location: Missouri, USA
Joined: Oct 24th, 2015
Re: Encountering System.Xml.XPath.XPathException
Reply #6 - Oct 28th, 2015 at 12:50pm
Print Post  
Great! Thanks for getting that fix in,
Matt
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint