<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Export for use with version control</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ef849265e5/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ef849265e5/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/ef849265e5/</id><updated>2020-02-27T14:21:02.730000Z</updated><subtitle>Recent posts to Export for use with version control</subtitle><entry><title>Export for use with version control</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ef849265e5/?limit=25#1b15" rel="alternate"/><published>2020-02-27T14:21:02.730000Z</published><updated>2020-02-27T14:21:02.730000Z</updated><author><name>skraft</name><uri>https://forge.codesys.com/u/skraft/</uri></author><id>https://forge.codesys.com18c88c1b91f6e9f4a2e83d8f9f7e1a0638d479d9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'll try all of those things, thanks for your thoughts!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Export for use with version control</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ef849265e5/?limit=25#0869" rel="alternate"/><published>2020-02-27T14:21:02.308000Z</published><updated>2020-02-27T14:21:02.308000Z</updated><author><name>i-campbell</name><uri>https://forge.codesys.com/u/i-campbell/</uri></author><id>https://forge.codesys.com56170ebc62f1380dfe3aa49ae7fc5fa89105ce10</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;ol&gt;
&lt;li&gt;Do you think it is possible, to set your GIT diff tool to CODESYS.exe --compare ?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;a class="" href="https://help.codesys.com/webapp/_cds_commandline;product=codesys;version=3.5.15.0" rel="nofollow"&gt;https://help.codesys.com/webapp/_cds_co ... n=3.5.15.0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://git-scm.com/docs/git-difftool" rel="nofollow"&gt;https://git-scm.com/docs/git-difftool&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;The same help.codesys link above explains how to run the CODESYS IDE python scripts from the command line.&lt;br/&gt;
The command line switch is --runscript&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Do you think the textconv git attribute can be used here to automatically display .project files as text? Especially with cache turned on?&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Search for textconv here &lt;a class="" href="https://git-scm.com/docs/gitattributes" rel="nofollow"&gt;https://git-scm.com/docs/gitattributes&lt;/a&gt; m &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Export for use with version control</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ef849265e5/?limit=25#8989" rel="alternate"/><published>2020-02-27T14:21:01.890000Z</published><updated>2020-02-27T14:21:01.890000Z</updated><author><name>bjh</name><uri>https://forge.codesys.com/u/bjh/</uri></author><id>https://forge.codesys.com352db996f002dda39b84c64677f8642ab3b20600</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have not used the load.py script from that user yet.  That error is exactly what it says - indentation is very important to Python so double check the scripts indentation levels.&lt;/p&gt;
&lt;p&gt;Also, you need to run export.py &lt;strong&gt;from within the Codeys IDE&lt;/strong&gt; to generate the required export text files first.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Export for use with version control</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ef849265e5/?limit=25#0b46" rel="alternate"/><published>2020-02-27T14:21:00.698000Z</published><updated>2020-02-27T14:21:00.698000Z</updated><author><name>skraft</name><uri>https://forge.codesys.com/u/skraft/</uri></author><id>https://forge.codesys.com26fdaaddf5ccf5693e97fbb9f40584749e6b30d9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;bjh hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
I made my own Python script to export my POUs etc. as text files for git management, but a few weeks ago I found a user on Github who has an even better version than mine!&lt;br/&gt;
&lt;a class="" href="https://github.com/18thCentury/CodeSys" rel="nofollow"&gt;https://github.com/18thCentury/CodeSys&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I pulled the two files from here, export.py and load.py, and couldn't run either one successfully.  It looked like load.py was what I wanted, as it had the project name in it.  This failed on an error right at the beginning:&lt;/p&gt;
&lt;p&gt;&lt;span style="color: #BF0000;"&gt;$ python load.py&lt;br/&gt;
  File "load.py", line 13&lt;br/&gt;
    func(proj,path,name)&lt;br/&gt;
    ^&lt;br/&gt;
IndentationError: expected an indented block&lt;br/&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Did you have to do anything to fix up this code, or did it run by just changing the hardcoded path names?  Maybe I have to use Python 2 instead of the Python 3 I've installed?&lt;/p&gt;
&lt;p&gt;Thanks for the help!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Export for use with version control</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ef849265e5/?limit=25#e4e7" rel="alternate"/><published>2020-02-27T14:21:00.304000Z</published><updated>2020-02-27T14:21:00.304000Z</updated><author><name>skraft</name><uri>https://forge.codesys.com/u/skraft/</uri></author><id>https://forge.codesys.com7226f36c16afa780bd74962d0a3e0799aeb84586</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for the replies!  I'll try that one-way solution, that's exactly what I'm looking for at this point.  I appreciate the help!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Export for use with version control</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ef849265e5/?limit=25#d645" rel="alternate"/><published>2020-02-27T14:20:59.905000Z</published><updated>2020-02-27T14:20:59.905000Z</updated><author><name>bjh</name><uri>https://forge.codesys.com/u/bjh/</uri></author><id>https://forge.codesys.com5499990bcc94289d5486eb26e5748fa1bdaa09fc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I made my own Python script to export my POUs etc. as text files for git management, but a few weeks ago I found a user on Github who has an even better version than mine!&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://github.com/18thCentury/CodeSys" rel="nofollow"&gt;https://github.com/18thCentury/CodeSys&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Exporting my project as plain text has been wonderful, though it is "one way" in that it is a snapshot in time of the project and I cannot re-import changes in plain text without more scripting and complication (I see that there is a "load.py" in the above repo but I haven't tested it). I hear a rumor that Codesys native Git support is coming but it cannot come soon enough for me.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Export for use with version control</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ef849265e5/?limit=25#0126" rel="alternate"/><published>2020-02-27T14:20:58.760000Z</published><updated>2020-02-27T14:20:58.760000Z</updated><author><name>JTG</name><uri>https://forge.codesys.com/u/jtg/</uri></author><id>https://forge.codesys.com02961d1e427434292727bd8d5572d77044d20ec7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The only version control I'm aware of with Codesys 3 is their SVN plugin. It works great, but unfortunately is subscription based and is bundled with a handful of other plugins, so its quite expensive. I would love an alternative, especially since I prefer git.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Export for use with version control</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/ef849265e5/?limit=25#d15c" rel="alternate"/><published>2020-02-27T14:20:58.364000Z</published><updated>2020-02-27T14:20:58.364000Z</updated><author><name>skraft</name><uri>https://forge.codesys.com/u/skraft/</uri></author><id>https://forge.codesys.com7aa0bf60fd30e268c56092d4858f43c3e21de549</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm moving from CodeSys 2.3 to 3.5, and having a problem with version control.&lt;/p&gt;
&lt;p&gt;On CodeSys 2.3, I would save my project, and then use Project/Export to generate an EXP file for each POU.  This worked well with Github (and other SCCS tools), as it allowed me to see the line by line changes in POUs between different versions in addition to having the project file under version control.&lt;/p&gt;
&lt;p&gt;On CodeSys 3.5, I cannot get Export to do anything other than generate a huge XML file, which is useless for version control purposes.  All the POUs are in one huge file, and the source code is obscured by all of the XML wrapping, so looking at line-by-line differences is essentially not possible.&lt;/p&gt;
&lt;p&gt;I'd be surprised if CodeSys 3.5 didn't allow any way to do normal source code control...  Can someone please point me to what I'm missing here?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>