|
From: Fry, C. R. {C. (ARC-TI)[S. G. T. I. (S. Inc.)] <chu...@na...> - 2014-04-03 18:48:18
|
Here's your patch. The affected file is src/compilers/plexil/java/plexil/ArrayLiteralNode.java. Apply the one-line patch and do 'make' in src/compilers/plexil .
razor:plexil cfry$ svn diff -r 3349:3350 !$
svn diff -r 3349:3350 java/plexil/ArrayLiteralNode.java
Index: java/plexil/ArrayLiteralNode.java
===================================================================
--- java/plexil/ArrayLiteralNode.java (revision 3349)
+++ java/plexil/ArrayLiteralNode.java (revision 3350)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2006-2011, Universities Space Research Association (USRA).
+/* Copyright (c) 2006-2014, Universities Space Research Association (USRA).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -178,7 +178,7 @@
// PlexilTreeNode base method
constructXMLBase();
- m_xml.setAttribute("Type", m_dataType.typeName());
+ m_xml.setAttribute("Type", m_dataType.arrayElementType().typeName());
for (int childIdx = 0; childIdx < this.getChildCount(); childIdx++) {
LiteralNode child = (LiteralNode) this.getChild(childIdx);
m_xml.addChild(child.getXML());
razor:plexil cfry$
-- Chuck
On Apr 3, 2014, at 11:24 AM, "Fry, Charles R. {Chuck} (ARC-TI)[Stinger Ghaffarian Technologies Inc.
(SGT Inc.)]" <chu...@na...<mailto:chu...@na...>>
wrote:
As I suspected… this is really a compiler bug. The translation to XML is wrong.
Again, I hope to have a fix later today.
-- Chuck
On Apr 3, 2014, at 10:02 AM, Catherine Szeto <Cat...@ti...<mailto:Cat...@ti...>> wrote:
Hello,
I get the following error when I try to execute a plan with an array:
ERROR: :994: XML parsing error: No parser for expression 'ArrayValue'
Error parsing plan from XML:
XML parsing error: No parser for expression 'ArrayValue'
Unable to load plan 'TestArray.plx', exiting
The plan only has these two lines straight from the example:
Real foo[4] = #(0.0 0.0 0.0 0.0);
Real temp = 0.0;
I can run the example AddArray.ple without a problem. Is the error due to something missing from the configuration xml file?
Catherine
------------------------------------------------------------------------------
_______________________________________________
plexil-support mailing list
ple...@li...<mailto:ple...@li...>
https://lists.sourceforge.net/lists/listinfo/plexil-support
Chuck Fry
Senior Software Engineer
Dell | Services, Federal Government
Office: 650 604 1882 Mobile: 408 230 2715
M/S 269-1, Building N269/260-7
NASA Ames Research Center
Moffett Field, CA 94035-1000
I do not speak for Dell, SGT, Code TI, or NASA, nor do they speak for me.
------------------------------------------------------------------------------
_______________________________________________
plexil-support mailing list
ple...@li...<mailto:ple...@li...>
https://lists.sourceforge.net/lists/listinfo/plexil-support
Chuck Fry
Senior Software Engineer
Dell | Services, Federal Government
Office: 650 604 1882 Mobile: 408 230 2715
M/S 269-1, Building N269/260-7
NASA Ames Research Center
Moffett Field, CA 94035-1000
I do not speak for Dell, SGT, Code TI, or NASA, nor do they speak for me.
|