News:

  • August 25, 2026, 12:46:28 AM

Login with username, password and session length

Author Topic: Internal error when pasting code block to existing project  (Read 12705 times)

ElroyJetson

  • Full Member
  • ***
  • Posts: 36
Internal error when pasting code block to existing project
« on: March 28, 2017, 08:57:32 AM »
I am trying to paste a code block from a working program into an existing project when I get an error.
I have pasted multiple code blocks into this project successfully, so I'm not sure what the issue is with this one...

 ???

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3843
    • Host Engineering
Re: Internal error when pasting code block to existing project
« Reply #1 on: March 28, 2017, 09:32:42 AM »
Make sure you can create a new DISK project and save it to disk.

Specifically, make sure your "Projects" folder exists and that you can write to it.  See File->Manage Projects->Folder Settings to see your specific Projects folder path, then use Windows to browse to that folder to make sure it exists.

ElroyJetson

  • Full Member
  • ***
  • Posts: 36
Re: Internal error when pasting code block to existing project
« Reply #2 on: March 28, 2017, 10:17:43 AM »
Everything looks o.k. there.
I had pasted other code blocks from that project into the other project, but when I got to that one, I got the error.
Its not a large block, I can just re-write it in the destination project, just seemed strange.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3843
    • Host Engineering
Re: Internal error when pasting code block to existing project
« Reply #3 on: March 28, 2017, 10:30:12 AM »
Try rebooting (it couldn't hurt).

ElroyJetson

  • Full Member
  • ***
  • Posts: 36
Re: Internal error when pasting code block to existing project
« Reply #4 on: March 28, 2017, 11:39:58 AM »
Looks as though 2 rungs in the program block were the problem for pasting. There was a math box with a move instruction in each rung that would not paste. No rule violations and the program worked....?? Typed them manually into the new project..

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3843
    • Host Engineering
Re: Internal error when pasting code block to existing project
« Reply #5 on: March 28, 2017, 01:57:10 PM »
Can you paste the source "code block" clip (not the rungs, but the "code block") into an email and send it to support@hosteng.com?  Put "Paste Bug" in the subject line.

What version(s) of Designer are you using (both the source clip and the destination paste)?

ElroyJetson

  • Full Member
  • ***
  • Posts: 36
Re: Internal error when pasting code block to existing project
« Reply #6 on: March 29, 2017, 11:01:33 AM »
Could not paste the code block due to the error, but I sent the project with just the code block that had the problem. The 2 rungs in that code block will not paste into other code blocks or projects.

Probably something I did wrong...... :D
« Last Edit: March 29, 2017, 11:03:28 AM by ElroyJetson »

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3843
    • Host Engineering
Re: Internal error when pasting code block to existing project
« Reply #7 on: March 29, 2017, 12:15:37 PM »
It's a bug.  Designer's generated nickname section in the clip is invalid, hence when you PASTE, it FAILS.

Code: [Select]
#BEGIN ELEMENT_DOC
"CT10.Acc","Machine_Count.Ac","","Part count from machine"
#END

That should just be the nickname for the CT10, not CT10.Acc:

Code: [Select]
#BEGIN ELEMENT_DOC
"CT10","Machine_Count","","Part count from machine"
#END

It's a bug in 2.0.  It's a bug in 1.4.  Not sure when it was introduced and why we have not seen this.   ???

Hopefully we will get this fixed quickly.  Sorry about that.


Turned out the clip generated the data correctly from the source.  The nickname itself was invalid  :o (see my later post).  Gotta figure out how THAT happened.
« Last Edit: March 29, 2017, 01:27:43 PM by franji1 »

ElroyJetson

  • Full Member
  • ***
  • Posts: 36
Re: Internal error when pasting code block to existing project
« Reply #8 on: March 29, 2017, 12:21:33 PM »
Not a problem. Glad to help... I've got that kind of luck "finding" those types of things.
At least it makes me feel like I've done something somewhat productive... ;D

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3843
    • Host Engineering
Re: Internal error when pasting code block to existing project
« Reply #9 on: March 29, 2017, 01:25:29 PM »
Elroy, I sent you an email (tell Astro I said "hi!").

After digging deeper, the issue is not in the CLIP GENERATION, but the actual database nickname field was invalid from the start (that nickname contained a dot, which is not allowed).  THAT is the root cause if this issue.

If we can figure out how THAT happened, that would be great.