MartinBoswell / fmpvc

Process FileMaker Pro Advanced's Database Design Report (DDR) to produce textual representations of the design objects for use with version control systems, text editors, etc.
MIT License
14 stars 3 forks source link

NoMethodError when parsing out xml #1

Closed jplasencia closed 9 years ago

jplasencia commented 9 years ago

Hello, I'm getting the following error when I run this. First, I was having the issue with a large ddr_report involving multiple files, but then I tried using the FileMaker Assets starter template, and got the same error. Below is the error trace:

Parsing Summary Processing Assets_fmp12.xml Parsing ScriptCatalog Parsing ScriptCatalog/Group[1] Parsing ScriptCatalog/Group[2] Parsing ScriptCatalog/Group[2]/Group Parsing LayoutCatalog Parsing LayoutCatalog/Group[1] Parsing LayoutCatalog/Group[2] Parsing LayoutCatalog/Group[3] Parsing ValueListCatalog Parsing BaseTableCatalog Parsing CustomFunctionCatalog Parsing CustomMenuSetCatalog Parsing CustomMenuCatalog Parsing AccountCatalog Parsing PrivilegesCatalog Parsing ExtendedPrivilegeCatalog Parsing RelationshipGraph Parsing AuthFileCatalog Parsing ExternalDataSourcesCatalog Parsing Options Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:493:in block in define_content_procs': undefined method[]' for nil:NilClass (NoMethodError) from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:147:in call' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:147:inblock in parse_fmp_obj' from /Users/username/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:187:in block in each' from /Users/username/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:186:inupto' from /Users/username/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:186:in each' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:124:inparse_fmp_obj' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:47:in initialize' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:54:innew' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:54:in block in process_reports' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:51:ineach' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:51:in process_reports' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/exe/fmpvc:46:in<top (required)>' from /Users/username/.rvm/gems/ruby-2.1.2/bin/fmpvc:23:in load' from /Users/username/.rvm/gems/ruby-2.1.2/bin/fmpvc:23:in

' from /Users/username/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in eval' from /Users/username/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in

Thanks,

Julio

MartinBoswell commented 9 years ago

Julio,

I'll take a look at this. I'm about to get on an airplane for 12 hours, so it may be a few days before I can really get into it. Can you tell me which version of FileMaker you used to generate the DDR?

On Jun 19, 2015, at 8:42 AM, jplasencia notifications@github.com wrote:

Hello, I'm getting the following error when I run this. First, I was having the issue with a large ddr_report involving multiple files, but then I tried using the FileMaker Assets starter template, and got the same error. Below is the error trace:

Parsing Summary Processing Assets_fmp12.xml Parsing ScriptCatalog Parsing ScriptCatalog/Group[1] Parsing ScriptCatalog/Group[2] Parsing ScriptCatalog/Group[2]/Group Parsing LayoutCatalog Parsing LayoutCatalog/Group[1] Parsing LayoutCatalog/Group[2] Parsing LayoutCatalog/Group[3] Parsing ValueListCatalog Parsing BaseTableCatalog Parsing CustomFunctionCatalog Parsing CustomMenuSetCatalog Parsing CustomMenuCatalog Parsing AccountCatalog Parsing PrivilegesCatalog Parsing ExtendedPrivilegeCatalog Parsing RelationshipGraph Parsing AuthFileCatalog Parsing ExternalDataSourcesCatalog Parsing Options Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:493:in block in define_content_procs': undefined method[]' for nil:NilClass (NoMethodError) from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:147:in call' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:147:inblock in parse_fmp_obj' from /Users/username/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:187:in block in each' from /Users/username/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:186:inupto' from /Users/username/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:186:in each' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:124:inparse_fmp_obj' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:47:in initialize' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:54:innew' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:54:in block in process_reports' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:51:ineach' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:51:in process_reports' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/exe/fmpvc:46:in' from /Users/username/.rvm/gems/ruby-2.1.2/bin/fmpvc:23:in load' from /Users/username/.rvm/gems/ruby-2.1.2/bin/fmpvc:23:in

' from /Users/username/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in eval' from /Users/username/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in

Thanks,

Julio

— Reply to this email directly or view it on GitHub.

jplasencia commented 9 years ago

Thanks Martin,

