Why are the dead keys not working on Intellij on Kubuntu 21.10? - intellij-idea

On Kubuntu 21.10, the dead keys do not work on Intellij.
I have two keyboard set up: plain US english and US english with dead keys. Those do not work even when I select the correct keyboard layout using KDE settings editor.

Answering my question:
The settings seem to look for a fcitx package, even displaying an error like "fcitx not found on dbus". The package is fcitx5, the old version seems to be fcitx.
Installing the fcitx5 package then reloading Intellij solved the problem.
sudo apt install fcitx5
Then restart Intellij.

Related

VSCode Java Extension Pack: sudden linter, refactoring, semantic highlighting issues

Don't know how to go about describing the details of my problem, but out of nowhere all of the useful code tools that I use for Java have partially stopped working. Go To Definition, Change All Occurences, and hover functionalities have all disappeared. I'm working on a remote machine through SSH, but I don't think that's the problem because another computer I'm working on works fine.
I've tried uninstalling and reinstalling every extension I have, I've tried quitting and restarting VSCode, I've tried deleting and reinstalling the application, all to no avail. I'm desperately in need of help with this problem
Finally figured it out -- I had to start the RedHat language server extension from a clean slate with the command Java: Clean Java Language Server Workspace

IntelliJ doesn't recognize flutter plugin

I wanted to try out flutter with IntelliJ, so I followed the order of https://flutter.io/setup-macos/ and everything worked out. But today, out of nowhere, it doesn't work anymore. I can run my code, but reload and hot reload is disabled. So I'd have to close and restart everything, every time, I'd like to see a change. "flutter doctor" tells me:
IntelliJ IDEA Ultimate Edition (version 2017.2.5)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
• Dart plugin version 172.4155.35
• For information about installing plugins, see
https://flutter.io/intellij-setup/#installing-the-plugins
But I looked it up, and flutter clearly was installed. I honestly sit here for 5 hours now, trying to figure it out, but I just can't find the problem. I deleted and reinstalled Flutter, Dart and IntelliJ like 4 times now, but it didn't work either.
Flutter in generall works, at least I can run the app in the terminal, so the problem got to be with IntelliJ. I also deleted the following folders:
macOS
~/Library/Application Support/IntelliJIdeaXX
~/Library/Preferences/IntelliJIdeaXX
~/Library/Caches/IntelliJIdeaXX
~/Library/Logs/IntelliJIdeaXX
Does anyone have an idea of what I can do now?
It was reported several times recently. master is the development branch with some newer code. alpha dev (default) is the recommended channel, but there are currently issues with dev which are already fixed in master. dev will be updated soon and it's recommended to switch back to dev when the fixes have landed.
flutter channel master
to switch back later
flutter channel alpha
flutter channel dev
In case somebody is still looking for an answer for this... Jetbrains has changed the plugins directory since the 2020.x versions (2019 - 2020)
Windows:
from: %HOMEPATH%\.\config\plugins
to: %APPDATA%\JetBrains\\plugins
MacOS:
from: ~/Library/Application Support/
to: ~/Library/Application Support/JetBrains//plugins
Linux:
from: ~/./config/plugins
to: ~/.local/share/JetBrains/
To fix the problem before a flutter update, I just created a symbolic link of my plugins directory (I use mac):
ln -s /Users/xxx/Library/Application\ Support/JetBrains/IntelliJIdea2020.1/plugins /Users/xxx/Library/Application\ Support/IntelliJIdea2020.1
That did the trick for me! I hope it helps others as well :)
Cheers.

Numpy- How to fix autocompletion in PyCharm 3.1.3

