ucblogo-code icon indicating copy to clipboard operation
ucblogo-code copied to clipboard

variable definition fails in wxwidget editor

Open rolandchee opened this issue 1 year ago • 2 comments

to vardef
  make "a 42
  show a
end

When done in the logo terminal, it successfully outputs "42".

However, when done in the wxwidgets editor, it outputs

I don't know how to    a in vardef
[make    a 42]

I notice in the wxwidgets editor the "a becomes “a. Does the error have something to do with this?

rolandchee avatar Oct 20 '24 11:10 rolandchee

Yes, that is likely the smart quote causing the problem, first noticed in issue #72 and again on issue #162 and I thought it had been resolved with merge request #169.

Just to double check, a few questions:

  1. Are you running the 6.2.4 build from the release page https://github.com/jrincayc/ucblogo-code/releases/tag/version_6.2.4 or did you compile from source? If the later, are you building against a version of wxWidgets previous to 3.1.1 ?
  2. Would you be willing to try the workaround outlined in issue #72 and verify it is the same underlying problem resurfacing?

dmalec avatar Oct 20 '24 13:10 dmalec

  1. I am running 6.2.4rc1 -- the greeting says "Welcome to Berkeley Logo version 6.2.4 (version_6.2.4rc1-1-g1eaef7d)". I downloaded the dmg zip.
  2. Yes, it is the same problem. I unchecked "Use smart quotes and dashes" and the problem is gone!

Thank you!

rolandchee avatar Oct 21 '24 17:10 rolandchee