I used FileMaker 12. Now that you mention it, I will try generating a DDR with 13 and will let you know if it works.

Thanks,

Julio

On Fri, Jun 19, 2015 at 2:14 PM, Martin Boswell notifications@github.com wrote:

Julio,

I'll take a look at this. I'm about to get on an airplane for 12 hours, so it may be a few days before I can really get into it. Can you tell me which version of FileMaker you used to generate the DDR?

  • Martin

On Jun 19, 2015, at 8:42 AM, jplasencia notifications@github.com wrote:

Hello, I'm getting the following error when I run this. First, I was having the issue with a large ddr_report involving multiple files, but then I tried using the FileMaker Assets starter template, and got the same error. Below is the error trace:

Parsing Summary Processing Assets_fmp12.xml Parsing ScriptCatalog Parsing ScriptCatalog/Group[1] Parsing ScriptCatalog/Group[2] Parsing ScriptCatalog/Group[2]/Group Parsing LayoutCatalog Parsing LayoutCatalog/Group[1] Parsing LayoutCatalog/Group[2] Parsing LayoutCatalog/Group[3] Parsing ValueListCatalog Parsing BaseTableCatalog Parsing CustomFunctionCatalog Parsing CustomMenuSetCatalog Parsing CustomMenuCatalog Parsing AccountCatalog Parsing PrivilegesCatalog Parsing ExtendedPrivilegeCatalog Parsing RelationshipGraph Parsing AuthFileCatalog Parsing ExternalDataSourcesCatalog Parsing Options

Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:493:in block in define_content_procs': undefined method[]' for nil:NilClass (NoMethodError) from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:147:in call' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:147:inblock in parse_fmp_obj' from /Users/username/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:187:in block in each' from /Users/username/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:186:inupto' from /Users/username/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:186:in each' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:124:inparse_fmp_obj' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:47:in initialize' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:54:innew' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:54:in block in process_reports' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:51:ineach' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:51:in process_reports' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/exe/fmpvc:46:in' from /Users/username/.rvm/gems/ruby-2.1.2/bin/fmpvc:23:in load' from /Users/username/.rvm/gems/ruby-2.1.2/bin/fmpvc:23:in

' from /Users/username/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in eval' from /Users/username/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in

Thanks,

Julio

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/MartinBoswell/fmpvc/issues/1#issuecomment-113595667.

jplasencia commented 9 years ago

Tried it on FM13 and it worked! I guess this is a Pre-13 issue. I can just use 13 moving forward. Thanks for the quick reply! This gem is awesome! We are planning to use it to version control our internal FileMaker databases.

Thanks,

Julio

On Fri, Jun 19, 2015 at 2:29 PM, Julio Plasencia julioplasencia@gmail.com wrote:

Thanks Martin,

I used FileMaker 12. Now that you mention it, I will try generating a DDR with 13 and will let you know if it works.

Thanks,

Julio

On Fri, Jun 19, 2015 at 2:14 PM, Martin Boswell notifications@github.com wrote:

Julio,

I'll take a look at this. I'm about to get on an airplane for 12 hours, so it may be a few days before I can really get into it. Can you tell me which version of FileMaker you used to generate the DDR?

  • Martin

On Jun 19, 2015, at 8:42 AM, jplasencia notifications@github.com wrote:

Hello, I'm getting the following error when I run this. First, I was having the issue with a large ddr_report involving multiple files, but then I tried using the FileMaker Assets starter template, and got the same error. Below is the error trace:

Parsing Summary Processing Assets_fmp12.xml Parsing ScriptCatalog Parsing ScriptCatalog/Group[1] Parsing ScriptCatalog/Group[2] Parsing ScriptCatalog/Group[2]/Group Parsing LayoutCatalog Parsing LayoutCatalog/Group[1] Parsing LayoutCatalog/Group[2] Parsing LayoutCatalog/Group[3] Parsing ValueListCatalog Parsing BaseTableCatalog Parsing CustomFunctionCatalog Parsing CustomMenuSetCatalog Parsing CustomMenuCatalog Parsing AccountCatalog Parsing PrivilegesCatalog Parsing ExtendedPrivilegeCatalog Parsing RelationshipGraph Parsing AuthFileCatalog Parsing ExternalDataSourcesCatalog Parsing Options

Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:493:in block in define_content_procs': undefined method[]' for nil:NilClass (NoMethodError) from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:147:in call' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:147:inblock in parse_fmp_obj' from /Users/username/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:187:in block in each' from /Users/username/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:186:inupto' from /Users/username/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:186:in each' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:124:inparse_fmp_obj' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:47:in initialize' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:54:innew' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:54:in block in process_reports' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:51:ineach' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:51:in process_reports' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/exe/fmpvc:46:in' from /Users/username/.rvm/gems/ruby-2.1.2/bin/fmpvc:23:in load' from /Users/username/.rvm/gems/ruby-2.1.2/bin/fmpvc:23:in

