Forcing automatic parentheses in ipython loses tab completion - ipython

In ipython (version 0.8.1 on Ubuntu 8.04, version 1.1.0 on Ubuntu 12.04) when forcing automatic parentheses by starting the function name with / will make useless the TAB completion.
E.g.
In[0]:/my_exTAB
In[0]:/my_extremely_long_function_with_no_args
-----> my_extremely_long_function_with_no_args()
Is there a setting for keeping the tab completion?

On 1.1.0:
In[0]:/SPACE my_exTAB
-----> my_extremely_long_function_with_no_args()
Entering SPACE after / will work on a release after 0.8.4. 0.13.0 has it fixed. I cannot pinpoint the exact version it was introduced.
Still my expectation is not fulfilled (i.e. working without the SPACE in between)

Related

Syntax highlighting in Astro Nvim

I installed the Astro Vim package. Syntax highlighting should work out of the box, but it doesn't. As soon as I write :setfiletype javascript highlighting works immediately. Is there any way to enable automatic file type detection? I executed the LspInstall and TSInstall commands after installation
Now the editor looks like this:
You are likely using Nvim v0.8.0 (released 3 days ago), which introduced several breaking changes and is incompatible with AstroNvim v1.10.0 (the current stable version; refer to this discussion).
AstroNvim v2.0 was pushed to the project's nightly branch and will support the new Nvim release; however, seeing as it is currently unstable, for now your best option would be to downgrade to Nvim 0.7.2.

VSCode: How to fix Python extension version for Python 2 compatibility and prevent automatic upgrade?

I have a legacy code using Python 2. The last version of VSCode Python extension that supports Python 2 is v2022.2.1924087327
It is very easy to change the extension to an older version.
My problem is that VSCode always automatically updates the extension. Since I'm using it in a remote machine, when I loose connection, it automatically updates the extension, and I must manually downgrade it, reload the window and start it again.
Is it possible to fiz the version of my Python extension in VSCode?
I've just found how to prevent extensions to automatically upgrade.
And I just set:
{
"extensions.autoUpdate": false
}
It will now ask me for each extension upgrade, it is an annoyance, but at least I can control it.
If someone finds how to disable auto update just for the Python extension, I'll mark it as the correct answer.

clion autocomplete keeps processing forever

I am using clion latest version 2020.2
Build #CL-202.6397.106, built on July 28, 2020
Autocomplete suddenly stopped working even though clion can build and complie my code just fine.
To make sure the issue is not project dependent, I started a new project. However, the problem still presists. As you can see in the attached image below. Whenever I explicity press (ctrl+space) I get this empty suggestion dropdown and the icon keeps rotating forever. (Note: If I don't press ctrl+space, the dropdown menu never shows up)
I made sure that PowerSaveMode is disabled.
I also tried File->Invalidate Cache/Restart->Invalidate and Restart
Did anyone face a similar issue? Any suggestions to what could be the cause of this problem?
Additonal information
gcc version: gcc (Ubuntu 4.8.5-4ubuntu8) 4.8.5
g++ version: g++ (Ubuntu 4.8.5-4ubuntu8) 4.8.5
I am posting this answer in case someone comes across this issue in the future.
The issue was definitly caused by the new update to clion. So I installed an older version. There is a tool named "JetBrains Toolbox" which is very convient when it comes managing multiple versions of any JetBrains software (clion in my case).
An additional note, if you want to run clion (or any other solution) as a superuser do not do that through the JetBrains toolbox. The toolbox will have the installtion location for each installed version, use it to run as a superuser from the terminal.

VSCode 1.14.0 July update has major issues: How to roll back?

So with the new VSCode update version 1.14.0 it causes major issues which are
High CPU usage (causes freezes)
random crashes
extensions are not availabe
IntelliSense working half of the time
So my question is how can I roll VSCode back to the previous version without losing my configurations?
After 1.14.0 I have the same issues, specifically freezing for multiple seconds randomly during intellisense. They label it the previous month, so 1.14.0 is the "June" release.
Going to https://code.visualstudio.com/updates/v1_13 and click the links right below the title to download the older versions (don't click the green download button).
Downloading that windows executable for 1.13.1 and running it installed the old version over the new version without issue. All of my settings are the same and everything works fine.
Update April 2021
To find the previous version, click the Updates link on the top nav
Then click the correct link for your platform - that will download the latest update for that version.
Note:
After downloading the previous version (1.54.3 system) and reinstalling overtop the current (more recent) version, I received an error from the Python extension:
Cannot activate the Python extension because it depends on the Jupyter extension, which is not loaded.
Somehow the Jupyter extension was damaged and it was necessary to reinstall the Jupyter extension (that extension was greyed-out in the Extensions pane - it was only necessary to click the gear icon beside the Jupyter extension and install the latest version). After that, everything worked.
So, not completely painless, but it was easily resolved.

Broken pyreadline in IPython in MSYS2

I have a MSYS2 system, where I've installed python3.5 together with all of its dependencies. Furthermore, I've installed ipython using pip3.5 along with pyreadline 2.1. When I start ipython I get this prompt:
It is broken (as you can see on space between the brackets, and it does not complete any commmands - instead it inserts tabs. Anyone that have a clue what's wrong?
Yes, pyreadline is broken on windows, IPython will move away from readline on the next version (5.0). This should fix things.