VSCode Mac debugging little issue - python

https://i.stack.imgur.com/k0Ypt.png
Hi guys!
I wanted to come back to the coding world and been practicing with VSCode on Mac. Since today, I don't know what I have done that every time that I debug Python code it shows me the image abobe. It's not a big issue but for me, it is very annoying since I like to keep things clean and simple.
I tried to uninstall every extension and add-on on VS and uninstall but I can solve it myself.
Thanks for the help!

That's the command to execute the debugger, so there's not much you can do about it without changing your launch.json to not use the terminal.

After a lot of trying there's no solution. It's just how VScode works on Mac.

Related

GitHub Coptilot does not work in NeoVim when editing Python

I have Arch Linux and so the latest NeoVim release is installed (0.7.0 at this moment). About a month I started using GitHub Copilot and it worked well in Bash, SH, JS and others. Yesterday I wanted to rewrite some program in Python but Copilot didn't work. Tried it in different files and languages - works everywhere but not Python! :Copilot status shows "Copilot: Enabled and online", but gives no suggestions. :Copilot panel shows "Synthesizing 0/10 solutions (Duplicates hidden)". :Copilot log contains nothing. I remember that some time ago it worked as expected but now it does not. I don't have any ideas why is that happening. As an Arch user I reject VisualStudio Code and other IDEs and prefer working in terminal. Anything that may help?
Edit: just discovered that opening a file without .py and printing #!/usr/bin/env python3 works for Copilot, but in this case there's no syntax highlight. Reopening with :edit adds colors but breaks Copilot
I've just solved it on my machine. I used nvm to set my NodeJS back to v16.13.0. reloaded neovim. Copilot now working as expected.
Copilot was not working on NodeJS v18.0.0.
What's annoying is tim-pope doesn't have the issues section active on the repo. So I'm sure others will run into this. Let me know if this solves it for you.

Why is VS Code showing "windll Windows only: Creates ()" intellisense suggestions?

While writing Python code on VS Code, it is showing suggestions like:
windll Windows only: Creates ()
I have tried to see if this was coming from snippet extension I might have installed but I don't think I have any... can anyone shine a light on why I am getting his code completion nonsense?
I had this same issue, every time :, ., def, or if is typed, there's annoying suggestions that don't make sense. I found out it's the Python Extended extension that's responsible for this. It seems to be reported on it's GitHub issues page, but for now I would disable the extension as it doesn't seem to be working at all for me. I recommend PyLance as a replacement.
It's the extension problem.
You have installed the extension named: Python Extended inside your vs code and you will need to uninstall it.
It works well on my editor after uninstalling this extension.

VS Code Python Syntax Highlighting Only Half Working

I've been using both VS Code and Sublime for a while now. I mostly do my python coding in Sublime and I have recently decided to try out VS Code. One issue though.
The syntax highlighting for python is not functioning in the manner I would expect. Here is a .py file opened in both VS Code and Sublime for comparison:
Sublime Text:
VS Code:
When comparing the VS Code syntax highlighting to that of Sublime, it appears to only function half correctly.
Tons of stuff that I would expect to receive some form of colored formatting such as function calls, function parameters etc all just appear as white text.
After looking at loads of VS Code python tutorials online, it would definitely seem something is wrong with my setup as everyone else seems to receive function calls/function paramters/etc syntax highlighting.
Troubleshooting progress so far:
I have the VS Code python extension installed.
I've tried uninstalling and reinstalling VS Code.
I've tried uninstalling and reinstalling Python extension.
I've tried installing the magicPython
extension.
Ensuring I have both python2 and python3 installed on my machine
Color theme is currently Dark+, however this behavior occurs with all
color themes.
Made sure the file ends in .py
I'm running on a Mac, if that's relevant.
Any help would be greatly appreciated. Thank you!
i think you just need to change your theme
check this one out https://github.com/sobolevn/dotfiles

Spyder/Anaconda not installed properly. How do I find it?

I have tried installing anaconda multiple times on my Windows’s 10 laptop however, when I look for it after installation in the start menu it isn’t there?
Neither is spyder? I tried downloading win python but that didn’t work either. Any help would be much appreciated. Thankyou.
For a standard installation you should have this folder
C:\Users\<USERNAME>\.anaconda\navigator\scripts
If so, start anaconda-navigator-app.bat and see if it works.
P.S.: I really can't recommend Spyder anymore, since it has multiple problems especially if you might work with Qt. VS Code seems to be a better alternative.

pip "pyrax" dependency with iron worker

I created a Python script to use Rackspace's API (Pyrax) to handle some image processing. It works perfect locally, but when I upload it to Iron.io worker, it builds but does not import.
I am using a Windows 8 pc, but my boss runs OS X and uploading the exact worker package, it works fine. So I'm thinking it's something with Windows 8 but I don't know how to check/fix.
I do apologize in advance if I ramble or do not explain things clearly enough but any help would be greatly appreciated.
My worker file looks like this:
runtime "python"
exec "rackspace.py"
pip "pyrax"
full_remote_build true
Then I simply import pyrax in my python file.
I figured out that it was a bad Ruby install. No idea why, but reinstalling it worked.
It's difficult to know for sure what's happening without being able to see a traceback. Do you get anything like that which could be used to help figure out what's going on?

Categories