I was working on my project in PyCharm 3 that suddenly the power went off. After that when I tried to start PyCharm I encountered with a huge number of warnings about the last configuration! So I accept to reset all configuration.
Now when I import numpy and try to use autocompletion it doesn't show anything! It works but there is no autocompletion popup. I have no problem with OpenCV import which its autocompletion works fine(as before).
I read this and this and tried both of them but that doesn't work. I uninstalled NumPy and reinstalled it again but the problem didn't solved!
I'm using windows 7
UPDATE
I also update my PyCharm to 3.1.x(I removed the previouse version with its settings). The problem exists yet.
It sounds like your caches have been corrupted. You can regenerate them from the file menu with "Invalidate Caches / Restart ..."
If that doesn't work the you can recreate the IDE's settings directory. See here for the location. If you've updated PyCharm, there may be multiple config versions. My linux PyCharm 3.1.3 directory is .PyCharm30, it may be the same for Windows.
Stop PyCharm
Move .PyCharmXX\system out of the way
Start PyCharm
If that doesn't work, try with the config sub-directory:
Stop PyCharm
Move .PyCharmXX\config out of the way
Start PyCharm
If all else fails, move the entire config directory out the way:
Stop PyCharm
Move .PyCharmXX out of the way
Start PyCharm
Note that the above will involve you having to re-enter licence keys etc.
I was having this issue with PyCharm CE 2016.1. It went away when I upgraded (while importing old settings) to 2016.2. I had to let it index all the library files again, which took awhile, i.e. "Updating skeletons for ...".

gedit broken shortcut keys, has mod2

I have been trying to play around with gedit and came across the "shortcut editor" plugin. But somehow, it messed up my key bindings. It no longer works. Everytime I try to setup a new shortcut, I get a "Mod2" addition to the bind.
How do I reset to the default key bindings? How do I remove Mod2?
Thanks,
Wenbert
EDIT:
Google does not seem to return any relevant results regarding this issue.
I had the same problem but I solved it by toggling off the numlock
I'm going to answer my question. I have solved it after hours of trial and error.
I was connecting to my Linux machine running gedit using Synergy. So I jsut transfered the keyboard to the USB port running the linux machine and then reconfigured the Shortcut Editor Plugin for gedit.
The shortcuts are now properly set by the plugin.

Setting up an Erlang development environment

