[Solved] Unknown exception Can't find any element for attaching member access

0 votes
asked Dec 19, 2013 in Solved by canberkol (280 points)
recategorized Jan 17, 2014 by ludek.vodicka

I am getting this error:

Unknown exception
Can't find any element for attaching member access

Any idea what triggers this exception? I didn't change anything, and everything was working yesterday.

Thanks.
Can

1 Answer

0 votes
answered Dec 19, 2013 by canberkol (280 points)
selected Jul 30, 2014 by Martin Freki Stradej
 
Best answer

nevermind, I figured it out.

The problem was with a non-english character in function definition in one of my entities. It's a typing error.

example:

function getId(){ ..... was written as function getİd(){ .....

commented Dec 19, 2013 by Email support (1,420 points)

Thank you for reporting bug and also a reason. Could you send me ([email protected]) some short example with invalid character so we can fix it permanently?

commented Feb 13, 2014 by saitx (440 points)
Q:\Applications\OrmDesigner2\OrmDesigner2\axLibraries\axProgramParser2\ast\codeUpdaters\astUpdaterOptimize.cpp(78): Throw in function ProgramParser2::CAstUpdaterBase::TenmUpdaterResult __thiscall ProgramParser2::CAstUpdaterOptimize::OptimizeAstMemberModifier(class ProgramParser2::CAstHierachyElement &,class ProgramParser2::CAstElement &,class std::_List_iterator<class std::_List_val<class ProgramParser2::CAstElement *,class std::allocator<class ProgramParser2::CAstElement *> > >)
Dynamic exception type: struct Atomix::exception
std::exception::what: Unknown exception
Can't find any element for attaching member access

I think its a language issue with Turkish. I am having the exact same problem. Some characters are saved as İ (instead of I). canberkol prolly has a turkish os. My english mac doesnt have the same issue.

commented Feb 14, 2014 by Martin Freki Stradej Skipper developer (74,840 points)

This really seems like an issue with transferring Turkish characters to xml. But I would need more info to test and fix this:

1) The same exact schema file causes the crash on the Turkish OS, but not on the English one?
2) Can you send me a schema file that causes the crash to [email protected]? With such file we can properly test it on our side.

You don't have to send file file from actual project, it can be some example that can be imported on the English OS but not on the Turkish one.

commented Feb 15, 2014 by saitx (440 points)

1) It does crash once there is a turkish character in the file. Whether its importing or exporting. For my case the error was caused when I generated setters and getters from my IDE which set Turkish containing setters and getters. Which causes an issue on ORM Designer.

2) I have sent you the file as an attachment.

  /** 
 * @ORM\Id
 * @ORM\Column(type="integer", name="id")
 * @ORM\GeneratedValue(strategy="AUTO")
 */
private $id;

/**
 * @param mixed $id
 */
public function setİd($id)
{
    $this->id = $id;
}

/**
 * @return mixed
 */
public function getİd()
{
    return $this->id;
}
commented Feb 15, 2014 by ludek.vodicka Skipper developer (140,450 points)

Thank you for detailed description and sending test file. We will check it and let you know.

...