' from /Users/username/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in eval' from /Users/username/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in

Thanks,

Julio

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/MartinBoswell/fmpvc/issues/1#issuecomment-113595667.

MartinBoswell commented 9 years ago

Julio,

Yes, I'm aware of the problem with version 12. It's actually simple to fix, I just haven't had a chance to do it. I definitely need to get a notice up about the issue.

I'm glad it's working for you. Let me know if you have any more problems.

On Jun 19, 2015, at 11:54 AM, jplasencia notifications@github.com wrote:

Tried it on FM13 and it worked! I guess this is a Pre-13 issue. I can just use 13 moving forward. Thanks for the quick reply! This gem is awesome! We are planning to use it to version control our internal FileMaker databases.

Thanks,

Julio

On Fri, Jun 19, 2015 at 2:29 PM, Julio Plasencia julioplasencia@gmail.com wrote:

Thanks Martin,

I used FileMaker 12. Now that you mention it, I will try generating a DDR with 13 and will let you know if it works.

Thanks,

Julio

On Fri, Jun 19, 2015 at 2:14 PM, Martin Boswell notifications@github.com wrote:

Julio,

I'll take a look at this. I'm about to get on an airplane for 12 hours, so it may be a few days before I can really get into it. Can you tell me which version of FileMaker you used to generate the DDR?

  • Martin

On Jun 19, 2015, at 8:42 AM, jplasencia notifications@github.com wrote:

Hello, I'm getting the following error when I run this. First, I was having the issue with a large ddr_report involving multiple files, but then I tried using the FileMaker Assets starter template, and got the same error. Below is the error trace:

Parsing Summary Processing Assets_fmp12.xml Parsing ScriptCatalog Parsing ScriptCatalog/Group[1] Parsing ScriptCatalog/Group[2] Parsing ScriptCatalog/Group[2]/Group Parsing LayoutCatalog Parsing LayoutCatalog/Group[1] Parsing LayoutCatalog/Group[2] Parsing LayoutCatalog/Group[3] Parsing ValueListCatalog Parsing BaseTableCatalog Parsing CustomFunctionCatalog Parsing CustomMenuSetCatalog Parsing CustomMenuCatalog Parsing AccountCatalog Parsing PrivilegesCatalog Parsing ExtendedPrivilegeCatalog Parsing RelationshipGraph Parsing AuthFileCatalog Parsing ExternalDataSourcesCatalog Parsing Options

Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:493:in block in define_content_procs': undefined method[]' for nil:NilClass (NoMethodError) from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:147:in call' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:147:inblock in parse_fmp_obj' from /Users/username/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:187:in block in each' from /Users/username/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:186:inupto' from /Users/username/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:186:in each' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:124:inparse_fmp_obj' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:47:in initialize' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:54:innew' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:54:in block in process_reports' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:51:ineach' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:51:in process_reports' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/exe/fmpvc:46:in' from /Users/username/.rvm/gems/ruby-2.1.2/bin/fmpvc:23:in load' from /Users/username/.rvm/gems/ruby-2.1.2/bin/fmpvc:23:in

' from /Users/username/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in eval' from /Users/username/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in

Thanks,

Julio

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/MartinBoswell/fmpvc/issues/1#issuecomment-113595667.

— Reply to this email directly or view it on GitHub.

MartinBoswell commented 9 years ago

Julio,

I updated fmpvc to version 0.3.3.  This version should work properly with FileMaker 11, 12, 13, and 14.  I hope it works for you.

On Jun 19, 2015, at 11:29 AM, jplasencia notifications@github.com wrote:

