During the reconfiguration of FreeCAD, I've got those error messages I've described initially again (me: "No, not my config again!"
).
I've investigated a little further and
I think FreeCAD is writing the paths to temporary directories of TD into the user.cfg when it shouldn't do it.
FreeCAD is writing a bunch of TechDraw related stuff into user.cfg after opening the TD preferences and hitting Apply > Okay:
- Delete my config files (user.cfg, system.cfg and FreeCAD.conf
- Start FreeCAD
- Load TechDraw Workbench
- Open Preferences (Edit > Preferences)
- Open TD preferences
- Apply
- Okay
- Close FreeCAD
Part of the described changes are the paths to the temporary directories:
Code: Select all
<FCParamGroup Name="Files">
<FCText Name="TemplateFile">/tmp/.mount_FreeCADNtjzu/usr/share/Mod/TechDraw/Templates/A4_LandscapeTD.svg</FCText>
<FCText Name="TemplateDir">/tmp/.mount_FreeCADNtjzu/usr/share/Mod/TechDraw/Templates</FCText>
<FCText Name="FileHatch">/tmp/.mount_FreeCADNtjzu/usr/share/Mod/TechDraw/Patterns/simple.svg</FCText>
<FCText Name="LineGroupFile">/tmp/.mount_FreeCADNtjzu/usr/share/Mod/TechDraw/LineGroup/LineGroup.csv</FCText>
<FCText Name="WeldingDir">/tmp/.mount_FreeCADNtjzu/usr/share/Mod/TechDraw/Symbols/Welding/AWS/</FCText>
</FCParamGroup>
<FCParamGroup Name="PAT">
<FCText Name="FilePattern">/tmp/.mount_FreeCADNtjzu/usr/share/Mod/TechDraw/PAT/FCPAT.pat</FCText>
<FCText Name="NamePattern">Diamond</FCText>
<FCInt Name="MaxSeg" Value="10000"/>
</FCParamGroup>
To me it looks like FreeCAD is checking the user.cfg and if there's nothing relevant, the correct temporary directories are being used. Unfortunately, if some previous temporary directory can be found in user.cfg, FreeCAD is using that one instead.
In 0.19, I've deleted the temp-directories as soon as the "[...] is not readable" error shows up. After restarting FreeCAD, the temp-directories where there again (using the correct values). This isn't working in 0.20. Instead, the path in user.cfg looks like this and stays like this (the path shown in the GUI is empty of course):
Code: Select all
<FCText Name="LineGroupFile"></FCText>
As long as there are no paths to the temporary directories within the user.cfg, I'm not able to reproduce those "[...] is not readable" error messages.
To take it one step further, I've opened my "corrupted" config files and removed this part (FCParamGroup Name="Files" and "PAT"):
Code: Select all
<FCParamGroup Name="Files">
<FCText Name="TemplateFile">/home/max/Downloads/Programme/FreeCAD_TechDraw_Templates/A3_Landscape_ISO7200_Pep_M4x.svg</FCText>
<FCText Name="TemplateDir">/tmp/.mount_FreeCAZfIMCe/usr/share/Mod/TechDraw/Templates</FCText>
<FCText Name="FileHatch"/>
<FCText Name="LineGroupFile"/>
<FCText Name="WeldingDir"/>
</FCParamGroup>
<FCParamGroup Name="PAT">
<FCText Name="FilePattern"/>
<FCText Name="NamePattern">Diamond</FCText>
<FCInt Name="MaxSeg" Value="10000"/>
</FCParamGroup>
Result: No error messages, TechDraw is using the correct temporary directories and those paths can be found in the GUI of the TD preferences too.
I've taken a look at
git commit 977127012e. If I've got it right, FreeCAD shouldn't throw "false" error messages. But if wrong (= previous) temp-directories can be found in the user.cfg, won't FreeCAD still try to use those instead of the current temp-directories?
For the record, this is the Version I'm using right now:
Code: Select all
OS: Ubuntu 20.04.4 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.28929 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 6f24fd3)
Hash: 6f24fd3053a89a5fb12ab765f9df93ec04deeac1
Python 3.9.12, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
Locale: English/United States (en_US)
Installed mods:
* LCInterlocking
* kicadStepUpMod 10.12.4
* Lithophane
* lattice2 1.0.0
* Defeaturing
* Manipulator
* fasteners 0.3.41
* sheetmetal 0.2.49
* Assembly4
* Curves 0.4.4
* POV-Ray-Rendering
* 3DfindIT 1.2.0