Giter VIP home page Giter VIP logo

Comments (9)

eseidel avatar eseidel commented on April 28, 2024

It sounds like pub run sky:init wasn't run (which calls pub run momom:generate). ./packages/sky/sky_tool should do that for you however.

I can attempt to reproduce when I'm in the office. I suspect I failed to publish the latest Sky package correctly. @johnmccutchan

from flutter.

johnmccutchan avatar johnmccutchan commented on April 28, 2024

On a clean sky_test project:

$ ./packages/sky/sky_tool start
Dart VM version: 1.11.1 (Thu Jul 2 05:10:33 2015) on "macos_x64"
error: device not found
/Users/johnmccutchan/workspace/sky_test/main.dart does not exist.

$ touch main.dart
$ ./packages/sky/sky_tool start
Dart VM version: 1.11.1 (Thu Jul 2 05:10:33 2015) on "macos_x64"
error: device not found
error: device not found
Traceback (most recent call last):
File "./packages/sky/sky_tool", line 310, in
SkyShellRunner().main()
File "./packages/sky/sky_tool", line 303, in main
exit_code = args.func(args, pids)
File "./packages/sky/sky_tool", line 160, in run
if not self._is_package_installed(ANDROID_PACKAGE):
File "./packages/sky/sky_tool", line 127, in _is_package_installed
return subprocess.check_output(pm_path_cmd).strip() != ''
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['adb', 'shell', 'pm', 'path', 'org.domokit.sky.demo']' returned non-zero exit status 255

After attaching a device I see what's going on.

from flutter.

johnmccutchan avatar johnmccutchan commented on April 28, 2024

This should be fixed in https://codereview.chromium.org/1224623007/

from flutter.

johnmccutchan avatar johnmccutchan commented on April 28, 2024

@aghassemi Until the next revision of the Sky SDK a work around is:

  1. Depend on 'mojo_services' explicitly in your application.
  2. Run pub get
  3. Stop and start sky_tool

from flutter.

aghassemi avatar aghassemi commented on April 28, 2024

Thanks @johnmccutchan Workaround fixed the 404s.

I still get a black screen on the Hello World example but that should not be related to this issue. I get the black screen on a fresh install of the SkyDemo from the App store too. (Nexus 7, Android 5.1.1), any thoughts on where to look for the root cause?

from flutter.

eseidelGoogle avatar eseidelGoogle commented on April 28, 2024

It probably is black text on a black background. When we moved from the old world (.sky) to the new world (.dart) we changed the default background color from white to black to avoid the flash-of-white problem that the Web had for years during the load of pages.

I suspect we need to update hello_world to set a text color:

https://github.com/domokit/mojo/tree/master/sky/sdk/example/hello_world

from flutter.

iansf avatar iansf commented on April 28, 2024

I think that we changed the default text color to white last week. In the current world, though, hello_world draws its text under the status bar, which can make it hard to notice. Do you see that text when you run hello_world on your device?

from flutter.

aghassemi avatar aghassemi commented on April 28, 2024

@eseidel @iansf Thanks for the hints. It was both a black-on-black and under-the-statusbar issue. Putting it in a container with light background, I can see the text just fine now. ( I was creating my own hello world based on the code in README rather than trying the examples/hello_world so the text is still black )

from flutter.

github-actions avatar github-actions commented on April 28, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

from flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.