Thanks Martin,

I used FileMaker 12. Now that you mention it, I will try generating a DDR with 13 and will let you know if it works.

Thanks,

Julio

On Fri, Jun 19, 2015 at 2:14 PM, Martin Boswell notifications@github.com wrote:

Julio,

I'll take a look at this. I'm about to get on an airplane for 12 hours, so it may be a few days before I can really get into it. Can you tell me which version of FileMaker you used to generate the DDR?

  • Martin

On Jun 19, 2015, at 8:42 AM, jplasencia notifications@github.com wrote:

Hello, I'm getting the following error when I run this. First, I was having the issue with a large ddr_report involving multiple files, but then I tried using the FileMaker Assets starter template, and got the same error. Below is the error trace:

Parsing Summary Processing Assets_fmp12.xml Parsing ScriptCatalog Parsing ScriptCatalog/Group[1] Parsing ScriptCatalog/Group[2] Parsing ScriptCatalog/Group[2]/Group Parsing LayoutCatalog Parsing LayoutCatalog/Group[1] Parsing LayoutCatalog/Group[2] Parsing LayoutCatalog/Group[3] Parsing ValueListCatalog Parsing BaseTableCatalog Parsing CustomFunctionCatalog Parsing CustomMenuSetCatalog Parsing CustomMenuCatalog Parsing AccountCatalog Parsing PrivilegesCatalog Parsing ExtendedPrivilegeCatalog Parsing RelationshipGraph Parsing AuthFileCatalog Parsing ExternalDataSourcesCatalog Parsing Options

Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:493:in block in define_content_procs': undefined method[]' for nil:NilClass (NoMethodError) from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:147:in call' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:147:inblock in parse_fmp_obj' from /Users/username/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:187:in block in each' from /Users/username/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:186:inupto' from /Users/username/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:186:in each' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:124:inparse_fmp_obj' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:47:in initialize' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:54:innew' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:54:in block in process_reports' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:51:ineach' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:51:in process_reports' from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/exe/fmpvc:46:in' from /Users/username/.rvm/gems/ruby-2.1.2/bin/fmpvc:23:in load' from /Users/username/.rvm/gems/ruby-2.1.2/bin/fmpvc:23:in

' from /Users/username/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in eval' from /Users/username/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in

Thanks,

Julio

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/MartinBoswell/fmpvc/issues/1#issuecomment-113595667.

— Reply to this email directly or view it on GitHub.

jplasencia commented 9 years ago

Thank you sir! You are truly a gentleman.

I will try this out tomorrow with a very large design report and will let you know how it goes.

Thanks,

Julio Julio,

I updated fmpvc to version 0.3.3. This version should work properly with FileMaker 11, 12, 13, and 14. I hope it works for you.

On Jun 19, 2015, at 11:29 AM, jplasencia notifications@github.com wrote:

Thanks Martin,

I used FileMaker 12. Now that you mention it, I will try generating a DDR with 13 and will let you know if it works.

Thanks,

Julio

On Fri, Jun 19, 2015 at 2:14 PM, Martin Boswell notifications@github.com wrote:

Julio,

I'll take a look at this. I'm about to get on an airplane for 12 hours, so it may be a few days before I can really get into it. Can you tell me which version of FileMaker you used to generate the DDR?

  • Martin

On Jun 19, 2015, at 8:42 AM, jplasencia notifications@github.com wrote:

Hello, I'm getting the following error when I run this. First, I was having the issue with a large ddr_report involving multiple files, but then I tried using the FileMaker Assets starter template, and got the same error. Below is the error trace:

Parsing Summary Processing Assets_fmp12.xml Parsing ScriptCatalog Parsing ScriptCatalog/Group[1] Parsing ScriptCatalog/Group[2] Parsing ScriptCatalog/Group[2]/Group Parsing LayoutCatalog Parsing LayoutCatalog/Group[1] Parsing LayoutCatalog/Group[2] Parsing LayoutCatalog/Group[3] Parsing ValueListCatalog Parsing BaseTableCatalog Parsing CustomFunctionCatalog Parsing CustomMenuSetCatalog Parsing CustomMenuCatalog Parsing AccountCatalog Parsing PrivilegesCatalog Parsing ExtendedPrivilegeCatalog Parsing RelationshipGraph Parsing AuthFileCatalog Parsing ExternalDataSourcesCatalog Parsing Options

Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:493:in block in define_content_procs': undefined method[]' for nil:NilClass (NoMethodError)

