View Issue Details

IDProjectCategoryView StatusLast Update
0004196ExpressionsBugpublic2020-01-01 17:47
Reporterbabaroga Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
PlatformLinuxOSManjaroOS Version18.1.3
Product Version0.19 
Target Version0.19 
Summary0004196: Expression parser does not allow "/" after first member
DescriptionIf someone try to enter eg. 12/2 in any field for X, Y, Z, constrain in sketcher, parser will not allow to type "/" sign just after first member in expression. All other operations works as expected.
Everything works OK if entered as formula.

Issue is described in

Forum thread
Steps To ReproduceTry to change X, Y or Z position of eg. body with

12/2 - does not work
(12)/2 - does not work
0+12/2 - works

Tagsexpressions
FreeCAD InformationOS: Manjaro Linux (KDE//usr/share/xsessions/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18753 (Git)
Build type: Release
Branch: master
Hash: c0a80e1a9a5683404fe506201d0ee74b28ea819d
Python version: 3.7.4
Qt version: 5.13.2
Coin version: 4.0.0a
OCC version: 7.4.0
Locale: English/United States (en_US)

Relationships

has duplicate 0004218 closed FreeCAD Using division sign in measurement constraint 

Activities

openBrain

2019-11-22 16:49

developer   ~0013830

@babaroga : thanks for reporting. However please notice that per our guidelines (big yellow banner) you should have open a topic in our forum before reporting.
Though your report is correctly filled in, bug can be confirmed and seems unknown up to now, we'll keep this ticket as is without further request to post to forum. ;)

babaroga

2019-11-22 16:55

reporter   ~0013833

Last edited: 2019-11-22 16:57

View 2 revisions

Hello,

@openBrain It was reported in forums on

https://forum.freecadweb.org/viewtopic.php?f=3&t=40995

Somehow, link is not visible in my first post.

openBrain

2019-11-22 17:23

developer   ~0013835

@babaroga :there was no text in the url tag in the description. I fixed it. ;)
Could you edit the title of the forum thread and prepend "[Bug 4196]" to it (thread title is actually OP title)? Thx

Kunda1

2019-11-28 12:52

administrator   ~0013849

Moved to 'Expressions' category

ulrich1a

2019-12-31 16:07

reporter   ~0013964

Last edited: 2019-12-31 16:08

View 2 revisions

The reported bug is not caused by FreeCAD-Expressions. Expressions are used in the dialog reachable via the blue "fx"-symbol: This dialog is not affected by the bug here and behaves different and uses different code.
The bug is related to the input field of the Gui, which uses a different parser. The formula typed in the input field is gone after its calculation.

Both usages uses "expressions" but are coded in different areas of FreeCAD.

Ulrich

openBrain

2020-01-01 17:47

developer   ~0013965

@ulrich1a : would you be able to give a pointer to involved parser code in GitHub ?

Issue History

Date Modified Username Field Change
2019-11-18 20:00 babaroga New Issue
2019-11-22 16:46 openBrain Tag Attached: expressions
2019-11-22 16:46 openBrain Status new => confirmed
2019-11-22 16:49 openBrain Note Added: 0013830
2019-11-22 16:55 babaroga Note Added: 0013833
2019-11-22 16:57 babaroga Note Edited: 0013833 View Revisions
2019-11-22 17:20 openBrain Description Updated View Revisions
2019-11-22 17:23 openBrain Note Added: 0013835
2019-11-28 12:51 Kunda1 Project FreeCAD => Expressions
2019-11-28 12:52 Kunda1 Note Added: 0013849
2019-11-28 12:52 Kunda1 Target Version => 0.19
2019-12-06 10:48 openBrain Relationship added has duplicate 0004218
2019-12-31 16:07 ulrich1a Note Added: 0013964
2019-12-31 16:08 ulrich1a Note Edited: 0013964 View Revisions
2020-01-01 17:47 openBrain Note Added: 0013965