I am trying to download a project to my local environment with SPgo. Once I declare all the remote folders and start downloading, Visual Code is forever populating the workspace and doesn't update anything.
please modify the "remoteFolders" path patterns to
"remoteFolders": [
"/SiteAssets/**/*",
"/Paginas/**/*"
]
and recheck. I hope it will help :)
Related
There is something going on that im not being able to solve.
I have a Python project running inside visual studio 2019. In there I created a virtual env with all my required libraries.
I organized the project by folders and the folder in question has an init.py file.
Folder Organization
I have one of the .py files inside the folder that imports other functions from the adjecent files. Everything works fine in visual studio. If i run "Start without debugging" on that file. It open up a command prompt on windows and the code starts running in the background flawlessly.
Now, I want to be able to call that process from windows after it is developed, and so, I check where Visual Studio installed the virtual environment so that I can run the script with that version. And I do just that:
C:......_First_Project_environment\Scripts\python.exe C:..._First_Project...... .py
And I get and error:
File "C:..._First_Project...... .py", line 3, in
import x.y as crawler
ModuleNotFoundError: No module named 'y'
But this is not true... there is a module named 'y', because the code runs OK inside visual studio or when i tell it to run from there.
Line 3 reads as
import x.y
and x is the name of the folder, y is the name of the file..
Can anyone spot what I am doing wrong here?
Thanks in advance.
Found solution myself. Sorry.
I was missing the reference to the folder where the module lives on sys.path
Added a .pth file on the lib/site-packages folder with the path to the module folder.
Worked like a charm.
Regards.
In our team, we use visual studio code (macOS, linux) for nodejs debugging.
As we work with several version of node, we need to specify the runtimeExecutable path in launch.json file. That works well.
However, we need to automate the generation of this file (launch.json), and for that we need to specify the home folder (~). Does someone know how to specify it ? I tryed ~, $HOME, ${HOME}, but none of these seems to work.
Thank you,
Alcyon
Try ${env:HOME}. See https://code.visualstudio.com/docs/editor/tasks#_variable-substitution for a list of the allowed substitution vars, and how they work.
I just downloaded Python and Visual Studio. I'm trying to test the debugging feature for a simple "Hello World" script and I'm receiving this error:
Failed to launch the Python Process, please validate the path 'python'
followed by this in the debug console:
Error: spawn python ENOENT
Could someone please help me out and tell me how to fix this?
I'm running on windows 10.
Thanks!
Do not uninstall!
1) Go to location that you installed the program.
*example: C:\Program Files (x86)\Microsoft VS Code
copy the location.
2) right click on computer> properties >Advanced System Settings> Environment variables > under user variables find "path" click> edit> under variable value: go to the end of the line add ; then paste your location>ok > then go under system variables find "path"> do the same thing.... add ; then paste your location.
FOR EXAMPLE" ;C:\Program Files (x86)\Microsoft VS Code
3) Restart your Visual Studio Code
For those who are having this error after the recent (May-June of 2017) update of Visual Studio Code.
Your old launch.json file might be causing this issue, due to the recent updates of launch.json file format and structure.
Try to delete launch.json file in the .vscode folder. The .vscode folder exists in your workspace where your source code exists, not to be confused with the one in your user home folder (C:\Users\{username}\.vscode).
This workaround worked fine for me with Windows10 + Visual Studio Code + Python extension. Just delete the existing launch.json and restart Visual Studio Code, and then start your debugging. The launch.json file might be regenerated again, but this time it should be in the correct shape.
Simply restart your VB studio code. Those show that some packages have been downloaded but not yet installed until reboot it.
Add python path by following these steps.
1. Go to uninstall a program.
2. Go to Python 3.6.1 (this is my python version). Select and click on Uninstall/change.
3.Click on Modify.
4. Click next > In advanced options > tick add Python to environment variable. Click install. Restart VS code.
This fixed it for me. The launch.json file in the .vscode folder in your working directory NOT in your program files directory needs to be opened in the Visual Studio Code editor. Here you need to find the line (for me line 13) at the top that says "pythonPath": here you type "py" and make sure to save it!! Ctrl+S. It has something to do I think with the way it looks for python spelled "python" when it needs to be spelled as "py".
Here is the link where I found the info: https://paulpccodes.blogspot.com/2017/08/fixing-failed-to-launch-python-process.html
Figured it out, if you just started python then you probably did not add python to your path.
To do so uninstall python and then reinstall it. This time click "add python to path" at the bottom of the install screen.
Is there a way to launch Microsoft Visual Studio Code from the command line in windows? I can't even seem to find the directory for code on my computer. It didn't even ask me where to download it.
Navigate to the directory that you want to open and type code . to launch VS Code.
As many folks already suggested ways to open code from command prompt using code . command. This will only open Visual Studio Code Stable build. But If you have downloaded Visual Studio Code Insider build/version (Which has all latest build/features but unstable version) then you need to follow below instructions in windows :
Go to Control Panel\System and Security\System. Click on Advanced System Settings
Click on Environment Variables
Under System Variables tab, Click on Edit for Path Variable
Add a new path C:\Users\tsabu\AppData\Local\Programs\Microsoft VS Code Insiders\bin
(or)
C:\Program Files\Microsoft VS Code Insiders\bin based on location at which you have installed vscode insider in your machine.
Open a new command prompt and type code-insiders . to open vscode-insider
build/version
Short answer:
code your_path your_filename
Long answer:
Here your_path can simply be . if you want to use the current directory as your working path. Or .. for 1 level up, etc.
code is the name of the executable of Visual Studio Code (code.exe). If it doesn't launch, perhaps your VSC path hasn't been added to the path environment variable. Run this command to add it:
set PATH=";C:\Program Files\Microsoft VS Code\bin"
Of course you'll need to specify a different path if your VSC is installed somewhere else.
How can you find out the installation path? (click for screenshot) Go to "Start" menu, type in "Visual Studio Code", right click on the found program, "Properties", check "Target". Now you'll see!
It may come already added to your path when installed. Try using code <filename> in your command line. If it's not you can add the command line script's directory to your path. The command line script's directory is downloaded by default in the following location
C:\Users\<username>\AppData\Local\Code\bin
Point your command prompt to the specific folder that has the file that you want to open. Let's say you want to open the file titled main.scss. Simply run this command:
start code main.scss
If Visual Studio Code is already open, you can simply do:
code main.scss
I am trying to build Assimp to use in visual studio 2012.
Following the instructions on their website: http://assimp.sourceforge.net/lib_html/cmake_build.htm I have tried to build assimp, however I am stuck on the last step "Open the generated solution/project files and have fun"
This is the build folder which was created by CMake - http://puu.sh/fq8kp/cc16e985c3.png
Following the advice of another tutorial I opened this in the terminal and tried to type "make" and launch it. However there isnt a make file so this didnt work. I also typed "install" as there is an install file, however this also did not work.
The tutorial goes as follows:
Type "make" and launch it; you should see the build progressing without issues
When the build is finished, type "sudo make install"; it will ask for your password and install the library!
Any help would be much appreciated!
the 'generated solution/project' in your case (windows) would be the Assimp.sln file. You generated a visual studio solution, so you have to use Visual Studio to build the application.
According to your screenshot, the Assimp.sln file is the 9 KB sized file underneath the one with size 45,120 KB