vscode extension [tht13.python]: 'configuration.jsonValidation.url' - json

I got this error notification while using VSCode:
[tht13.python]: 'configuration.jsonValidation.url' must be
an absolute URL or start with './' to reference
schemas located in the extension.
I have found and changed jsonValidation to:
"jsonValidation": [
{
"fileMatch": ".condarc",
"url": "./schemas/condarc.json"
},
{
"fileMatch": "environment.yml",
"url": "./schemas/conda-environment.json"
},
{
"fileMatch": "meta.yaml",
"url": "./schemas/conda-meta.json"
}
]
in package.json, but it still doesn't work.
How to figure out this issue?

You are using the extension "Python for VSCode" (tht13.python). It looks like this extension is not maintained anymore (last commit on Jun 13, 2018)
Maybe you should switch to another extension. I'm quite happy with the "Python" (ms-python.python) extension from Microsoft https://marketplace.visualstudio.com/items?itemName=ms-python.python

Related

"crbug/1173575, non-JS module files deprecated" Error in flutter

i created a json file with all the data required for my app, it was working fine but one image was showing error saying that it is from another domain, so i changed the image address to another image, and now it says
crbug/1173575, non-JS module files deprecated
i tried changing it back to the previous image and restarted the application it still shows the error.
{
"id": 1,
"name": "92.7",
"tagline": "on the ground by Rose",
"color": "blue",
"url": "https://upload.wikimedia.org/wikipedia/en/5/51/Google_Chrome_on_Windows_10_screenshot.png" ,
"icon": "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Google_Chrome_icon_%28September_2014%29.svg/96px-Google_Chrome_icon_%28September_2014%29.svg.png" ,
"img": "https://preview.redd.it/ls2yuc4501l61.jpg?width=512&auto=webp&s=be785e98bf288f69c0b0105fb2bce6ab807b20f4",
"category": "blackpink",
"disliked": false,
"order": 1
},
{
"id": 2,
"name": "92.7",
"tagline": "blood sweat and tears by BTS",
"color": "blue",
"url":"https://upload.wikimedia.org/wikipedia/en/5/51/Google_Chrome_on_Windows_10_screenshot.png" ,
"icon": "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Google_Chrome_icon_%28September_2014%29.svg/96px-Google_Chrome_icon_%28September_2014%29.svg.png",
"img":"https://m.media-amazon.com/images/M/MV5BZTQ3YmU4MjAtYzQ0NC00NjRjLThmMzYtMTE4MzgzMWJkNjliXkEyXkFqcGdeQXVyNDY5MjMyNTg#._V1_.jpg",
"category": "BTS",
"disliked": false,
"order": 2
}
Error was in the first pic, the second was showing fine but after changing it , now it doesnt start the application and shows the error i mentioned above. I'm using google chrome to run the application.
Delete your launch.json file as it is causing your app to not launch with the default configuration of flutter
I encounter the same error in one of my flutter web projects. you have to delete the launch.json file.
Here is path of file
.vscode -> launch.json
just delete launch.json and your project will run.
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"request": "launch",
"name": "Launch Chrome against localhost",
"type": "dart"
}
]
}

How to fix: "No help topic for 'preview'" error when using gactions?

I've been trying to follow a tutorial on building your first action for google home:
https://medium.com/google-cloud/building-your-first-action-for-google-home-in-30-minutes-ec6c65b7bd32
I was able to deploy my application to the google cloud, but once I try to deploy my action.json test file I receive an error message that says: "No help topic for 'preview'."
./gactions preview --action_package action.json --invocation_name "three doors" --preview_mins 1234
No help topic for 'preview'
I've followed the suggestions from:
https://stackoverflow.com/questions/46591266/golang-runtime-panic-when-using-gaction-on-linux-to-update-google-home-assistant
But updating gactions didn't work either as there were no new updates.
I'm running ubuntu-18.04.2 Linux 4.18.0-15-generic x86_64
{
"versionLabel": "1.0",
"agentInfo": {
"languageCode": "en-US",
"projectId": "three-doors-3124",
"voiceName": "male_1"
},
"actions": [
{
"description": "Launch intent",
"initialTrigger": {
"intent": "assistant.intent.action.MAIN"
},
"httpExecution": {
"url": "https://us-central1-three-doors-3124.cloudfunctions.net/three_doors"
}
}
],
"locale": "en"
}
I'm not sure how to fix this problem, so any help would be much appreciated.
Thanks
That post is from 2017, and a lot of the development environment and setup has changed since then. I'd recommend going to the codelabs as they will provide good up to date starting guides.

