Generated Dart Editor web app not working - dart

I just downloaded the latest version of the dart editor and did the following:
1) Created a new web application. When I try to run, I get the following error:
> Failed to load resource: the server responded with a status of 404
> (Not Found)
> http://127.0.0.1:3030/C:/DartApps/HelloWeb/web/packages/browser/dart.js
2) After some research, I tried the following - thinking I may need some dependencies - Pub install. Now I get the following error:
> Pub install failed, [1] Resolving dependencies... Got socket error
> trying to find package "browser" at https://pub.dartlang.org. OS
> Error: Peer's Certificate issuer is not recognized., errno = -8179
Any ideas what I can do to get past this issue? I'm not getting very far.
Thanks,
Shon

Try running the pub update command first. That should update your dependencies.
http://pub.dartlang.org/doc/pub-update.html

Related

brew install specific version of a package fails

For my project, I need to install a specific version of the icu4c package. I used to follow the instructions written in this answer and it was working. However, recently, when I needed to do the same, it failed with the following error
Error: icu4c: undefined method `cellar' for #<BottleSpecification:0x00007fa0d75096a8>
After some investigations, I concluded that brew has new style of .rb files and old versions may not be compatible. To fix it, I run brew style --fix icu4c.rb which seemed to fix the style issues. However, now, I got the following error:
Error: Failed to load cask: ./icu4c.rb
Cask 'icu4c' is unreadable: wrong constant name #<Class:0x00007fa68d2d9278>
Warning: Treating ./icu4c.rb as a formula.
==> Downloading https://ghcr.io/v2/homebrew/core/icu4c/manifests/67.1
#=#=#
curl: (22) The requested URL returned error: 404
Error: Failed to download resource "icu4c_bottle_manifest"
Download failed: https://ghcr.io/v2/homebrew/core/icu4c/manifests/67.1
I saw a number of places that this might be due to curl or xcode command line tools. I updated both of them but could not proceed further. Any help would be greatly appreciated.

How to install "test apk" on actual device with appium?

How can I install an app with "-t: Allow test APKs to be installed." using appium.
i am getting the following error:
MJSONWP] Encountered internal error running command: Error: Remote
install failed: pLocation:automatic, pLang: , pRegn:
pLocation(NoSIM):english_us, pLang: en, pRegn: US
pkg: /data/local/tmp/b388778c9058a24fd29dbe6b414a02e3.apk
Failure [INSTALL_FAILED_TEST_ONLY]
There is no problem with Appium itself, but adb install command failed.
Failure [INSTALL_FAILED_TEST_ONLY] is most likely caused by android:testOnly="true" in manifest xml file of your Android application.
You need to change this parameter value to false and rebuild project to get valid apk file.

Phalcon php installation error: download failed

I'm trying to download and install phalconphp using Homebrew on my Mac (Sierra). I’m getting this error:
curl: (22) The requested URL returned error: 404 Not Found
Error: Download failed: https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
Things I did:
Reinstalled Homebrew
brew update
Tried to download portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz (result: This site can’t be reached)
Any idea what is the problem? :/

Unable to launch web project through dart editor

Just starting up on Dart and I am unable to launch web project from dart editor, command line projects work fine.
I get this exception while trying to start web project
Running pub get on C:\Users\Admin\dart\DartABWebApp ... ---
Pub get failed, [69] Resolving dependencies...
Got socket error trying to find package browser at https://pub.dartlang.org.
Anyone knows how to resolve this ?
I moved the installation directly under primary drive and that did the trick

Dart is looking in the application directory for packages (Failed to load resource)

I'm getting an error running the WebUI new project generated code:
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1:3030/Applications/dart/dart-sdk/pkg/web_ui/web_ui.dart
Failed to load a file http://127.0.0.1:3030/Applications/dart/dart-sdk/pkg/web_ui/web_ui.dart
I've run the pub install, and the packages are symlinked from the project/packages directory.
Is there a flag I should be setting?
pub.yaml:
name: test
description: A sample WebUI application
dependencies:
browser: any
js: any
web_ui: any
I had the Package-root directory in the Preferences > Editor, Directory Settings pointing to /Applications/dart/dart-sdk/pkg/. Clearing out this field corrected the problem.
This kind of error happen also when you copy/paste or move folders. To fix it you may try to open pubspec.yaml and click on "Run Pub install" (Pub Actions). This works fine for me in some cases.

Resources