visual-studio-code

vscode IntelliSense / code completion doesn't work when I am not in base conda environment

血红的双手。 提交于 2021-01-29 19:12:27
问题 When I change my project to another conda environment than base environment, python code completion doesn't work anymore for installed modules (like cv2). I have no problem detecting the environment or running my code though. How can I fix it ? 回答1: Open your Anaconda Prompt, activate the environment, and then launch VS Code from within the activated environment (i.e. code . ). 来源: https://stackoverflow.com/questions/62018436/vscode-intellisense-code-completion-doesnt-work-when-i-am-not-in

vscode can't open Python interactive, and the following error occurs

只愿长相守 提交于 2021-01-29 18:55:18
问题 When using vscode, can't open Python interactive, and the following error occurs: Activating Python 3.7.3 64-bit to run Jupyter failed with Error: Command failed: D:\software\anaconda\activate base && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python c:/Users/HELLO/.vscode/extensions/ms-python.python-2019.11.50794/pythonFiles/printEnvVariables.py 'D:\software\anaconda\activate' 回答1: I'm a developer on the data science features for this extension. There are currently some issue with conda

VSCode Jupyter Notebook - Restore Cache Version

为君一笑 提交于 2021-01-29 17:50:33
问题 I was creating a Jupyter Notebook using VSCode (v 1.48.0) running on Ubuntu 19.10. VSCode crashed and unfortunately I had not saved the notebook, and when I restarted it was empty. I have been able to find what looks like a cached version of the notebook in ~/.config/Code/User/globalStorage/ms-python.python , in a file called 527ed533.ipynb. Small sample of what the file looks like Reviewing the contents of the file, I can tell that this is the notebook I was working on, but the format looks

Fail OmniSharp MSBuild ProjectManager [duplicate]

时光怂恿深爱的人放手 提交于 2021-01-29 17:30:50
问题 This question already has answers here : OmniSharp.MSBuild.ProjectManager Failed to load project on Linux (3 answers) Closed 16 days ago . Note: I already search other similar question related to OmniSharp issue, could not find proper solution.Intellisense of vs code c# not working. I uninstall the c# extension and install again but it can not resolve my issue.I also install previous version of csharp 1.15.2 but it does not work. I attach my log info My dotnet --info is as follow .NET Core

Where is the lldb executable vscode uses?

孤人 提交于 2021-01-29 17:10:52
问题 I'm having difficulty with debugging rust in vscode (It can't evaluate any expressions involving functions). I noticed that I don't have lldb installed (Ubuntu 20.04), but the debugger is still running. Where is it finding the lldb executable? Can I change the path? 来源: https://stackoverflow.com/questions/65542559/where-is-the-lldb-executable-vscode-uses

Same import, different errors

孤者浪人 提交于 2021-01-29 15:33:12
问题 I am making tests for my code, but I'm facing a strange import error. Notes: I am using VSCode version: 1.46.1 PYTHONPATH is set to project's root Folder structure is this: -app.py -models ---language.py ---category.py -my_tests ---unit ------models ---------category_test.py ---------language_test.py In category_test, I do import "Category" class by using: from models.category import Category In language_test, I do import "Language" class by using: from models.language import Language In

How do I add dependency javadocs in Visual Studio Code?

送分小仙女□ 提交于 2021-01-29 14:18:09
问题 I've set up a maven project in visual studio code with the red hat java support. Everything works great, except that the intellisense doesn't include the javadoc descriptions for the functions and classes from my dependency. Is there a way to explicitly link VSCode to my library's jdocs? If so, how do I do it? 回答1: you could try this: for example, i have a project : /project /lib test-1.0.0.jar /doc test-1.0.0-javadoc.jar add in your .classPath : <classpathentry kind="lib" path="lib/test-1.0

How can i debugging my adonis ( nodejs ) framework APIs?

二次信任 提交于 2021-01-29 13:37:28
问题 I'm just beginner in adonis framework in NodeJS but I have a good experience in laravel and lumen framework in laravel and lumen framework APIs I use dd() dump and die to debugging my app but in the AONIS framework, I don't know how to debug my API code . for IDE = I'm using Microsoft visual studio ( VS Code ) 回答1: Read this : https://code.visualstudio.com/docs/nodejs/nodejs-debugging (from @damitj07) In summary : You need to create new lauch.json like: { // Use IntelliSense to learn about

Visual Studio Code on macOS + Qt + Intellisense

大兔子大兔子 提交于 2021-01-29 13:06:42
问题 Visual Studio Code gets the following error: cannot open source file "QtWidgets/qtwidgetsglobal.h" (dependency of "QApplication")C/C++(1696) I have a CMake project which compiled and built successfully, but it seems that Intellisense doesn't work. I have this directory in a path which contains qtwidgetsglobal.h : /usr/local/Cellar/qt/5.13.1/lib/QtWidgets.framework/Headers And there is another thing: Directory /usr/local/Cellar/qt/5.13.1/lib/QtWidgets.framework contains directory Headers and

VS Code Python Interactive Window ImportError: cannot import name

为君一笑 提交于 2021-01-29 12:52:44
问题 I am running a Python script in the VS Code Python Interactive Window with an Anaconda environment using Python 3.7.4). My "Notebook File Root" setting is set to $(workspaceFolder). I am using a workspace with two project folders: apple connie connie has a couple of files relevant in this problem: connie/scripts/mongo_helpers.py connie/project/project_file.py The problem occurs when I run project_file.py in the Python Interactive Window. It tries to load the mongo_helpers file as a module.