Why Visual Studio Code gives me an Incomplete type not allowed? [closed]
I was trying to write a simple program which gives me the sched_attr using sched_getattr function in Linux and Visual Studio Code is giving me the following error Can someone explain to me why? I'm...
View ArticleCan't attach debugger to Quasar main process
I'm building an electron application using Quasar Framework. I'm having some trouble debugging the main process of Electron of it with VS Code.When I start my app with quasar dev -m electron I can see...
View ArticleDetect when document is closed
I'm working on Visual Studio Code extension and I need to detect when some document window is closed. I know about vscode.workspace.onDidCloseTextDocument event and it works at general.But if I open a...
View ArticleConfiguring dfmt to allow one element per line
With dfmt, the source code formatter for D language, the following code:auto carModels = [ "alpha", "bravo", "charlie", "delta" ]; gets re-formatted into:auto carModels = ["alpha", "bravo", "charlie",...
View ArticleIs it possible to connect vscode(on a local machine) with google colab (the...
I know on GCP, we can set up a vscode server and connect to that. But what I'm after here, is to know whether it is possible to connect to the runtime instance on google colab (the free one ie :...
View ArticleCan't connect to GCP instance from VSCode
When I try to connect to the GCP instance it gives the following error : Could not establish connection to "AAA.AAA.AAA.AAA". Permission denied (publickey)I'm using the Remote-SSH extension. How to...
View Articlevscode debug code in node_modules directory
I have a node_js project that includes some of our own node_js packages. They are in an npm private repo and show up in node_modules as:@company/package_name We are trying to set breakpoints in this...
View ArticleFlash a error/success message on flask after .validate_on_submit
Newbie to Flask and a very short time to learn to do something decent(College). I have a survey that I would like to use FLASH to flash the success and error messages(category), though I haven't been...
View ArticlepythonEnv specific PATH not respected when debugging flask with my launch.json
I have a python Environment where executables are provided necessary for my flask app. If i debug with this launch.json: { "name": "Python: Flask", "type": "python", "request": "launch", "stopOnEntry":...
View ArticleHow to compile a single standalone C++ program in Visual Studio Code
I want to compile single standalone C++ programs in Visual Studio Code. Currently, when I compile a program in VS Code, it only outputs a single executable file. If I have one program helloworld.cpp,...
View Articlevscode python refactor failed
When i tried to rename myset in the following code, i saw the following message.class NumberGenerator: def __init__(self): self.__myset__ = set() def uncount(self, i): self.__myset__.add(i) Refactor...
View ArticleHow can i set Beautify for VSCODE to indent Jinja2 and Flask?
I hope i am posting in the correct area.Beutify indentation is ignoring Jinja 2I am using Beautify - HookyQR to help with formatting and indexation. HTML, Python, CSS ... everything works fine. But...
View ArticleJavascript variables does not appear in autocomplete box in vscode [closed]
Vscode version 1.39.2 ,Os : Centos 7I define a variable in a script tag of a Html file , because of the structure of my project i must rename my html file to name.html.phpwhen i want to use this...
View ArticleHow to start debug in Visual Studio Code on macOs in C language?
I have a simple project just with one main.c file and info.h file. I am using makefile for building purposemyprog1 : main.o gcc -g main.o -Wall -ansi -pedantic -o myprog1 main.o : main.c info.h gcc -c...
View ArticleVisual Studio Code:[js] types can only be used in a .ts file
Is it possible to use .js files in a typescript project in vs code? I have clone a react-native project from a github repository and opened it in visual studio code. When I add a tsconfig.json in order...
View ArticleChange flask running port in VScode debugger
I do have a flask application running on port 8000 because i have logstash running on port 5000.app.run(debug=True, host='0.0.0.0', port=8000)i can run my app successfully. but when i use VScode...
View ArticleHow to show R graph from visual studio code
I installed extension for R language https://marketplace.visualstudio.com/items?itemName=Ikuyadeu.rWhen i run my R code in visual studio code with (ctrl + enter) i get empty window instead of graph...
View ArticleVisual studio code cmd error: Cannot be loaded because running scripts is...
Inside of visual studio code, I'm trying to execute a script.bat from the command line, but I'm getting the following error:File C:\Theses_Repo\train-cnn\environment\Scripts\activate.ps1 cannot be...
View ArticleVSCode: Automatically run npm script on starting debugging of a web project
So here is my VS code launch.json file:{ "version": "0.2.0", "configurations": [ { "type": "chrome", "request": "launch", "name": "Launch Chrome against localhost", "url": "http://localhost:4321",...
View ArticleUse Youtube-dl in python script using import youtube_dl
I want to use youtube-dl in a python script, not using commands. I installed youtube-dl using pip install youtube-dl and I also tried installing it using pip install --upgrade youtube-dl and also pip3...
View Article