My project, with name in lowercase, compiles and creates the apk, but in VStudio it indicates a problem that I have not been able to solve, Property progress is not allowed:
code in angular.json:
"ci": {
"progress": false
}
[{
"resource": "/C:/ionic/prueba/angular.json",
"owner": "_generated_diagnostic_collection_name_#0",
"severity": 4,
"message": "Property progress is not allowed.",
"startLineNumber": 86,
"startColumn": 15,
"endLineNumber": 86,
"endColumn": 25
}]
I send additional information, thank you very much !!!
Ionic:
Ionic CLI : 6.19.0 (C:\Users\Guille\AppData\Roaming\npm\node_modules\#ionic\cli)
Ionic Framework : #ionic/angular 6.0.14
Cordova:
Cordova CLI : 11.0.0
Cordova Platforms : android 10.1.1
OS : Windows 10
Related
All of a sudden I'm receiving ambiguous import errors on classes that absolutely don't exist in the locations stated in the error message. As an example the name of the class is something like BusinessEntityResponse (ie GetUserNameResponse) and Flutter/dart is reporting it as ambiguous in the framework. Any ideas on how to address this (tried flutter clean) or why it is occurring or how to troubleshoot it?
{
"resource": "/c:/projects/git/curbside/my_app/lib/data/settings/settings.dart",
"owner": "dart",
"code": {
"value": "ambiguous_import",
"target": {
"$mid": 1,
"external": "https://dart.dev/tools/diagnostic-messages#ambiguous_import",
"path": "/tools/diagnostic-messages",
"scheme": "https",
"authority": "dart.dev",
"fragment": "ambiguous_import"
}
},
"severity": 8,
"message": "The name 'MyAppClassResponse' is defined in the libraries 'package:my_app/api/dto.dart' and 'package:flutter/src/widgets/framework.dart'.\nTry using 'as prefix' for one of the import directives, or hiding the name from all but one of the imports.",
"source": "dart",
"startLineNumber": 81,
"startColumn": 10,
"endLineNumber": 81,
"endColumn": 36,
"tags": []
}
This seems to be indicative of a larger problem as the following lines are also throwing compilation errors all of a sudden:
class AppEntryWeb extends StatelessWidget --> Classes can only extend other classes.
{
"resource": "/c:/projects/git/curbside/my_app/lib/ui/launch-web.dart",
"owner": "dart",
"code": {
"value": "extends_non_class",
"target": {
"$mid": 1,
"external": "https://dart.dev/tools/diagnostic-messages#extends_non_class",
"path": "/tools/diagnostic-messages",
"scheme": "https",
"authority": "dart.dev",
"fragment": "extends_non_class"
}
},
"severity": 8,
"message": "Classes can only extend other classes.\nTry specifying a different superclass, or removing the extends clause.",
"source": "dart",
"startLineNumber": 12,
"startColumn": 27,
"endLineNumber": 12,
"endColumn": 42,
"tags": []
}
For what it is worth, the errors seemed to have occurred when the visual studio code flutter extension updated to 3.15.0. I uninstalled the flutter/dart extensions, shut down vs code, reopened and reinstalled them which seemed to have fixed the issue.
Further information, the visual studio code analyzer problem window was reporting different information from running flutter analyze. Not sure why.
Is there a way of retrieving all the available versions in a given package on Bintray?
Like how repositories and packages have 'Get repositories' and 'Get packages' respectively.
I know the one way is to go into the UI and look at the version list. But I'm hoping to find an API that does this for me.
Any thoughts?
Try the get package API:
GET /packages/:subject/:repo/:package[?attribute_values=1]
{
"name": "my-package",
"repo": "repo",
"owner": "user",
"desc": "This package...",
"labels": ["persistence", "database"],
"attribute_names": ["licenses", "vcs", "github", ...], (hidden when using 'attribute_values=1' )
"licenses": ["Apache-2.0"],
"custom_licenses": ["my-license-1", "my-license-2"], (only for Premium Account)
"followers_count": 82,
"created": "ISO8601 (yyyy-MM-dd'T'HH:mm:ss.SSSZ)",
"website_url": "http://jfrog.com",
"rating": 8,
"issue_tracker_url": "https://github.com/bintray/bintray-client-java/issues",
"linked_to_repos": [],
"github_repo": "", (publishers only)
"github_release_notes_file": "", (publishers only)
"public_download_numbers": false, (publishers only)
"public_stats": true, (publishers only)
"permissions": [],
"versions": ["0.9", "1.0", "1.0.1", ...],
"latest_version": "1.2.5",
"rating_count": 8,
"system_ids" : [],
"updated": "ISO8601 (yyyy-MM-dd'T'HH:mm:ss.SSSZ)",
"vcs_url": "https://github.com/bintray/bintray-client-java.git",
"attributes": "{"attr1_name":["attr1_value"], "attr2_name":["attr2_value"]}" (only when 'attribute_values=1')
}
https://bintray.com/docs/api/#_get_packages
You can see the versions section of the resulting JSON.
I'm studying, flutter http request, and have followed the instructions at https://pub.dev/packages/http#-installing-tab- but after I import, this notification appears:
{
"resource": "/C:/appfluter/lat_api_htpp/lib/post_result_model.dart",
"owner": "dart",
"code": "unused_import",
"severity": 2,
"message": "Unused import: 'package: http / http.dart'. \ nTry removing the import directive.",
"source": "dart",
"startLineNumber": 1,
"startColumn": 8,
"endLineNumber": 1,
"endColumn": 32,
"tags": [1]
}
Even though I already installed the plugin, can anyone help?
Just add/include this package Name in your Class
import 'package:http/http.dart' as http;
I've started building a new plugin for Adobe XD, but for some reason, I can't see it in the plugin menu, even after several reloads.
I'm pretty sure I structured the folder correctly and I'm building in the correct develop folder...
Plugin location
Make sure your plugin is in XD's develop folder. You can find that folder here:
macOS:
~/Library/Application\ Support/Adobe/Adobe\ XD\ CC/
Windows:
C:\Users\%USERNAME%\AppData\Local\Packages\Adobe.CC.XD_adky2gkssdxte\LocalState\
The XD plugin API docs have more information on plugin location.
Manifest errors
Errors in the plugin manifest are the most likely culprit.
Here's an example of a manifest.json file:
{
"id": "YOUR_ID_HERE",
"name": "Name of Your Plugin",
"version": "0.0.1",
"description": "Description of your plugin.",
"icons": [
{ "width": 96, "height": 96, "path": "images/icon#2x.png" }
],
"host": {
"app": "XD",
"minVersion": "13.0.0"
},
"uiEntryPoints": [
{
"type": "menu",
"label": "Hello World",
"commandId": "helloCommand",
"shortcut": { "mac": "Cmd+Shift+P", "win": "Ctrl+Shift+P" }
}
]
}
Note that the icons and uiEntryPoints values are arrays of objects, not an objects.
In my programe, I need to use the Uber api:
/v1/estimates/price
,so I test it in chrome by postman, but it responses No authentication provided.
I search the stackoverflow and find this page "Uber API /v1/estimates/time responds No authentication provided".
According to the last answer from faarwa which guide the asker get the complete info, I think I would get the complete info like the asker, but in fact,I failed,I got the same response.
This is my url:
https://api.uber.com.cn/v1/estimates/price?server_token=MyTooken&start_latitude=31.993750705445024&start_longitude=118.71421140272062&end_latitude=32.046405144489704&end_longitude=118.80070636431914
the response is:
{
"message": "No authentication provided.",
"code": "unauthorized" }
BTW: I tested the api in China.
I checked your curl command and it looks great. In fact, I get a response for the exact command with my server_token:
curl "https://api.uber.com.cn/v1/estimates/price?server_token=<SERVER_TOKEN>&start_latitude=31.993750705445024&start_longitude=118.71421140272062&end_latitude=32.046405144489704&end_longitude=118.80070636431914" | jq
My response is:
{
"prices": [
{
"localized_display_name": "People's Uber +",
"distance": 7.72,
"display_name": "People's Uber +",
"product_id": "...",
"high_estimate": 34,
"surge_multiplier": 1,
"minimum": 7,
"low_estimate": 24,
"duration": 2160,
"estimate": "CN¥24-34",
"currency_code": "CNY"
},
{
"localized_display_name": "Uber Sedan",
"distance": 7.72,
"display_name": "Uber Sedan",
"product_id": "...",
"high_estimate": 111,
"surge_multiplier": 1,
"minimum": 20,
"low_estimate": 86,
"duration": 2160,
"estimate": "CN¥86-111",
"currency_code": "CNY"
}
]
}
Here's my assumption why your query doesn't work: You are trying to use Uber in China (based on the URL and location), which requires you to use an Uber app for China as well. Could you please validate if your app shows up in the Uber Dashboard China? For more information, please check out the China Guide in our developer docs.
Just to be clear - the reason it is not working is the app you created was not created in the Uber China Developer Dashboard. If you use credentials from a newly created app it should work as expected.