Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all 99078 articles
Browse latest View live

Python not working in Visual Studio Code via the Integrated Terminal

$
0
0

I am playing with Flask, and want to use Visual Studio Code.

I have changed the default shell to be CMD and not Powershell within Visual Studio Code.

I want to use a CONDA environment called ARIEL, and have configured this (workspace settings are below):

{
    "python.pythonPath": "C:\\ProgramData\\Anaconda3\\envs\\ariel\\python.exe"
}

In VS Code, I am creating a new Integrated Terminal, thinking it would pick up the python virtual env as above. But in the terminal, when I type "python", it simply opens up the Windows App Store page, trying to get me to install python.

No normal commands like "pip" working in the Integrated shell within VS Code either.

enter image description here

Trying to follow this example:

https://code.visualstudio.com/docs/python/tutorial-flask


installation of softwares does not reflect in VS code

$
0
0

I installed vs code and also installed ibm blockchain extension in vs code. I also installed all the prerequisites. Still vscode shows its required. Kindly help me to resolve this

How to install pythonnet in VS Code?

$
0
0

I tried to install pythonnet in vs code by input

pip install pythonnet

in terminal and the error come up.

I also tried to git install

pip install git+https://github.com/pythonnet/pythonnet -U --force

and cd to the dir and run python setup.py install

And I am sure that my setuptool and wheel is up to date

any easy way to install the pythonnet?

thank for anyone help !

error:

PS C:\Users\User\Desktop\Python> pip install pythonnet
Collecting pythonnet
  Using cached pythonnet-2.4.0.tar.gz (1.8 MB)
