View Issue Details

IDProjectCategoryView StatusLast Update
0004261ExpressionsBugpublic2020-02-27 18:09
ReporteropenBrain Assigned Torealthunder  
PrioritynormalSeveritymajorReproducibilityalways
Status assignedResolutionopen 
Product Version0.19 
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.

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 View Revisions
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