Author Topic: Bug of processing of the Gallio.AutoCAD.gallioprefs file  (Read 1768 times)

0 Members and 1 Guest are viewing this topic.

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Bug of processing of the Gallio.AutoCAD.gallioprefs file
« on: March 30, 2015, 08:59:10 AM »
This works fine:
Code: [Select]
"C:\Program Files\Autodesk\AutoCAD 2010\acad.exe" /p "%LocalAppData%\Gallio\Preferences\acad_Gallio_testing_profile.arg"
But the same setting in the %LocalAppData%\Gallio\Preferences\Gallio.AutoCAD.gallioprefs file doesn't work:
Code - XML: [Select]
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <preferences xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.gallio.org/">
  3.   <settings>
  4.     <setting name="CommandLineArguments" value="/p &quot;%LocalAppData%\Gallio\Preferences\acad_Gallio_testing_profile.arg&quot;" />
  5.     <setting name="StartupAction" value="StartUserSpecified" />
  6.     <setting name="UserSpecifiedExecutable" value="C:\Program Files\Autodesk\AutoCAD 2010\acad.exe" />
  7.     <setting name="WorkingDirectory" value="" />
  8.   </settings>
  9. </preferences>

I get a message:
Quote from: AutoCAD Alert
A bad profile file is specified in the command line:
Code: [Select]
%LocalAppData%\Gallio\Preferences\acad_Gallio_testing_profile.argThe current profile name specified in the registry will be used.

So, Gallio incorrectly transfers arguments in AutoCAD, in my opinion.
« Last Edit: March 30, 2015, 09:05:56 AM by Andrey Bushman »

CADbloke

  • Bull Frog
  • Posts: 342
  • Crash Test Dummy
Re: Bug of processing of the Gallio.AutoCAD.gallioprefs file
« Reply #1 on: March 30, 2015, 06:48:00 PM »
It looks like it should work to me, I thought the % may need escaping for XML but i doesn't. See http://stackoverflow.com/questions/1091945/what-characters-do-i-need-to-escape-in-xml-documents

Could you try using \\ instead of \ ? It doesn't need escaping in XML but maybe Gallio has a problem with it. You might also try \% instead of %, just in case Gallio does silly thing with escaping.

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Re: Bug of processing of the Gallio.AutoCAD.gallioprefs file
« Reply #2 on: March 31, 2015, 01:13:11 AM »
I thought the % may need escaping for XML but i doesn't. See http://stackoverflow.com/questions/1091945/what-characters-do-i-need-to-escape-in-xml-documents
I know about the special symbols for XML and use it for quotes in the Gallio settings.

Could you try using \\ instead of \ ? It doesn't need escaping in XML but maybe Gallio has a problem with it. You might also try \% instead of %, just in case Gallio does silly thing with escaping.
I will try it today.