Book a Demo

Author Topic: CodePath is empty (beta02)  (Read 8903 times)

thomas.kilian

  • Guest
CodePath is empty (beta02)
« on: March 05, 2008, 12:19:10 am »
Before filing a bug: has anybody else observed that CodePath (automation) does not deliver a value? I'm pretty sure it worked once :-?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: CodePath is empty (beta02)
« Reply #1 on: March 05, 2008, 12:52:31 am »
Regardless of "once" it should work now. Sounds like a bug to me.
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: CodePath is empty (beta02)
« Reply #2 on: March 05, 2008, 08:00:50 am »
Package.CodePath should give you whatever is saved in the database.  However, it isn't often written to by EA, so it will nearly always be empty.

The filename of a package that is visible via the gui is Package.Element.GenFile.

thomas.kilian

  • Guest
Re: CodePath is empty (beta02)
« Reply #3 on: March 05, 2008, 05:18:21 pm »
I might have omitted .Element (unfortunately it doesn't raise an error when an unknown method or attribute is accessed). So I'll try that later and I'll post the result.
Edit: Just tried it. Neither one does work. Will file a bug report.
« Last Edit: March 05, 2008, 09:38:23 pm by thomas.kilian »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: CodePath is empty (beta02)
« Reply #4 on: March 06, 2008, 02:23:46 am »
Quote
Package.CodePath should give you whatever is saved in the database.  However, it isn't often written to by EA, so it will nearly always be empty...
Still, this seems fragile. If the attribute is visible it should be dependable.

What happens (immediately and later) if you write a value to this attribute?

What happens if a user-supplied value conflicts with the GenFile attribute?

David
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: CodePath is empty (beta02)
« Reply #5 on: March 06, 2008, 07:03:43 am »
Quote
What happens (immediately and later) if you write a value to this attribute?

What happens if a user-supplied value conflicts with the GenFile attribute?

David
In a practical sense, this field is unused by EA.  (It's only ever set in two obscure places.)  It's then maintained by XMI round trip, and never used apart from the automation interface.

So, nothing happens if you write to it, and it won't cause any conflict.
« Last Edit: March 06, 2008, 07:04:34 am by simonm »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: CodePath is empty (beta02)
« Reply #6 on: March 06, 2008, 07:09:43 am »
So a bit of clarification in the documentation should do the trick. [He hints slyly.]
No, you can't have it!

thomas.kilian

  • Guest
Re: CodePath is empty (beta02)
« Reply #7 on: March 06, 2008, 08:10:41 am »
Bugger - it's Package.Element.GenFile I actually wanted to have :-[

Case closed.