Building wheels for collected packages: pythonnet
  Building wheel for pythonnet (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\user\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-35qtcmee\\pythonnet\\setup.py'"'"'; __file__='"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-35qtcmee\\pythonnet\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\User\AppData\Local\Temp\pip-wheel-l_p_t2zy'
       cwd: C:\Users\User\AppData\Local\Temp\pip-install-35qtcmee\pythonnet\
  Complete output (76 lines):
  running bdist_wheel
  running build
  running build_ext
  ?????? https://www.nuget.org/api/v2/ ????
  ?????? NuGet.exe 4.1.0?
  ???? NuGet.exe ? 5.4.0?
  ?????
  Cannot find the specified version of msbuild: '14'
  MSBuild auto-detection: using msbuild version '16.0.462.64354' from 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\bin'.   
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\bin\Microsoft.CSharp.CurrentVersion.targets(321,5): error MSB4019: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\bin\Roslyn\Microsoft.CSharp.Core.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on 
disk. [C:\Users\User\AppData\Local\Temp\pip-install-35qtcmee\pythonnet\src\runtime\Python.Runtime.csproj]
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\bin\Microsoft.CSharp.CurrentVersion.targets(321,5): error MSB4019: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\bin\Roslyn\Microsoft.CSharp.Core.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on 
disk. [C:\Users\User\AppData\Local\Temp\pip-install-35qtcmee\pythonnet\src\testing\Python.Test.csproj]
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\bin\Microsoft.CSharp.CurrentVersion.targets(321,5): error MSB4019: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\bin\Roslyn\Microsoft.CSharp.Core.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on 
disk. [C:\Users\User\AppData\Local\Temp\pip-install-35qtcmee\pythonnet\src\embed_tests\Python.EmbeddingTest.csproj]
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\bin\Microsoft.CSharp.CurrentVersion.targets(321,5): error MSB4019: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\bin\Roslyn\Microsoft.CSharp.Core.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on 
disk. [C:\Users\User\AppData\Local\Temp\pip-install-35qtcmee\pythonnet\src\console\Console.csproj]
  C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\bin\Microsoft.CSharp.CurrentVersion.targets(321,5): error MSB4019: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Current\bin\Roslyn\Microsoft.CSharp.Core.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on 
disk. [C:\Users\User\AppData\Local\Temp\pip-install-35qtcmee\pythonnet\src\clrmodule\clrmodule.csproj]

  ??: Error reading msbuild project information, ensure that your input solution or project file is valid. NETCore and UAP projects will be skipped, only packages.config files will be restored.
  Restoring NuGet package UnmanagedExports.1.2.7.
  Restoring NuGet package NUnit.ConsoleRunner.3.7.0.
  Restoring NuGet package NUnit.3.7.1.
  Adding package 'NUnit.3.7.1' to folder 'C:\Users\User\AppData\Local\Temp\pip-install-35qtcmee\pythonnet\packages'
  Adding package 'NUnit.ConsoleRunner.3.7.0' to folder 'C:\Users\User\AppData\Local\Temp\pip-install-35qtcmee\pythonnet\packages'
  Adding package 'UnmanagedExports.1.2.7' to folder 'C:\Users\User\AppData\Local\Temp\pip-install-35qtcmee\pythonnet\packages'
  Added package 'NUnit.ConsoleRunner.3.7.0' to folder 'C:\Users\User\AppData\Local\Temp\pip-install-35qtcmee\pythonnet\packages'
  Added package 'UnmanagedExports.1.2.7' to folder 'C:\Users\User\AppData\Local\Temp\pip-install-35qtcmee\pythonnet\packages'
  Added package 'NUnit.3.7.1' to folder 'C:\Users\User\AppData\Local\Temp\pip-install-35qtcmee\pythonnet\packages'

  NuGet Config files used:
      C:\Users\User\AppData\Roaming\NuGet\NuGet.Config

  Feeds used:
      C:\Users\User\.nuget\packages\
      https://api.nuget.org/v3/index.json

  Installed:
      3 package(s) to packages.config projects
  Traceback (most recent call last):
    File "tools\geninterop\geninterop.py", line 24, in <module>
      from pycparser import c_ast, c_parser
  ModuleNotFoundError: No module named 'pycparser'
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "C:\Users\User\AppData\Local\Temp\pip-install-35qtcmee\pythonnet\setup.py", line 623, in <module>
      setup(
    File "c:\users\User\appdata\local\programs\python\python38-32\lib\site-packages\setuptools\__init__.py", line 144, in setup
      return distutils.core.setup(**attrs)
    File "c:\users\User\appdata\local\programs\python\python38-32\lib\distutils\core.py", line 148, in setup
      dist.run_commands()
    File "c:\users\User\appdata\local\programs\python\python38-32\lib\distutils\dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "c:\users\User\appdata\local\programs\python\python38-32\lib\distutils\dist.py", line 985, in run_command
      cmd_obj.run()
    File "C:\Users\User\AppData\Local\Temp\pip-install-35qtcmee\pythonnet\setup.py", line 610, in run
      return bdist_wheel.bdist_wheel.run(self)
    File "c:\users\User\appdata\local\programs\python\python38-32\lib\site-packages\wheel\bdist_wheel.py", line 223, in run
      self.run_command('build')
    File "c:\users\User\appdata\local\programs\python\python38-32\lib\distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "c:\users\User\appdata\local\programs\python\python38-32\lib\distutils\dist.py", line 985, in run_command
      cmd_obj.run()
    File "c:\users\User\appdata\local\programs\python\python38-32\lib\distutils\command\build.py", line 135, in run
      self.run_command(cmd_name)
    File "c:\users\User\appdata\local\programs\python\python38-32\lib\distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "c:\users\User\appdata\local\programs\python\python38-32\lib\distutils\dist.py", line 985, in run_command
      cmd_obj.run()
    File "c:\users\User\appdata\local\programs\python\python38-32\lib\distutils\command\build_ext.py", line 340, in run
      self.build_extensions()
    File "c:\users\User\appdata\local\programs\python\python38-32\lib\distutils\command\build_ext.py", line 449, in build_extensions
      self._build_extensions_serial()
    File "c:\users\User\appdata\local\programs\python\python38-32\lib\distutils\command\build_ext.py", line 474, in _build_extensions_serial
      self.build_extension(ext)
    File "C:\Users\User\AppData\Local\Temp\pip-install-35qtcmee\pythonnet\setup.py", line 298, in build_extension
      subprocess.check_call([sys.executable, geninterop, interop_file])
    File "c:\users\User\appdata\local\programs\python\python38-32\lib\subprocess.py", line 364, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['c:\\users\\User\\appdata\\local\\programs\\python\\python38-32\\python.exe', 'tools\\geninterop\\geninterop.py', 'src\\runtime\\interop38.cs']' returned non-zero exit status 1.
  ----------------------------------------
  ERROR: Failed building wheel for pythonnet
  Running setup.py clean for pythonnet
Failed to build pythonnet
Installing collected packages: pythonnet
    Running setup.py install for pythonnet ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\User\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-35qtcmee\\pythonnet\\setup.py'"'"'; __file__='"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-35qtcmee\\pythonnet\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\User\AppData\Local\Temp\pip-record-msg167e6\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\User\appdata\local\programs\python\python38-32\Include\pythonnet'
         cwd: C:\Users\User\AppData\Local\Temp\pip-install-35qtcmee\pythonnet\
    Complete output (6 lines):
    usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]       
       or: setup.py --help [cmd1 cmd2 ...]
       or: setup.py --help-commands
       or: setup.py cmd --help

    error: option --single-version-externally-managed not recognized
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\User\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-35qtcmee\\pythonnet\\setup.py'"'"'; __file__='"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-35qtcmee\\pythonnet\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\User\AppData\Local\Temp\pip-record-msg167e6\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\User\appdata\local\programs\python\python38-32\Include\pythonnet' Check the logs for full command output.``` 


Sluggishness in VS Code due to Gtk on Windows 10

$
0
0

In VS Code, when I run a Julia file, if I have included the library ProfileView via using ProfileView, I get the following warning.

Warning: You are using Gtk on Windows which is currently not recommended. Your REPL/IDE and anything depending on task switches will become sluggish and much slower (up to ~85x slower).

The IDE does become very sluggish.

What should I do to fix this? JuliaPro and Atom are also very slow, and this slowness was why I switched to VS Code (the reason for the slowness may have been different, but I mention this just in case it is useful).

As suggested by the error message, I'm on Windows 10.

Sytax error while debugging the npm code with PingID

$
0
0

I have integrated Ping ID code with Node JS application.Now,While running the npm start to start the server I am getting the error "Couldn't get an access token. Request has been terminated Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc."

I tried debugging the code I am getting the following syntax error:

C:\Program Files\nodejs\node.exe --inspect-brk=46448 react-auth-client\src\sdk\api.js Debugger listening on ws://127.0.0.1:46448/754e8497-9f97-47b7-8c65-ddc399231a97 For help, see: https://nodejs.org/en/docs/inspector Debugger attached. Waiting for the debugger to disconnec:\pingone-customers-sample-custom-signon-master\react-auth-

client\src\sdk\api.js:4
import _ from "lodash";
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at Module._compile (internal/modules/cjs/loader.js:895:18)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
    at Module.load (internal/modules/cjs/loader.js:815:32)
    at Function.Module._load (internal/modules/cjs/loader.js:727:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10)
    at internal/main/run_main_module.js:17:11
ct...

Could you please help me on this please?

C# Package not found on build even after installing

$
0
0

I installed the Newtonsoft.Json package through terminal on VS Code. On running the command "dotnet run" I get the error message:

"The type or namespace name 'Newtonsoft' could not be found"

together with other associated error messages.

How would I address this issue? Thanks

"Pylint: Unable to import XXX" in a venv with python3.8 using vscode

$
0
0

I am using Remote-SSH extension of VSCode to do code development on a python project in a Ubuntu VM on Hyper-V.

So I am SSH'd into the project which uses a virtual env. The project structure is something as follows

.vscode/settings.json
build/
docs/
app/
---/src/file1.py
---/src/file2.py
---/src/folder1/file3.py
venv/

My settings.json has the following:

{
    "python.pythonPath": "/home/sven/stackl_dev/venv/bin/python",
    "python.linting.pylintPath": "/home/sven/stackl_dev/venv/bin/pylint",
    "python.linting.enabled": true
}

So I believe I am using the correct python executable and pylint.

However, my file1.py, for instance, does " import file2.py. My file3.py, as well.

Pylint then throws the error "Unable to import "file2". And this is the case for any import I do in whichever way. Similarly, I als0 get a no-name-in-module error for some imports.

Any clue on how to solve this? How do I solve this?

Failed to install dependencies of SQLTools using yarn

$
0
0

Im trying to develop a new driver for SQLTools (A Visual Studio Code plugin for DB conections) Repository: https://github.com/mtxr/vscode-sqltools

But when I clone this repository and execute yarn for install dependencies I obtain this result:

yarn install v1.19.1
[1/5] Validating package.json...
warning sqltools@0.21.0: The engine "vscode" appears to be invalid.
[2/5] Resolving packages...
[3/5] Fetching packages...
info fsevents@1.2.9: The platform "win32" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
warning workspace-aggregator-c9c8db11-ea2c-4058-8e87-789d0360a956@0.21.0: The engine "vscode" appears to be invalid.
warning @sqltools/extension@0.21.0: The engine "vscode" appears to be invalid.
warning @sqltools/plugins@0.21.0: The engine "vscode" appears to be invalid.
warning vscode-languageclient@5.2.1: The engine "vscode" appears to be invalid.
[4/5] Linking dependencies...
warning "workspace-aggregator-c9c8db11-ea2c-4058-8e87-789d0360a956 > @sqltools/extension > @babel/cli@7.5.5" has unmet peer dependency "@babel/core@^7.0.0-0".
warning "workspace-aggregator-c9c8db11-ea2c-4058-8e87-789d0360a956 > @sqltools/extension > babel-loader@8.0.6" has unmet peer dependency "@babel/core@^7.0.0".
warning "workspace-aggregator-c9c8db11-ea2c-4058-8e87-789d0360a956 > @sqltools/ui > @devexpress/dx-react-grid@2.0.4" has unmet peer dependency "@devexpress/dx-core@2.0.4".
warning "workspace-aggregator-c9c8db11-ea2c-4058-8e87-789d0360a956 > @sqltools/ui > @devexpress/dx-react-grid-material-ui@2.0.4" has unmet peer dependency "@devexpress/dx-grid-core@2.0.4".
warning "workspace-aggregator-c9c8db11-ea2c-4058-8e87-789d0360a956 > @sqltools/ui > @devexpress/dx-react-grid > @devexpress/dx-grid-core@2.0.4" has unmet peer dependency "@devexpress/dx-core@2.0.4".
[5/5] Building fresh packages...
[-/3] ⠁ waiting...
[3/3] ⠁ @sqltools/extension
error C:\Pruebas\vscode-sqltools\node_modules\@sqltools\extension: Command failed.
Exit code: 1
Command: yarn run vscode-install
Arguments:
Directory: C:\Pruebas\vscode-sqltools\node_modules\@sqltools\extension
Output:
yarn run v1.19.1
warning @sqltools/extension@0.21.0: The engine "vscode" appears to be invalid.
$ C:\Pruebas\vscode-sqltools\node_modules\@sqltools\extension\node_modules\.bin\vscode-install
internal/modules/cjs/loader.js:797
    throw err;
    ^

Error: Cannot find module 'C:\Pruebas\vscode-sqltools\node_modules\node_modules\vscode\bin\install'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:794:15)
    at Function.Module._load (internal/modules/cjs/loader.js:687:27)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)
    at internal/main/run_main_module.js:17:11 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
