VScode Code highlighting does not work correctly - visual-studio-code

I clean install windows on one of my devices and then I install VScode and sync all settings from my account but the it doesn't highlight code as it should be and my theme is Dark+ (default dark) and I am on Windows 10.
I want to make the first picture look like the second one.
Things I tried:
reinstall VScode
reinstall Python
reinstall PythonMagic extension
first picture (needs to fix)
second picture (I want to make the first one look like this)

Related

Why does VS code shows output with weird symbols?

i think this became a problem after installing extensions but i'm not sure[enter image description here]
i tried reinstalling vscode and removing sync of any settings but it didn't workyour text
In settings under Terminal > Integrated: Renderer Type, it defaults to "auto" which in my case selects the "canvas" setting. If you switch this to "dom" it will fix the jumbled letters in the integrated terminal.
Also i'd recommend double-checking your language packs that are installed in windows and either reinstall them or make sure you have installed correctly.
Hope this helps.

JSON Settings editor in JupyterLab not working?

I recently updated python to the latest version 3.10.5 on my Windows 10 desktop using pyenv-win. Everything went fine, except when I launched jupyter lab and found out I can't access the JSON settings editor anymore. I was following the same procedure as always:
Launching jupyterlab from the terminal using the command jupyter lab
Going to the settings menu and choosing Advanced Settings Editor
The settings editor GUI is opened as always and I can change settings through the UI, but I prefer using the JSON settings file.
On the top right of the settings editor there is a button to open the JSON Settings Editor. I click it and nothing happens. This button doesn't do anything. it used to open a text editor with all the JSON settings files. Now it simply does nothing.
I tried reinstalling jupyter lab completly, including removing every custom extension and reseting all setting to the default, and it didn't help. The JSON Settings Editor button still doesn't do anything.
Can anyone explain to me why this happens and how I can fix this?
This is a bug in the latest JupyterLab release v3.4.4. I have reproduced it on 3.4.4 and opened a pull request to fix it: jupyterlab#12892. The fix should be included in the next patch release. In the meantime you can downgrade to 3.4.3 which is not affected.
Thank you for highlighting it (next time if it looks like a bug feel welcome to report directly at https://github.com/jupyterlab/jupyterlab/issues).
Edit: JupyterLab 3.4.5 is now released. Please upgrade using your package manager to get the fix.

Unable to install VisualStudioCode custom theme (.vsix)

So I made a custom theme for VScode, and I just want to install it for personal use, not to be put on the marketplace. Once I customized it, and edited the package.json and README.md files appropriately, I opened the terminal and ran these lines of code, one after the other. This is my first time making a theme and therefore first time running these commands (in case that matters):
npm i -g vsce
Next:
vsce package
I then saw the .vsix file created in my explorer on the left hand side. The text appears dim, I'm not sure if that is an indication that something is wrong... is it?
I right clicked on the file and selected 'Install Extension VSIX' on the bottom
There was no indication that anything had happened, even after clicking install several times.
After that, I tried finding the theme in the color theme searcher, and couldn't find it there either, leading me to assume that it did not install. I also tried doing it through the terminal, using:
code --install-extension dv1-0.0.1.vsix
However, I was greeted by the response: "zsh: command not found: code". I was following this video tutorial to install my custom theme: https://www.youtube.com/watch?v=QCqWzb-9Sy8
The section about installing your theme starts at 11:05. Is there something I have to download to utilize that 'code' command? Regardless I feel like the first installation method I tried should have worked.
In case this matters, I will mention that a "vsc-extension-quickstart.md" file was created as well. I did not find it helpful.
Any way in which you can help is much appreciated!
UPDATE
I installed the 'code' command, so I ran
code --install-extension dv1-0.0.1.vsix
in my terminal and this time it told me that the current VScode version was incompatible, so I went to my package.json and changed the version to 1.51.1 and I was able to install my theme. However, now when I look for the theme in the theme search, I am not seeing it. I know it was installed because it says so in the terminal.
Any idea where I can find and use my theme? Thanks

eclipse - swt - using windowbuilder in xfce env

I have some problems with eclipse indigo x64 Linux; The problem is using windowbuilder (the SWT); I tried using gwt or swing but they both cause either windowbuilder freeze or even eclipse crash...
The alike issue it seems I found related info in official eclipse indigo offline Help which says :
How can I prevent the preview window from flashing under Linux using Metacity
In order to create the graphics that you see in the design view,
WindowBuilder Pro creates an off screen window containing the various
widgets and they takes a screen snapshot of them. This works very well
under Windows, OSX and some versions of Linux. Recent versions of the
Metacity window manager (more recent than 2.1.4), however, have been
modified/"fixed" to disallow windows to be opened off screen. This
forces the preview window to appear on screen leading to an annoying
flashing effect any time you make a change. The solution is to disable
the Metacity "fully_onscreen" constraint by patching the Metacity
source code and rebuilding and installing the patched version into
your system.
Here are the steps to follow:
Download the Metacity source code from ftp://ftp.gnome.org/pub/gnome/sources/metacity/
Unpack the source code tarball into any temporary directory.
Chdir into this directory (with the unpacked code).
Find window.c file and open it with your favourite texteditor.
Find a line with "window->require_fully_onscreen = TRUE;"
Replace it with "window->require_fully_onscreen = FALSE;"
Save the changes and close the editor.
Open a terminal and chdir into the directory with the source code (nice if you have already done this)
Run "./configure".
Run "make all".
Make sure that steps 9 & 10 completed without errors.
Become root (or execute the next command via "sudo" depending on the Linux you are running)
Run "make install" (or "sudo make install").
Save your work and close any application you are working with.
End your session (or press Ctrl-Alt-Delete to restart the x-server) and log in again.
You are done!
well seems like I have the snapshot really but, as I can get it, the snapshot doesn't want to dispose or similar so I have either resize the whole eclipse or press F5 to refresh (which works not at once);
I am not sure how to fix the issue in case I have xfce+adwaita installed? I don't have metacity installed; Seems like xfce works with gtk instead of metacity (correct me if I am wrong);
So my question is... how to fix the "window flashing or freezing" if I have :
xfce4
adwaita-dark theme
linux arch x64ce
Thanks
Try to install install libswt-gtk-3-jni and libswt-gtk-3-java.

Jupyter webpages not displaying properly

Screen shot here.
With Cntrl-Shift-I
No matter how I install Jupyter(aka IPython) I get a dud webpage. It does not display tabs or menus as expected.
The screen shot above is from a 64bit Windows Anaconda install. It was a default install. Install finished. No changes to configuration. First action after install was select IPython menu item in start menu.
Now, trust me, I have tried everything. I have tried installing IPython from pip over top my python2.7 installation, anaconda etc. No matter how I install it ends up with the same problem. I even tried 32bit installs etc.
It doesn't appear to be the browser as both IE and Chrome see the same mangled display.
It is almost like the css files are not being picked up or are not there at all.
I opted to allow the installation of the Anaconda to update my environment variables etc. so the dang blasted thing should be finding where it has put itself.
What is the likely cause? What is the fix please?
I did have a very similar issue on Windows recently. Some program has overwritten your mime type associations. For me it was Inkscape killing SVG by setting the mime type to application/svg.
Try this on terminal:
import mimetypes
mimetypes.guess('file.css')
You should get text/css. If you get application/css this is most likely your problem. My solution: Change back the mime type association. Start regedit and search for application/css in HKEY_CLASSES_ROOT. Replace it with text/css.
Please refer to this https://github.com/ipython/ipython/issues/7024 for further reference.