Oxygen Eclipse下PyDev 7.2中*字符无法显示的问题咨询
Hey Andrew, sorry to hear you're stuck with this odd asterisk input glitch in PyDev! It’s super frustrating when basic characters refuse to behave, especially since your keyboard works fine elsewhere. Let’s go through some practical fixes that often resolve this kind of issue:
Check for shortcut conflicts
Sometimes the*key gets tied up with an editor shortcut you don’t even know about. Head toWindow > Preferences > General > Keysand search for any commands bound to the asterisk character. If you find one, either disable it temporarily or reassign it to a different key combination, then test inputting2 * 8again.Reset PyDev editor settings to default
Corrupted editor configurations can cause weird input behavior. Navigate toWindow > Preferences > PyDev > Editor, click theRestore Defaultsbutton at the bottom right, and restart Eclipse. This will wipe any custom syntax coloring or formatting settings that might be blocking the asterisk.Verify workspace encoding and input method
Make sure your Eclipse workspace is using UTF-8 encoding (go toWindow > Preferences > General > Workspace > Text File Encodingand selectUTF-8if it’s not already). Also, try switching to a plain English input method—sometimes non-English IMEs can have compatibility quirks with older Eclipse versions like Oxygen.Clear Eclipse’s cached data
Cached UI or runtime files can get corrupted over time. Close Eclipse completely, then navigate to your workspace folder and delete the contents of.metadata/.plugins/org.eclipse.core.runtime/.cache. Restart Eclipse and see if the asterisk starts working normally.Update PyDev (or roll back to a stable version)
PyDev 7.2 is a bit outdated, and there might be a known bug fixed in later releases compatible with Eclipse Oxygen. Go toHelp > Eclipse Marketplace, search for PyDev, and check for available updates. If updating causes other issues, you could also try rolling back to a slightly older PyDev version known to work well with Oxygen.Test in a clean PyDev project
It’s possible your current project has a corrupted configuration file. Create a brand new PyDev project and a blank.pyfile, then try typing2 * 8there. If it works, you’ll know the problem was specific to your original project’s settings.
If none of these steps fix the issue, take a look at Eclipse’s Error Log (Window > Show View > Error Log)—there might be error messages related to input handling that can point us to the root cause.
内容的提问来源于stack exchange,提问作者Andrew

