Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Editing Algorithms in 4diac(What are the cut, copy and paste commands in the Algorithm window?)
Editing Algorithms in 4diac [message #1848397] Wed, 01 December 2021 07:47 Go to next message
Barry Dowdeswell is currently offline Barry DowdeswellFriend
Messages: 49
Registered: November 2018
Member
Hi,
I am experimenting with writing all my function block algorithms directly in the 4diac IDE rather than patching the .cpp and ,h files manually after exporting. I have set the Language to AnyText.

However, in the Algorithm window, editing commands like Ctrl-C for copy and Ctrl-V for paste do not work. Are there special key combinations that do?

Also, is there any 4diac setting which will stop the code generator creating these lines?

#pragma GCC warning "Algorithm of type: 'AnyText' may lead to unexpected results!"
#pragma message ("warning Algorithm of type: 'AnyText' may lead to unexpected results!")

I am running under Linux in 4diac-ide 1.14.0 Build 2021-05-05_1658.

Thank you,
Barry

[Updated on: Wed, 01 December 2021 08:00]

Report message to a moderator

Re: Editing Algorithms in 4diac [message #1848399 is a reply to message #1848397] Wed, 01 December 2021 10:26 Go to previous messageGo to next message
Martin Melik Merkumians is currently offline Martin Melik MerkumiansFriend
Messages: 117
Registered: March 2016
Senior Member
Hi Barry,

"However, in the Algorithm window, editing commands like Ctrl-C for copy and Ctrl-V for paste do not work. Are there special key combinations that do?" - As far as I know, that's a bug, and they are not working properly.

"#pragma GCC warning "Algorithm of type: 'AnyText' may lead to unexpected results!"
#pragma message ("warning Algorithm of type: 'AnyText' may lead to unexpected results!")"
No, there is no option currently

Best regards,
Martin
Re: Editing Algorithms in 4diac [message #1848426 is a reply to message #1848399] Wed, 01 December 2021 18:16 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

Hi Barry,

as martin said shortcuts for copy paste are currently not working. However right click and copy paste in the context menu is working. I hope this helps a little.

BR,
Alois
Re: Editing Algorithms in 4diac [message #1848433 is a reply to message #1848426] Thu, 02 December 2021 01:19 Go to previous messageGo to next message
Barry Dowdeswell is currently offline Barry DowdeswellFriend
Messages: 49
Registered: November 2018
Member
Thank you Alois and Martin - I appreciate you replying so quickly.

I checked the Menu-Bar menu but unfortunately that seems to be linked to the Algorithm list on the left in the picture I attached. Selecting text in the Algorithm window and then copy/paste from the menu just created new Algorithm entries in the list. Could I please log that as a bug?

Cheers,
Barry



[Updated on: Thu, 02 December 2021 01:20]

Report message to a moderator

Re: Editing Algorithms in 4diac [message #1848437 is a reply to message #1848433] Thu, 02 December 2021 07:31 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

Oh I completely forgot about this problem. Martin already reported it some time ago: https://bugs.eclipse.org/bugs/show_bug.cgi?id=575010
Currently I don't know yet how to fix it.
Re: Editing Algorithms in 4diac [message #1848444 is a reply to message #1848437] Thu, 02 December 2021 09:18 Go to previous messageGo to next message
Barry Dowdeswell is currently offline Barry DowdeswellFriend
Messages: 49
Registered: November 2018
Member
Thanks Alois,

I found a simple work-around. I created my new algorithm in an open Linux Text Editor window and was able to paste it in. It appears that once it is in the Linux clipboard buffer, you can then paste it into the algorithm window. You just can't select and copy text already in the Algorithm window at the moment.

[Updated on: Thu, 02 December 2021 09:19]

Report message to a moderator

Re: Editing Algorithms in 4diac [message #1848520 is a reply to message #1848444] Mon, 06 December 2021 21:03 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1585
Registered: January 2014
Senior Member

Hi Barry,
Thanks for letting us know the work around. Have to talk to Daniel maybe he has an idea I how we can finally fix Bug #575010

Alois
Previous Topic:Is 4DIAC support OSCAT library?
Next Topic:Is 4diac support uart/serial?
Goto Forum:
  


Current Time: Thu Apr 25 04:55:37 GMT 2024

Powered by FUDForum. Page generated in 0.03288 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top