简体   繁体   English

为什么我的返回符号在 Pharo 中被破坏,编译方法时抛出未知字符错误?

[英]Why is my return symbol broken in Pharo, throwing Unknown character error when compiling method?

I'm starting at the Pharo MOOC , but got stuck in one of the first lessons, because apparently my return operator is broken.我从Pharo MOOC开始,但被困在第一堂课中,因为显然我的返回操作员坏了。 I faced this problem in the section [ReDo1] Packages, Classes and Methods.我在 [ReDo1] 包、类和方法一节中遇到了这个问题。 At one point, we are supposed to define a simple method, a getter, like this:有一次,我们应该定义一个简单的方法,一个 getter,如下所示:

在此处输入图像描述

By when I try to follow the lesson in my Pharo install, the return "hat" operator ^ is a bit different, and smaller.当我尝试在我的 Pharo 安装中学习课程时,返回“帽子”运算符 ^ 有点不同,而且更小。 When I try to compile the method, I just get a error:当我尝试编译该方法时,我得到一个错误:

在此处输入图像描述

在此处输入图像描述

But I'm pretty sure I typed the correct character in my keyboard, as the photo shows:但我很确定我在键盘上输入了正确的字符,如图所示:

在此处输入图像描述

Could the problem be related to my keyboard layout.问题可能与我的键盘布局有关。 I run Pharo 8 using a ABNT2 keyboard (for pt-BR) under Kubuntu 20.04.我在 Kubuntu 20.04 下使用 ABNT2 键盘(用于 pt-BR)运行 Pharo 8。

UPDATE: Adding image of entire keyboard, as requested by Leandro.更新:按照 Leandro 的要求添加整个键盘的图像。 It's a Philips C324 (ABNT standard):这是飞利浦 C324(ABNT 标准): 在此处输入图像描述

You must double tap the circumflex key.您必须双击抑扬键。

I figured out the problem.我解决了这个问题。 It's just that when I press Shift and single tap the circumflex key, at first I get nothing, then I get the character not recognized in the next keypress (usually spacebar), the code point 710 (2C6) mentioned by Leandro.只是当我按下 Shift 并单击抑扬键时,起初我什么都没有,然后我在下一次按键(通常是空格键)中得到了无法识别的字符,即 Leandro 提到的代码点 710 (2C6)。 If after pressing Shift I double tap the circumflex key, I get the correct character, code point 94 (5E).如果在按下 Shift 后我双击抑扬键,我得到正确的字符,代码点 94 (5E)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么getch()在C中引发错误 - Why getch() is throwing an error in C 为什么按RETURN键时键盘没有消失? - Why isn't my keyboard disappearing when I press the RETURN key? 在android中更改键盘的返回符号 - Change return symbol of keyboard in android 为什么当我单击键盘上的“确定”按钮时清除了我的EditText? - Why my EditText is cleared when I click on “OK” button on the keyboard? 与pygame一起使用时如何防止pyttsx产生断断续续的语音? - How to prevent pyttsx from producing broken speech when used with pygame? 在 Flutter Web 应用程序中按 Altright 时出错 - Error when I press Altright in my Flutter web application 在 VSCode 中工作时如何处理键盘布局损坏? - How to deal with keyboard layout broken when working in VSCode? 当我快速切换按键时,为什么我刚刚按下的按键会触发KEY_UP事件? - Why is my KEY_UP event firing for the key I just pressed when I quickly switch keys? 为什么我的自定义 Swing 组件在我移动鼠标时重绘速度更快? (爪哇) - Why does my custom Swing component repaint faster when I move the mouse? (Java) 使用键盘的“返回”(完成)按钮调用方法 - call a method with the "Return" (Done) Button of the keyboard
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM