PR# 19946 Invalid Operator expression
Problem Report Summary
Submitter: jimmy.johnson
Category: EiffelStudio
Priority: High
Date: 2025/01/30
Class: Bug
Severity: Serious
Number: 19946
Release: 20.05 (20.05.10.3187 - macosx-x86-64)
Confidential: No
Status: Analyzed
Responsible:
Environment: mac
Synopsis: Invalid Operator expression
Description
In one of my files the EiffelStudio editor is not displaying a special character for `bit_xor' alias from NATURAL_64 (i.e. the circled plus) and the compiler complains with "Invalid Operator Expression". The file displays correctly when opened with "TextEdit.app" or "Geany.app". The symbol is displayed correctly and recognized for NATURAL_64; it just fails in my class.
To Reproduce
I don't know how. This obviously worked months ago, but coming back now something has changed.
Problem Report Interactions
I discovered how I messed up the file. I edited it in TextEdit (Mac). To fix it I cut/paste the correct symbol from NATURAL_xx to my file. It is fine now, so can't send the offending file. The screen shots show the file as seen in EiffelStudio editor and Geany. It has got to be an encoding issue from saving with TextEdit. Okay, so I know now not to edit Eiffel files in TextEdit. If I edit in Geany can I save it with a particular encoding to display the characters correctly when coming back to Eiffel? IOW, what encoding does EiffelStudio need to display the xor symbol as used in the NATURAL_xx classes? thanks
Please send us the Eiffel file, and eventually also a screenshot showing the editor issue.