error Command failed with exit code 1.

I think the problem is the path. The files of C:\Pruebas\vscode-sqltools\node_modules\node_modules\ are really in C:\Pruebas\vscode-sqltools\node_modules\ (only one "node_modules") but I dont know why it search it in this path.


Visual Studio code disable code formatting for object destructuring

$
0
0

I'm writing web app using Koa and Typescript. In vscode i faced with unwanted code formatting: when i declare variables using object desctructing approach vscode autoformat it in multilines:

deleteUser: async (ctx: Context) => {
  const {
    body: { userId }
  } = ctx;

  await userService.deleteUser(userId);
}

And i want it in this case remain in a single line:

deleteUser: async (ctx: Context) => {
  const { body: { userId } } = ctx;

  await userService.deleteUser(userId);
}

I like how vscode handles my code formatting, so i don't want to disable it. But i want to find a workaround to disable object destructuring formatting if line length less than 80 chars.

What rule should i use to fix this ? Should i change vscode rules or tslint rules ?

Here's my .tslint file:

{
  "rules": {
    "class-name": true,
    "comment-format": [true, "check-space"],
    "indent": ["tabs"],
    "one-line": [true, "check-open-brace", "check-whitespace"],
    "no-var-keyword": true,
    "quotemark": [true, "double", "avoid-escape"],
    "semicolon": [true, "always", "ignore-bound-class-methods"],
    "max-line-length": [true, 120],
    "whitespace": [
      true,
      "check-branch",
      "check-decl",
      "check-operator",
      "check-module",
      "check-separator",
      "check-type",
      "check-preblock"
    ],
    "typedef-whitespace": [
      true,
      {
        "call-signature": "nospace",
        "index-signature": "nospace",
        "parameter": "nospace",
        "property-declaration": "nospace",
        "variable-declaration": "nospace"
      },
      {
        "call-signature": "onespace",
        "index-signature": "onespace",
        "parameter": "onespace",
        "property-declaration": "onespace",
        "variable-declaration": "onespace"
      }
    ],
    "no-internal-module": true,
    "no-trailing-whitespace": true,
    "no-null-keyword": true,
    "prefer-const": true,
    "jsdoc-format": true
  }
}