VS Code: Error while applying breakpoint, "Breakpoint ignored because target path not found"

I am using chrome debugger extension in Visual Studio code to debug my backbone application. The launch.json file is like this;
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "https://localhost:3000/authenticate/app/110020",
"webRoot": "D:/Apps/app",
"sourceMaps": false,
"trace": "verbose"
}
]
}
When i am trying to put a breakpoint in the app.js file which is present in "D:/Apps/app" directory, the following error is displayed,
"Breakpoint ignored because target path not found". The file app.js is not minified or combined.
The answer for the original question was found here by the looks of things: https://github.com/Microsoft/vscode-chrome-debug/issues/462
In summary the issue was related to the poster requesting JS files with a querystring with no key eg
https://localhost:3000/dd/2000/app/js/pp?112/src/js/build.js
This caused an error is VS code. As of now the issue is still open.

VS Code "Include file not found in include path."

First of all, I know this issue has been answered a bunch of times already, but the answer (the same one every time) doesn't work for me still..
I get the infamous "Include file not found in include path" when trying to include iostream in a simple hello world c++ program. I then include the path to my MinGW include folder as follows:
{
"name": "Win32",
"includePath": [
"${workspaceRoot}",
"C:/MinGW/lib/gcc/mingw32/4.9.3/include/c++"
],
"defines": [
"_DEBUG",
"UNICODE"
],
"browse": {
"path": [],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
}
Yet, I still get the same error. This is, for what I've found, the only solution to this problem. It's really frustrating that VS Code just doesn't seem to recognize the path.
Any advice is helpful and appreciated!
This seems like you're looking at it from the start of the project. I would go to the extension (C++ my guess) and see how to implement it. If this doesn't work for you I would check your path.
https://code.visualstudio.com/docs/languages/cpp
I met the same trouble with you.
Maybe you could try to set "brose"-"path" like this.
{
"name": "Win32",
"includePath": [
"${workspaceRoot}",
"C:/MinGW/lib/gcc/mingw32/4.9.3/include/c++"
],
"defines": [
"_DEBUG",
"UNICODE"
],
"browse": {
"path": [
"${workspaceRoot}",
"C:/MinGW/lib/gcc/mingw32/4.9.3/include/c++"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
}
Wish this could help you.

How do you make manifest.json for Microsoft Teams bot?

I followed the online tutorial for constructing a bot in Visual Studio and deploying it Azure, and so far that seems to have worked. Now I want to add this bot to Microsoft Teams via the "Sideload a bot or tab" method. The online tutorial has NO explanation for what I need to do so I need some help. Here is the manifest.json I was currently trying to upload in a zip folder. Please help, I don't know how this process works.
{
"$schema": "https://statics.teams.microsoft.com/sdk/v1.0/manifest/MicrosoftTeams.schema.json",
"manifestVersion": "1.0",
"version": "1.0.0",
"id": "a5db14e6-8adf-445b-a0aa-daadc5e155eb",
"packageName": "com.testbot20170525114049",
"developer": {
"name": "Megan",
"websiteUrl": "https://website.com/",
"privacyUrl": "https://website.com/privacy",
"termsOfUseUrl": "https://website.com/app-tos"
},
"name": {
"short": "Botty"
}
"description": {
"short": "A sample bot to test the bot upload process"
}
"bots": [
{
"botId": "a5db14e6-8adf-445b-a0aa-daadc5e155eb",
"needsChannelSelector": "true",
"scopes": [ "team", "personal" ]
}
]
}
Enable Public Developer Preview. The v1.0 manifest is fully supported in that mode, and while it may work in the public version, for now I'd switch to developer preview mode.
Make sure your manifest follows the v1.0 format. While your schema is close, there are a few required fields missing:
description.full
icons.outline
icons.color (note currently there is a 2k limit on file size)
accentColor
Zip the manifest and icons into a sideloadable package. Make sure the manifest.json is at the top level.
Follow the sideload instructions.