View Issue Details

IDProjectCategoryView StatusLast Update
0004261ExpressionsBugpublic2021-02-06 06:30
ReporteropenBrain Assigned Torealthunder  
PrioritynormalSeveritymajorReproducibilityalways
Status assignedResolutionopen 
Target Version0.20 
Summary0004261: Bad behavior when using '°' unit in expressions
DescriptionUsing the sign '°' to denote degrees in expressions causes expression engine malfunction.
Steps To Reproduce  - Create a new document, select PartDesign WB
  - Add a sketch (you can just let it empty)
  - Create a DatumPlane (locate it at any position)
  - Try to enter as expression for DatumPlane/AttachmentOffset/Angle the following :'90°-atan(Sk' => You'll notice first that 'Sketch' is only proposed when you enter the 'k', then that if you select 'Sketch' proposal with down arrow, it is replaced by 'SSketch' in the expression (doubled 'S')

If you use 'deg' instead of '°' in the expression, the 2 issues described aren't present : 'Sketch' is proposed as soon as 'S' is entered, and it is correctly entered in the expressions if you select the proposal with down arrow.
Additional InformationI have no evidence but I'm afraid this issue causes more severe damages to the expression engine when a document is loaded.
TagsNo tags attached.
FreeCAD InformationOS: Windows 7 SP 1 (6.1)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19461 (Git)
Build type: Release
Branch: master
Hash: da71719896847b0e2a5716e7afb5d4cb4b326990
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: French/France (fr_FR)

Activities

vocx

2020-02-16 19:40

reporter   ~0014159

Forum thread: Bad behavior when using '°' unit in expressions

realthunder

2020-02-27 04:09

developer   ~0014185

Will be solved by this PR. See here.

yorik

2022-03-03 13:55

administrator   ~0016861

This ticket has been migrated to GitHub as issue 6027.

Issue History

Date Modified Username Field Change
2020-02-04 14:20 openBrain New Issue
2020-02-04 14:21 openBrain Steps to Reproduce Updated
2020-02-04 14:22 openBrain Status new => confirmed
2020-02-16 19:40 vocx Note Added: 0014159
2020-02-27 04:09 realthunder Note Added: 0014185
2020-02-27 18:09 Kunda1 Assigned To => realthunder
2020-02-27 18:09 Kunda1 Status confirmed => assigned
2021-02-06 06:30 abdullah Target Version => 0.20