Does VSCode suggest or list all possibilities as IntelliJ does for ReactJS? [duplicate]

$
0
0

Does VSCode list all possible tags or properties for ReactJS as IntelliJ does without the need to start typing? If so, can you tell me how can I activate it? As shown in the pic here

vscode

In Flutter the VS Code editor throws an error - The function 'myApp' isn't defined

$
0
0

I am very beginner in flutter and dart, I just created my app and as it automatically creates a template app, It throws an error in widget_test.dart file in test folder

The function 'myApp' isn't defined. Try importing the library that defines 'myApp', correcting the name to the name of an existing function, or defining a function named 'myApp'.

{ "resource": "/D:/development/hello_rectangle/test/widget_test.dart", "owner": "dart", "code": "undefined_function", "severity": 8, "message": "The function 'myApp' isn't defined.\nTry importing the library that defines 'myApp', correcting the name to the name of an existing function, or defining a function named 'myApp'.", "source": "dart", "startLineNumber": 16, "startColumn": 29, "endLineNumber": 16, "endColumn": 34, "tags": [] }

I've tried upgrading flutter but it won't work!!

What is the purpose of the .angulardoc.json file in an angular project?

$
0
0

I have been generating new Angular projects before now and I have never seen an .angulardoc.json file in the folder in which I generated my Angular project.

