Comments (8)
@rpl ping
from ember-inspector.
@teddyzeenny @zoghal I'm on it, it's definitely an issue in the grunt-mozilla-addon-sdk plugin and I've already verified that it's not windows specific.
I'm fixing it in the grunt-mozilla-addon-sdk github repo, and I've pushed a fix which works on Linux (and than it should work correctly on OSX too), but it needs to be tested on windows.
@zoghal could you try to use this git branch as a temporary npm dependency, so we can check if the fix is working correctly on Windows?
in the ember-extension package.json just change this single line:
diff --git a/package.json b/package.json
index 976fde8..3648702 100644
--- a/package.json
+++ b/package.json
@@ -31,7 +31,7 @@
"glob": "~3.2.1",
"grunt-contrib-compress": "~0.5.2",
"grunt-ember-s3": "~1.0.4",
- "grunt-mozilla-addon-sdk": "~0.3.1",
+ "grunt-mozilla-addon-sdk": "https://github.com/rpl/grunt-mozilla-addon-sdk/tarball/fix/dirnames_with_spaces",
"grunt-wrap": "~0.3.0"
}
}
and then run npm install
and grunt build build_xpi
from ember-inspector.
@rpl i tested again,but has error exist
i debug and trace this problam,this is a bug in require('child_process').spawn()
https://github.com/joyent/node/issues/2318
" // On Windows, child_process.spawn will only file .exe files in the PATH,
// not other executable types (grunt issue #155).
"
is comment to :
https://github.com/gruntjs/grunt/blob/master/lib/grunt/util.js#L155
this is solution in bower
https://github.com/bower/bower/commit/c06b9d696e6778675f2fde86445184124802652f
from ember-inspector.
@zoghal I don't think it's the same problem, because we use "child.spawn" on the full path to the helper batch file from the grunt-mozilla-addon-sdk npm module: https://github.com/rpl/grunt-mozilla-addon-sdk/blob/master/tasks/mozilla_addon_sdk.js#L68
Probably windows doesn't like the same quoting trick that I've used to solve the same issue on the *nix platforms.
I need to get my hands on a windows box to be able to try a different trick to quote the dirname in the batch helper script: https://github.com/rpl/grunt-mozilla-addon-sdk/blob/master/scripts/cfx.bat
from ember-inspector.
@zoghal I've worked on this issues and I managed to get this to work correctly on a WindowsXP box:
- WindowsXP Professional SP2
- node 0.10.22
- npm 1.3.14
- grunt 0.1.11
- grunt-mozilla-addon-sdk 0.3.2dev2
The issue is related to the presence of white spaces in the absolute path of the helper script (xpi_script from here: https://github.com/rpl/grunt-mozilla-addon-sdk/blob/fix/dirnames_with_spaces/tasks/mozilla_addon_sdk.js#L68),
and nodejs child_process.spawn, that it's used by grunt.util.spawn to launch external commands and doesn't handle this use case correctly.
The new workaround I've pushed on the grunt-mozilla-addon-sdk "fix/dirnames_with_spaces" branch is to use the relative path which does not contains any space chars ("./node_modules/grunt-mozilla-addon-sdk/scripts/cfx.bat")
On the contrary, space characters in the rest of the command arguments are correctly quoted in the helper script and they don't create any issues.
If you can try to update the grunt-mozilla-addon-sdk package to the new experimental version (0.3.2dev2) and retry, I will wait your confirmation before publishing the fix as grunt-mozilla-addon-sdk 0.3.2 on npm and create a pull request on ember-extension to update the dependency.
from ember-inspector.
@rpl I'm not very familiar with grunt. Please advise what to do and what you want to apply the changes.
Or
Create a New Branch in your repository so I'm testing it.
from ember-inspector.
@rpl i now retry and repalce this line
var xpi_script = path.resolve(__dirname, '..', 'scripts', scriptFilename);
with :
var xpi_script = path.relative(process.cwd(),
path.resolve(__dirname, '..', 'scripts', scriptFilename));
it is ok, build xpi without errors. thanks
from ember-inspector.
@zoghal awesome! thanks for the confirmation, I'm going to prepare a pullrequest asap
from ember-inspector.
Related Issues (20)
- Deprecation triggered in 3.28 LTS app
- Ember Debug - Route Tree | Route tree test occasionally fails HOT 2
- Clear button on Deprecations Toolbar does not clear deprecations HOT 4
- object inspector closes when i click anything on the website HOT 8
- Ember inspector not working unless I silent a deprecation HOT 5
- Ember Inspector `4.6.1` fails to load in latest Firefox (Release & Developer Editions) HOT 3
- Ember application not detected! HOT 9
- Ember inspector not working in Chrome. HOT 18
- embr inspector is not working in chrome. ember application not found is cuming. HOT 1
- Production embroider build – empty Components tab HOT 18
- Inspect helpers / resources? HOT 1
- Data tab does not open on click HOT 9
- v4.8.0 on Chrome raises errors from Testem during Integration Tests
- ember inspector stops responding, error: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node. HOT 2
- Including the `ember` npm package in app's dependencies breaks Ember Inspector HOT 2
- Ember Inspector release `4.9.0` failed to publish to Firefox HOT 1
- Ember inspector not loading: TypeError: window.requireModule.has is not a function HOT 3
- Property Inspector attempts nested access of a property whose name includes a period
- in-page-script.js inserted into Wordpress editor HOT 2
- Scroll to matches in component tree instead of filtering HOT 1
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.
from ember-inspector.