visual-studio-code

Flutter run - Failed to build iOS app - Command PhaseScriptExecution failed with a nonzero exit code

橙三吉。 提交于 2021-01-18 09:54:59
问题 Here's an image version of the console output for the flutter run . Here's an image version of the console output for flutter doctor -v . Running flutter run gives me: '''Downloading ios tools... 7.8s Downloading ios-profile tools... 5.5s Downloading ios-release tools... 34.0s Launching lib/main.dart on iPhone SE (2nd generation) in debug mode... Warning: Missing build name (CFBundleShortVersionString). Warning: Missing build number (CFBundleVersion). Action Required: You must set a build

Disable VS Code javascript check

主宰稳场 提交于 2021-01-07 06:04:33
问题 I am passing a twig object to javascript via script tags in a .html.twig file, and VS Code complains that "Property assignment expected. js [17, 38]". Is it possible to turn this off completely for .html.twig-files or perhaps turn off checking altogether? I am using ESLint extension in any case. <script> ... window.PROPS = {{ props|json_encode|raw }}; ... </script> (edit) Just to clarify, ESLint is not responsible for these problem-messages. I can turn off the ESLint extension (and reload the

Disable VS Code javascript check

a 夏天 提交于 2021-01-07 06:02:30
问题 I am passing a twig object to javascript via script tags in a .html.twig file, and VS Code complains that "Property assignment expected. js [17, 38]". Is it possible to turn this off completely for .html.twig-files or perhaps turn off checking altogether? I am using ESLint extension in any case. <script> ... window.PROPS = {{ props|json_encode|raw }}; ... </script> (edit) Just to clarify, ESLint is not responsible for these problem-messages. I can turn off the ESLint extension (and reload the

Exception: Jupyter command `jupyter-notebook` not found, windows

柔情痞子 提交于 2021-01-07 03:46:44
问题 So after installing VSCode and Python 3.7.4 (64 bit) I really struggle to make the "python interactive" work. I have installed the Python extension in VScode, also jupyter and jupyter-lab but I keep getting the error "Exception: Jupyter command jupyter-notebook not found." when I try to run a cell/a line. I am running Windows 10, using pip3 回答1: What did the trick was, that a few packages were outdated. Firstly I had to uninstall pyzmq and install it again. Then I ran pip3 install --upgrade

Unresolved import in my django project : VSCode

懵懂的女人 提交于 2021-01-07 02:46:52
问题 I have a Django project called ubm-app with two apps, main and ubm-app . I've created a couple of classes, URLAdder and URLModifier in the views.py file in the main app. Im trying to import these views into my urls.py file by using the line from . import views but VS Code shows me the error unresolved import 'c:\Users\Hari\Desktop\django\UBM-App\main.' . This is my urls.py file. from django.urls import path, include from . import views urlpatterns = [ path('',views.home,name='home'), path(

Unresolved import in my django project : VSCode

為{幸葍}努か 提交于 2021-01-07 02:46:08
问题 I have a Django project called ubm-app with two apps, main and ubm-app . I've created a couple of classes, URLAdder and URLModifier in the views.py file in the main app. Im trying to import these views into my urls.py file by using the line from . import views but VS Code shows me the error unresolved import 'c:\Users\Hari\Desktop\django\UBM-App\main.' . This is my urls.py file. from django.urls import path, include from . import views urlpatterns = [ path('',views.home,name='home'), path(

Long codes before output in VSCODE (Java)

懵懂的女人 提交于 2021-01-07 02:45:53
问题 I am using Visual Studio Code to run a simple Java "Hello World" program. But I also get some long codes before my output "Hello, World!". myusername hi % cd /Users/myusername/Desktop/Programming/hi ; /Library/Java/JavaVirtualMachines/jdk-15.0.1.jdk/Contents/Home/bin/java -agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=localhost:51164 --enable-preview -XX:+ShowCodeDetailsInExceptionMessages -Dfile.encoding=UTF-8 -cp "/Users/myusername/Library/Application Support/Code/User

Long codes before output in VSCODE (Java)

天大地大妈咪最大 提交于 2021-01-07 02:45:39
问题 I am using Visual Studio Code to run a simple Java "Hello World" program. But I also get some long codes before my output "Hello, World!". myusername hi % cd /Users/myusername/Desktop/Programming/hi ; /Library/Java/JavaVirtualMachines/jdk-15.0.1.jdk/Contents/Home/bin/java -agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=localhost:51164 --enable-preview -XX:+ShowCodeDetailsInExceptionMessages -Dfile.encoding=UTF-8 -cp "/Users/myusername/Library/Application Support/Code/User

Pylance not working in VSCode Jupyter notebooks

天大地大妈咪最大 提交于 2021-01-07 00:58:27
问题 Pylance works for .py files: But doesn't work with Jupyter .ipynb notebooks: I tried saving the .ipynb - same issue. How can enable Pylance warnings in my notebooks? 回答1: Currently in VSCode, Python files use the code analysis and quick repair functions provided by the extension "Pylance", but Jupyter notebook does not use it. Here is a workaround and you could refer to it: Please use " # %% " in the ".py" file, it will separate the code like Jupyter and code parsing can be used. 回答2: It

VS Code only displays 1 row of possible import paths. How do i convert back it to default listbox?

蹲街弑〆低调 提交于 2021-01-05 08:53:43
问题 I think I made some setting changes in vs code which made my import statements look like this. The default VS code import preview shows 3 or more paths. What would be the option I should change to revert it back to the default list box view? My settings.json 回答1: The last vscode update to v1.51 added the ability to change the size, height and width, of the suggestion box. It also seems to have set the box height to one lineHeight for some people. There is a command in the command palette to