Recently, I upgraded my angular Cli to the following

Angular CLI: 9.0.1
Node: 12.13.0
OS: win32 x64

Angular: 9.0.0
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.1
@angular-devkit/build-angular     0.900.1
@angular-devkit/build-optimizer   0.900.1
@angular-devkit/build-webpack     0.900.1
@angular-devkit/core              9.0.1
@angular-devkit/schematics        9.0.1
@angular/cli                      9.0.1
@ngtools/webpack                  9.0.1
@schematics/angular               9.0.1
@schematics/update                0.900.1
rxjs                              6.5.4
typescript                        3.7.5
webpack                           4.41.2

and now when I generate a new project, I see a .angulardoc.json file in the same folder with the folder in which I my project was generated.

The file contains an object with two keys: repoId which has the value of an auto-generated key, and lastSync which has the value of 0 for now.

What is the purpose of this file? Is this a VSCode thing or an Angular thing?

How to set breakpoints in vs code in a scala program

$
0
0

I want to debug my scala app with vscode.

My gradle run task looks as simple:

task run(type: JavaExec, dependsOn: build) {
    debug true
    main = mainClassFile
    classpath sourceSets.main.runtimeClasspath
    classpath configurations.runtime
}

The launch entry:

{
    "type": "java",
    "name": "Debug (Attach)",
    "request": "attach",
    "hostName": "localhost",
    "port": 5005
 }

Now when I launch the debugger, it waits for the vscode client. But I am not able to set any breakpoints in vscode in order to stop the debugger. For now it runs until the end, after vscode connected.

I am using the Scala and Scala Language Server.

Does someone know how to add breakpoints?

VS code always loads the last folder in a path

$
0
0

I'm currently working on VS code and connect to a remote machine to write my code, the issue is that when you have a path for example: C:/abc/bcd/def/ and /bcd has no other subdirectory other than /def then it will always open open the /bcd. My question is 2-fold: 1. How can I stop that? 2. How can I change the directory?

get currently focus file via VSCode extension API?

$
0
0

There is the steps.

  1. select a file or directory in workspaces.
  2. exec command via keybindings.
  3. get the selected file or directory path in command handler.

Command handler

vscode.commands.registerCommand('extension.myExtension', function (event) {
  // event is undefined.
  // how to do in here?
})

Enable intellisense for ionic components in HTML file outside of project

$
0
0

I am building an app with ionic and need to send some content from an HTML page on the server when requested by a user. Ideally this HTML file should use the correct ionic components so that any changes to its structure don't need to be accounted for in the app code.

Thus, I would like intellisense to suggest ionic components for this particular HTML file even though it's not actually inside the ionic project. Any suggestions on how to achieve this? I'm sure it must be a simple VSCode setting but I can't seem to find it

VSCode hide top-right icons

$
0
0

I'm a big fan of VScode's minimalist approach, but one thing is bugging me. I would like to hide editor-tab icons.

enter image description here

The icons are from extensions: git-lens& hexdump for VScode. Also the split-editor icon would be nice to hide.

Nested vscode settings in a large project?

$
0
0

Here's my file structure:

  • root
    • .vscode
    • templates
      • .vscode

I'd like the settings in the nested "templates" folder to apply only there, but it doesn't seem to work.

Is there any way to do this?

Git take number of files changes not show files in windows 10 , can push by git command line

$
0
0

Get number of file changes only i can`t see compare and push

can push by command line not show any file and make uninstall to git and install again same problem

unable to import ’NLTK'

$
0
0

I’m currently working on my first chatbot and I need nltk for this bot to install. So I opened my terminal on my Mac and type pip install nltk and it successfully installs.

So I opened VisualStudioCode and I type import nltk but it replies: "Unable to import 'nltk‘ "

Why is this?

Thanks a lot

Viewing all 99078 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>