from

/Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:147:in call'

from

/Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:147:inblock in parse_fmp_obj'

from

/Users/username/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:187:in block in each'

from

/Users/username/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:186:inupto'

from

/Users/username/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:186:in each'

from

/Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:124:inparse_fmp_obj'

from

/Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/fmpreport.rb:47:in initialize'

from

/Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:54:innew'

from

/Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:54:in block in process_reports'

from

/Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:51:ineach'

from

/Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/lib/fmpvc/ddr.rb:51:in process_reports'

from /Users/username/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.2/exe/fmpvc:46:in' from /Users/username/.rvm/gems/ruby-2.1.2/bin/fmpvc:23:in load' from /Users/username/.rvm/gems/ruby-2.1.2/bin/fmpvc:23:in

' from /Users/username/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in eval' from /Users/username/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in

Thanks,

Julio

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/MartinBoswell/fmpvc/issues/1#issuecomment-113595667.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub https://github.com/MartinBoswell/fmpvc/issues/1#issuecomment-113922371.

MartinBoswell commented 9 years ago

Unless Julio reports further problems, this issue is closed.

jplasencia commented 9 years ago

Hi Martin,

Sorry it took me a while to test this. I have been out of the office most of the week.

I tried this on a single FileMaker 12 design report and did not get any errors. But then I tried running on a very large design report (1.78gb) of about 77 files, here's what I get:

fm $ fmpvc Parsing Summary Processing File1_fmp12.xml Parsing ScriptCatalog Parsing LayoutCatalog Parsing LayoutCatalog/Group Parsing ValueListCatalog Parsing BaseTableCatalog Parsing CustomFunctionCatalog Parsing CustomMenuSetCatalog Parsing CustomMenuCatalog Parsing AccountCatalog Parsing PrivilegesCatalog Parsing ExtendedPrivilegeCatalog Parsing RelationshipGraph Parsing AuthFileCatalog Parsing ExternalDataSourcesCatalog Parsing Options Parsing ThemeCatalog Processing File2_fmp12.xml Parsing ScriptCatalog Parsing LayoutCatalog Parsing ValueListCatalog Parsing BaseTableCatalog Parsing CustomFunctionCatalog Parsing CustomMenuSetCatalog Parsing CustomMenuCatalog Parsing AccountCatalog Parsing PrivilegesCatalog Parsing ExtendedPrivilegeCatalog Parsing RelationshipGraph Parsing AuthFileCatalog Parsing ExternalDataSourcesCatalog Parsing Options Parsing ThemeCatalog Processing File3_fmp12.xml Parsing ScriptCatalog Parsing ScriptCatalog/Group[1] Parsing ScriptCatalog/Group[1]/Group[1] Parsing ScriptCatalog/Group[1]/Group[2] Parsing ScriptCatalog/Group[2] Parsing ScriptCatalog/Group[3] Parsing ScriptCatalog/Group[4] Parsing ScriptCatalog/Group[5] Parsing ScriptCatalog/Group[5]/Group Parsing ScriptCatalog/Group[6] Parsing ScriptCatalog/Group[6]/Group[1] Parsing ScriptCatalog/Group[6]/Group[2] Parsing ScriptCatalog/Group[6]/Group[3] Parsing ScriptCatalog/Group[6]/Group[3]/Group Parsing ScriptCatalog/Group[6]/Group[4] Parsing ScriptCatalog/Group[7] Parsing ScriptCatalog/Group[8] Parsing ScriptCatalog/Group[9] Parsing ScriptCatalog/Group[10] Parsing ScriptCatalog/Group[11] Parsing ScriptCatalog/Group[12] Parsing ScriptCatalog/Group[13] Parsing ScriptCatalog/Group[14] Parsing ScriptCatalog/Group[15] Parsing ScriptCatalog/Group[16] Parsing ScriptCatalog/Group[17] Parsing ScriptCatalog/Group[17]/Group Parsing ScriptCatalog/Group[18] Parsing ScriptCatalog/Group[19] Parsing ScriptCatalog/Group[20] Parsing LayoutCatalog Parsing LayoutCatalog/Group[1] Parsing LayoutCatalog/Group[1]/Group[1] Parsing LayoutCatalog/Group[1]/Group[2] Parsing LayoutCatalog/Group[1]/Group[3] Parsing LayoutCatalog/Group[1]/Group[4] Parsing LayoutCatalog/Group[2] Parsing LayoutCatalog/Group[3] Parsing LayoutCatalog/Group[3]/Group[1] Parsing LayoutCatalog/Group[3]/Group[2] Parsing LayoutCatalog/Group[3]/Group[3] Parsing LayoutCatalog/Group[4] Parsing LayoutCatalog/Group[4]/Group[1] Parsing LayoutCatalog/Group[4]/Group[2] Parsing LayoutCatalog/Group[5] Parsing LayoutCatalog/Group[5]/Group[1] Parsing LayoutCatalog/Group[5]/Group[2] Parsing LayoutCatalog/Group[5]/Group[3] Parsing LayoutCatalog/Group[6] Parsing LayoutCatalog/Group[6]/Group[1] Parsing LayoutCatalog/Group[6]/Group[2] Parsing LayoutCatalog/Group[7] Parsing LayoutCatalog/Group[7]/Group[1] Parsing LayoutCatalog/Group[7]/Group[2] Parsing LayoutCatalog/Group[7]/Group[3] Parsing LayoutCatalog/Group[7]/Group[4] Parsing LayoutCatalog/Group[8] Parsing LayoutCatalog/Group[8]/Group[1] Parsing LayoutCatalog/Group[8]/Group[2] Parsing LayoutCatalog/Group[8]/Group[3] Parsing LayoutCatalog/Group[8]/Group[4] Parsing LayoutCatalog/Group[9] Parsing LayoutCatalog/Group[9]/Group[1] Parsing LayoutCatalog/Group[9]/Group[2] Parsing LayoutCatalog/Group[9]/Group[3] Parsing LayoutCatalog/Group[10] Parsing LayoutCatalog/Group[10]/Group Parsing LayoutCatalog/Group[11] Parsing LayoutCatalog/Group[11]/Group Parsing LayoutCatalog/Group[12] Parsing LayoutCatalog/Group[12]/Group[1] Parsing LayoutCatalog/Group[12]/Group[2] Parsing LayoutCatalog/Group[12]/Group[3] Parsing LayoutCatalog/Group[13] Parsing LayoutCatalog/Group[14] Parsing LayoutCatalog/Group[14]/Group[1] Parsing LayoutCatalog/Group[14]/Group[2] Parsing LayoutCatalog/Group[14]/Group[3] Parsing LayoutCatalog/Group[14]/Group[4] Parsing LayoutCatalog/Group[15] Parsing ValueListCatalog Parsing BaseTableCatalog Parsing CustomFunctionCatalog Parsing CustomMenuSetCatalog Parsing CustomMenuCatalog Parsing AccountCatalog Parsing PrivilegesCatalog Parsing ExtendedPrivilegeCatalog Parsing RelationshipGraph Parsing AuthFileCatalog Parsing ExternalDataSourcesCatalog Parsing Options Parsing ThemeCatalog Processing File4_fmp12.xml Parsing ScriptCatalog Parsing ScriptCatalog/Group Parsing LayoutCatalog Parsing ValueListCatalog Parsing BaseTableCatalog Parsing CustomFunctionCatalog Parsing CustomMenuSetCatalog Parsing CustomMenuCatalog Parsing AccountCatalog Parsing PrivilegesCatalog Parsing ExtendedPrivilegeCatalog Parsing RelationshipGraph Parsing AuthFileCatalog Parsing ExternalDataSourcesCatalog Parsing Options Parsing ThemeCatalog Processing File5_fmp12.xml Parsing ScriptCatalog Parsing ScriptCatalog/Group[1] Parsing ScriptCatalog/Group[2] Parsing ScriptCatalog/Group[3] Parsing ScriptCatalog/Group[4] Parsing ScriptCatalog/Group[5] Parsing ScriptCatalog/Group[6] Parsing ScriptCatalog/Group[7] Parsing ScriptCatalog/Group[8] Parsing ScriptCatalog/Group[9] Parsing ScriptCatalog/Group[10] Parsing ScriptCatalog/Group[11] Parsing ScriptCatalog/Group[12] Parsing ScriptCatalog/Group[13] Parsing ScriptCatalog/Group[14] Parsing ScriptCatalog/Group[15] Parsing ScriptCatalog/Group[16] Parsing ScriptCatalog/Group[17] Parsing ScriptCatalog/Group[18] Parsing ScriptCatalog/Group[19] Parsing ScriptCatalog/Group[20] Parsing ScriptCatalog/Group[21] Parsing ScriptCatalog/Group[22] Parsing ScriptCatalog/Group[23] Parsing ScriptCatalog/Group[24] Parsing ScriptCatalog/Group[24]/Group[1] Parsing ScriptCatalog/Group[24]/Group[2] Parsing ScriptCatalog/Group[24]/Group[3] Parsing LayoutCatalog Parsing LayoutCatalog/Group[1] Parsing LayoutCatalog/Group[2] Parsing LayoutCatalog/Group[3] Parsing LayoutCatalog/Group[4] Parsing ValueListCatalog Parsing BaseTableCatalog Parsing CustomFunctionCatalog Parsing CustomMenuSetCatalog Parsing CustomMenuCatalog /Users/user.account/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.3/lib/fmpvc/fmpreport.rb:268:in block in define_content_procs': undefined method[]' for nil:NilClass (NoMethodError) from /Users/user.account/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.3/lib/fmpvc/fmpreport.rb:147:in call' from /Users/user.account/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.3/lib/fmpvc/fmpreport.rb:147:in block in parse_fmp_obj' from /Users/user.account/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:187:in block in each' from /Users/user.account/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:186:in upto' from /Users/user.account/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:186:in each' from /Users/user.account/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.3/lib/fmpvc/fmpreport.rb:124:in parse_fmp_obj' from /Users/user.account/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.3/lib/fmpvc/fmpreport.rb:39:in initialize' from /Users/user.account/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.3/lib/fmpvc/ddr.rb:54:in new' from /Users/user.account/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.3/lib/fmpvc/ddr.rb:54:in block in process_reports' from /Users/user.account/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.3/lib/fmpvc/ddr.rb:51:in each' from /Users/user.account/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.3/lib/fmpvc/ddr.rb:51:in process_reports' from /Users/user.account/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.3/exe/fmpvc:46:in <top (required)>' from /Users/user.account/.rvm/gems/ruby-2.1.2/bin/fmpvc:23:in load' from /Users/user.account/.rvm/gems/ruby-2.1.2/bin/fmpvc:23:in