I'm interested in looking at Erlang and want to follow the path of least resistance in getting up and running.
At present, I'm planning on installing Erlang R12B-3 and Erlide (Eclipse plugin). This is largely a Google-result-based decision. Initially this will be on a Windows XP system, though I am likely to reproduce the environment on Ubuntu shortly after.
Is there a significantly better choice? Even if it is tied to one platform.
Please share your experiences.
I highly recommend the Erlang mode shipped with the standard Erlang distribution. I've put together a "works out of the box" Emacs configuration which includes:
Syntax highlighting & context-sensitive indentation
Dynamic compilation with on-the-fly error highlighting
Integrated Erlang shell
And more....
You can browse my GitHub repo here:
http://github.com/kevsmith/hl-emacs
I've only done a small bit of coding in Erlang but I found the most useful method was just to write the code in a text editor and have a terminal open ready to build my code as I need to (this was in Linux, but a similar idea would work in Windows, I'm sure).
Your question didn't mention it, but if you're looking for a good book on Erlang, try this one by O'Reilly.
You could also try NetBeans there's a very nice Erlang module available: ErlyBird
Install Erlang: sudo aptitude install erlang
Install a recent JDK: sudo aptitute install sun-java6-jdk
Download and install (the smallest) NetBeans edition (e.g. the PHP one): www.netbeans.org/downloads
download the erlang module ErlyBird: sourceforge.net/projects/erlybird
manually install the modules via NetBeans
ErlyBird features:
syntax checking
syntax highlighting
auto-completion
pretty formatter
occurrences mark
brace matching
indentation
code folding
function navigator
go to declaration
project management
Erlang shell console
I'm using Erlang in a few production systems personally as well at the office. For client side testing, documentation and development I use a MacBook Pro as the OS/platform and TextMate with the Erlang bundle as an editor.
For sever side development and deployment we use RHEL 4.x/5.x in production and for editing I use VIM. Personally, I've got 4 machines (slices on slicehost.com) running Debian using Erlang for a few websites and jobs.
I try to go with the smallest 'engineering environment possible', usually the one with the fewest dependencies from apt or yum.
To add to the Emacs suggestions, I would also recommend that you look at the advantages of distel when running the Emacs erlang-mode.
I've seen answers suggesting TextMate here, so I wanted to add another good Mac OSX tool:
ErlangXCode plugin to XCode.
I've been using this since I started with Erlang and really do like it.
The download link on his blog is broken, here's the real download:
http://github.com/JonGretar/erlangxcode/tree/master
You could also try a virtual server on demand service like this one from CohesiveFT
Select the components you want (e.g. erlangrb12 + yaws + MySQL + erlyweb) and it will build a vm image for you to download or to put onto ec2.
Rolling you own locally is quite straightforward too if you follow the instructions in the pragmatic programmers book Programming Erlang
Just a quick note:
The Erlang "compiling" process described in Ciaran's post (described for Ubuntu 6.10 btw) can be easily skipped using apt command in any Debian based distro:
apt-get install erlang
Do not forget to install these packages if you see it fit:
erlang-doc-html - Erlang HTML document pages
erlang-examples - Some application examples
erlang-manpages - Erlang MAN pages
erlang-mode - editing mode for Emacs
Good Luck!
I like Justin's suggestion, but I'll add to it: this solution is great for learning a language. If you don't rely on something like code-completion, then it forces you to learn the language better. (If you are working with something with a huge API, like Java or Cocoa, then you'll want the code completion, however!)
It's also language-agnostic, and in the case of an interpreted language, particularly one that has an interactive interpreter, you'll probably spend just as much time in the shell/interpreter typing in commands. Even in a large-ish python project, I still work in an editor and 4 or 5 terminal windows.
So, the trick is more about getting an editor which works for you. I'm not about to suggest one, as that's heading towards evangelism!
I just use Scite. Type something and press f5 to see the results.
Just wrote a guide on this on my blog, heres the abridged version:
Part 1: Download what needs to be downloaded.
Download and install the Erlang run-time.
Download and install TextPad.
Download a .syn file for Erlang and place it in the system folder of TextPad. For me, this folder was C:\Program Files\TextPad 5\system. I'm not quite sure who did this syn file (the site is in another language), but they did a good enough job.
Part 2: Set up syntax highlighting.
Open up TextPad. Ensure no files are opened. Go to the 'Configure' menu, and select 'Preferences'. In the preferences window, click 'Document Classes'. There should be a list of currently recognized languages. Click the 'New' button (it is right under the list of languages), and type 'Erlang'. Click apply.
Click the '+' button next to 'Document Classes'. This should expand the list, and Erlang should now be on it. Click Erlang. You should see a list of file extensions associated with Erlang, click 'New', and type '*.erl'.
Now click the '+' button next to 'Erlang' on the left. This should expand a list of several more menus. Click on 'Syntax'. Click the drop down menu and select erlang.syn. If erlang.syn is not there, then the .syn file was not properly placed.
Feel free to edit some other syntax options to customize TextPad to your liking.
Part 3: Compiling from TextPad.
Note: as of 12/05/08 there are severe problems with compiling in textpad. The Erlang shell somehow ignores new compilation when it is done in text pad. This is only useful for checking for errors, when you want to actually run the code, compile it in the Erlang Shell.
In the preferences menu again, click 'tools' on the left.
Click the 'Add' button and select 'Program...'. Navigate to the erl5.6.5\erts-5.6.5\bin\ folder and select erlc.exe. Select and single click the new entry in the list to rename it. Click 'Apply'.
Now click the '+' button next to Tools on the left. Select erlc, or whatever you have named the new tool (I named mine 'Compile Erlang'). The parameters field needs to read '$File', and the initial folder field should read '$FileDir'.
I have had good success with Erlide.
If you use Vim I recommend you Vimerl (http://github.com/jimenezrick/vimerl):
Features
Syntax highlighting
Code indenting
Code folding
Code omni completion
Syntax checking with quickfix support
Code skeletons for the OTP behaviours
Uses configuration from Rebar
Pathogen compatible (http://github.com/tpope/vim-pathogen)
From what i've tried (and are still up to do), a good addition to an erlang dev. environment would be a virtual machine running ubuntu/yaws/erlang. Perhaps Erlyweb (erlang/yaws framework) would be nice checking out too.
Ciaran's posts (this would be the first of his "series") about his erlang install is nice, as he details the steps in setting up the server (and other stuff like xmpp with jabberlang).
Since you're switching to Ubuntu eventually anyways, I highly recommend using erlang-mode for emacs (which comes bundled with the Erlang distribution). It is officially what all the core developers use and what many other developers use because of the many features it offers you.
Installing the Erlang distribution itself should be simple :)