devkit-core's People
Forkers
chromakode vvega reflexicapps mgh jishnu7 mcanthony play2io hashcube phuong3030 synaestheory lmigueldf royten bantilan nmhung1210 abhishekrathore03devkit-core's Issues
how to fix error when build android ?
events.js:154
throw er; // Unhandled 'error' event
^
Error: spawn ndk-build ENOENT
at exports._errnoException (util.js:893:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:182:32)
at onErrorNT (internal/child_process.js:348:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
MultiplyFilter has no effect on some views
import ui.View as View;
import ui.ImageView as ImageView;
import ui.ImageScaleView as ImageScaleView;
from ui.filter import MultiplyFilter;
exports = Class( GC.Application, function()
{
this.initUI = function()
{
// This app has only been tested in the Chrome Browser on OSX.
var colorFilter = new MultiplyFilter( { r: 255, g: 255, b: 0 } );
// Regular ImageView, filter works as expected
var image = new ImageView({
superview: this,
image: "resources/images/round-rectangle.png",
x: 0,
y: 0,
width: 128,
height: 128
});
image.setFilter( colorFilter );
// ImageScaleView with no slicing applied, filter works as expected
var nonScaledImage = new ImageScaleView({
superview: this,
x: 128,
y: 0,
width: 128,
height: 128,
image: "resources/images/round-rectangle.png"
});
nonScaledImage.setFilter( colorFilter );
// ImageScaleView with slicing, filter has no effect
var scaledImage = new ImageScaleView({
superview: this,
x: 256,
y: 0,
width: 128,
height: 128,
image: "resources/images/round-rectangle.png",
scaleMethod: "9slice",
sourceSlices: {
horizontal: { left: 30, center: 2, right: 30 },
vertical: { top: 30, middle: 2, bottom: 30 }
}
});
scaledImage.setFilter( colorFilter );
// Regular View with a child inside. Filter has no effect, though I cannot tell
// from the docs whether this is intended behavior or not. Including just in case.
var container = new View({
superview: this,
x: 0,
y: 128,
width: 128,
height: 128
});
container.setFilter( colorFilter );
new ImageView({
superview: container,
image: "resources/images/round-rectangle.png",
x: 0,
y: 0,
width: 128,
height: 128
});
};
} );
`devkit init` creates a project that crashes when you try to serve it
The manifest is missing
"ios": {"appleID": ""}
which seems to be required now.
manifest.json updates don't go to iOS
You have to delete your build folder before manifest.json changes take effect.
devkit install throws error
When initiating:
devkit init helloworld
It throws this error.
[devkit] [error] Git exited unexpectedly while installing a module. The message from git was during `git status --porcelain --ignore-submodules=untracked (/Users/apple/Library/Application Support/devkit/cache/devkit-core)`: fatal: Not a git repository: /Users/apple/Library/Application Support/devkit/cache/35221697471976184170/.git/modules/modules/native-android/modules/barista
fatal: 'git status --porcelain' failed in submodule modules/native-android
npm: 2.14.4
node: v4.1.1
Mac OSX: 10.11.6
Shim for browser-desktop and browser-mobile
Hi,
I'm trying to build for target browser-desktop, but NATIVE
is undefined for these targets. What changes are required to build for browser-* targets? Any help would be useful
Is it correct to include src/clientapi/debugging/nativeShim.js
when building for browser-* targets?
creating a new app and running `devkit debug native-android` hangs
Error: Project folder '/Users/fairfieldt/dev/gameclosure/rects/build/debug/native-android' is not empty. Please consider using 'android update' instead.
ui.resource.image not loading base64 data in native android
while creating a new image(ui.resource.image) using the constructor, it is given in the documentation that the source can be either a url or a base64 encoded uri(url {string} —A URL or a base64 encoded image string.) .
This is working as expected in the browser(tested with both local file path and with base64 encoded image string). But when trying to load the image using a base64 encoded image uri(actually a screen shot of the screen captured using the line( GC.app.__root._ctx.canvas.toDataURL();) it takes the content(base64 encoded image string) as the path to load instead of considering it as data (IN ANDROID DEVICE).
I am also unable to save the screen shot(base64 data) in to local disk as a file.Is there a workaround to load actual data in to image object in NATIVE ANDROID.
devkit init with numeric app name says no app name given
eg: devkit init 000
shows the error 'No app name provided', but it should say 'App name must start with a letter and consist only of letters and numbers'
Devkit-Core fails to load in directories with spaces.
When running devkit apps
with an app registered with a directory with spaces, I receive
[apps] [warn] Module /Users/usandfriends/Documents/My Programs/DevKit/testgame/modules/devkit-core failed to load
When trying devkit serve
and running the app in-browser, I get a blank screen and
[apps] [warn] Module /Users/usandfriends/Documents/My Programs/DevKit/testgame/modules/devkit-core failed to load
..........
[build] [error] build failed
[build] [error] Error: Build target `native-ios` not found
..........
unable to take debug ios build
The project is running well in browser, but when i try take build for ios (devkit debug native-ios), im getting the following error.
[build] [error] build failed
[build] [error] Error: No ios config found for at getModuleConfig (/home/lakeba/projects/wordfinder/modules/devkit-core/modules/native-ios/build.js:26:11) at installModule (/home/lakeba/projects/wordfinder/modules/devkit-core/modules/native-ios/build.js:43:24) at /home/lakeba/projects/wordfinder/modules/devkit-core/modules/native-ios/build.js:209:7
v3.0.0-rc1 > Unable to build on Android
Thought I'd try v3.0.0-rc1:
Simulator working fine
iOS compiling OK (#29 I had to "fix" a fatal error relating to navigator.languages being undefined )
Android failing with little feedback:
devkit install is breaking
reason:
jsio is specified as both node package and git submodule.
When you run npm install
node module installs first. Then when it reaches git submodule init
stage, since there already exists a folder, script is breaking.
devkit init should fail if app already exists
devkit init
should fail and notify the user if the given app name already exists. Currently it just looks like it succeeds, doesn't apply the desired template, and follows a different flow than if the file didn't already exist.
devkit init --local-template should expand ~ to user home dir
init command should be enhanced to either support the ~ path expansion
CircleCI builds fail on install node step
Error: node 6.9.1 is already installed
To upgrade to 7.10.0, run `brew upgrade node`
brew install node returned exit code 1
Action failed: brew install node
ES6 Class / Module Support
Any chance we could get full es6 syntax support in devkit. It would be really cool to write:
class HomeView extends View {
constructor() {
//this would be your init function
}
// ...
}
chrome native simulator error
ver 4.5.x error: Unexpected error in stream write-files . how to fix ?
devkit-core preinstall.sh throws errors during devkit init
Hi,
I'm running ubuntu 16, node v6.3.0 and npm 3.10.3.
I installed devkit throw npm.
devkit-core preinstall.sh throws errors during devkit init
I tried to run it with node v4 but I get the same error.
`➜ /tmp devkit init hello
(node:11982) DeprecationWarning: 'GLOBAL' is deprecated, use 'global'
[apps] Creating app using default template
Creating app using default application template
[install] Installing devkit-core...
Adding devkit-core
[module] set version [email protected]
[install] Copying /tmp/hello/modules
[cache] installing devkit-core at /tmp/hello/modules/devkit-core/
[module] running install scripts...
[email protected] preinstall /tmp/hello/modules/devkit-core
sh scripts/preinstall.sh
Synchronizing submodule url for 'modules/native-android'
Synchronizing submodule url for 'modules/native-ios'
Synchronizing submodule url for 'modules/squill'
Synchronizing submodule url for 'modules/timestep'
[email protected] preinstall /tmp/hello/modules/devkit-core/modules/native-android
sh ./preinstall.sh
Synchronizing submodule url for 'barista'
fatal: Not a git repository: /home/amir/.config/devkit/cache/26620230863654590862/.git/modules/modules/native-android/modules/barista
fatal: Not a git repository: /home/amir/.config/devkit/cache/26620230863654590862/.git/modules/modules/native-android/modules/barista
fatal: Not a git repository: /home/amir/.config/devkit/cache/26620230863654590862/.git/modules/modules/native-android/modules/barista
Synchronizing submodule url for 'native-core'
fatal: Not a git repository: /home/amir/.config/devkit/cache/26620230863654590862/.git/modules/modules/native-android/modules/native-core
fatal: Not a git repository: /home/amir/.config/devkit/cache/26620230863654590862/.git/modules/modules/native-android/modules/native-core
fatal: Not a git repository: /home/amir/.config/devkit/cache/26620230863654590862/.git/modules/modules/native-android/modules/native-core
fatal: Not a git repository: /home/amir/.config/devkit/cache/26620230863654590862/.git/modules/modules/native-android/modules/barista
Unable to find current revision in submodule path 'barista'
npm ERR! Linux 4.4.0-28-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v6.3.0
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] preinstall: sh ./preinstall.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script 'sh ./preinstall.sh'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the native-android package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! sh ./preinstall.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs native-android
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls native-android
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /tmp/hello/modules/devkit-core/modules/native-android/npm-debug.log
Stopping at 'modules/native-android'; script returned non-zero status.
npm WARN [email protected] No license field.
npm ERR! Linux 4.4.0-28-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v6.3.0
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] preinstall: sh scripts/preinstall.sh
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script 'sh scripts/preinstall.sh'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the devkit-core package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! sh scripts/preinstall.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs devkit-core
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls devkit-core
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /tmp/hello/modules/devkit-core/npm-debug.log
[devkit] [error] npm install for module devkit-core failed (exit code 1).
`
EDIT:
If after the init fails I run sudo sh scripts/preinstall.sh
then the installation passes and everything seems to be working
Thanks,
Amir.
v3.0.0-rc1 > navigator.languages is undefined
Upgrading from v2 to v3 and I'm getting a "navigator.languages is undefined" error.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.