' from /Users/user.account/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in eval' from /Users/user.account/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in
'

Any ideas?

Thanks,

Julio

On Thu, Jun 25, 2015 at 12:01 PM, Martin Boswell notifications@github.com wrote:

Unless Julio reports further problems, this issue is closed.

— Reply to this email directly or view it on GitHub https://github.com/MartinBoswell/fmpvc/issues/1#issuecomment-115304339.

MartinBoswell commented 9 years ago

Julio, I figured out where this additional problem is coming from. I have a fix, and should be able to implement it in the next couple of days...

jplasencia commented 9 years ago

Hi Martin,

Thanks. I will run it again then.

Julio

On Wed, Jul 1, 2015 at 1:01 AM, Martin Boswell notifications@github.com wrote:

Julio, I figured out where this additional problem is coming from. I have a fix, and should be able to implement it in the next couple of days...

  • Martin

— Reply to this email directly or view it on GitHub https://github.com/MartinBoswell/fmpvc/issues/1#issuecomment-117434131.

MartinBoswell commented 9 years ago

Julio,

I just uploaded version 0.3.4, which I believe will fix your problem. I think that you're having the same problem as that in issue #3.

Let me know how that works for you.

acsr commented 9 years ago

I can confirm it is the same error schema like my issue #3 that I closed now. It is solved for me now. It would be cool if @jplasencia can confirm that as well and close it. I tagged him because i missed to watch the project myself and was not pinged about the fix. Hope this helps.

jplasencia commented 9 years ago

Hi Martin,

In my case, it runs for a while, then I get the error below:

Parsing LayoutCatalog/Group[1] Parsing LayoutCatalog/Group[2] Parsing LayoutCatalog/Group[2]/Group Parsing ValueListCatalog Parsing BaseTableCatalog /Users/ user.name/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/searchable.rb:165:in evaluate': Invalid predicate: //BaseTable[@name='Raymond's Purification Shop']/FieldCatalog/*[name()='Field'] (Nokogiri::XML::XPath::SyntaxError) from /Users/ user.name/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/searchable.rb:165:in block in xpath' from /Users/ user.name/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/searchable.rb:156:in map' from /Users/ user.name/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/searchable.rb:156:in xpath' from /Users/ user.name/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.4/lib/fmpvc/fmpreport.rb:248:in block in define_content_procs' from /Users/ user.name/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.4/lib/fmpvc/fmpreport.rb:157:in call' from /Users/ user.name/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.4/lib/fmpvc/fmpreport.rb:157:in block in parse_fmp_obj' from /Users/ user.name/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:187:in block in each' from /Users/ user.name/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:186:in upto' from /Users/ user.name/.rvm/gems/ruby-2.1.2/gems/nokogiri-1.6.6.2/lib/nokogiri/xml/node_set.rb:186:in each' from /Users/ user.name/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.4/lib/fmpvc/fmpreport.rb:134:in parse_fmp_obj' from /Users/ user.name/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.4/lib/fmpvc/fmpreport.rb:36:in initialize' from /Users/ user.name/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.4/lib/fmpvc/ddr.rb:54:in new' from /Users/ user.name/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.4/lib/fmpvc/ddr.rb:54:in block in process_reports' from /Users/ user.name/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.4/lib/fmpvc/ddr.rb:51:in each' from /Users/ user.name/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.4/lib/fmpvc/ddr.rb:51:in process_reports' from /Users/user.name/.rvm/gems/ruby-2.1.2/gems/fmpvc-0.3.4/exe/fmpvc:49:in <top (required)>' from /Users/user.name/.rvm/gems/ruby-2.1.2/bin/fmpvc:23:inload' from /Users/user.name/.rvm/gems/ruby-2.1.2/bin/fmpvc:23:in <main>' from /Users/user.name/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks:15:in eval'

It does create a folder for each of the files, but the folders are empty.

Julio

On Sun, Jul 5, 2015 at 11:22 AM, Armin Stross-Radschinski < notifications@github.com> wrote:

I can confirm it is the same error schema like my issue #3 https://github.com/MartinBoswell/fmpvc/issues/3 that I closed now. It is solved for me now. It would be cool if @jplasencia https://github.com/jplasencia can confirm that as well and close it. I tagged him because i missed to watch the project myself and was not pinged about the fix. Hope this helps.

— Reply to this email directly or view it on GitHub https://github.com/MartinBoswell/fmpvc/issues/1#issuecomment-118631951.

MartinBoswell commented 9 years ago

Julio, I believe that the problem has to do with the single-quote (') in the name of the table. I'll address this, but it will take me at least a few days, as I'm (far) away from home on vacation.

jplasencia commented 9 years ago

Martin, you are correct! I removed the single-quote and it worked like a charm - processing all 1.78gb of our ddr.

Thanks,

Julio

On Tue, Jul 7, 2015 at 12:46 PM, Martin Boswell notifications@github.com wrote:

Julio, I believe that the problem has to do with the single-quote (') in the name of the table. I'll address this, but it will take me at least a few days, as I'm (far) away from home on vacation.

— Reply to this email directly or view it on GitHub https://github.com/MartinBoswell/fmpvc/issues/1#issuecomment-119264958.

MartinBoswell commented 9 years ago

Update: I'm working on the quoting issue. Nokogiri is not making it easy...

MartinBoswell commented 9 years ago

Julio, this should be fixed in version 0.3.5 that I just posted. That is, single-quotes in table names should no longer be a problem.

By the way, be sure to take note of this warning that I placed at the top of the README:

Warning: with version changes in FMPVC, output format or content may change with no change to the underlying FileMaker files or their DDR. Therefore, when using FMPVC with a version control system, it is prudent to only run a new version fmpvc on a clean repository and check for differences before proceeding.