Ember CLI works great most of the time on my laptop. However, once in a while (very very occasionally) when I ctrl + c the ember server process and restart it, it throws the following error and refuses to start again until I do a complete system restart (I am on a Mac):
MacBook-Pro:client-web User$ ember server
version: 1.13.6
Could not find watchman, falling back to NodeWatcher for file system events.
Visit http://www.ember-cli.com/user-guide/#watchman for more info.
2015-09-04 17:46 ember[1102] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2015-09-04 17:46 ember[1102] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
Livereload server on http://localhost:49152
Serving on http://localhost:4200/
2015-09-04 17:46 ember[1102] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
events.js:85
throw er; // Unhandled 'error' event
^
Error: watch EMFILE
at exports._errnoException (util.js:746:11)
at FSEvent.FSWatcher._handle.onchange (fs.js:1157:26)
Why does this happen? I want to avoid doing system restarts.
Adding this as an answer because the Ember CLI docs no longer mention it, and it took me a while to track down:
Frequently, this problem is caused by Sublime Text watching the same files as the Ember server. If you're using Sublime and encountering this error, try closing Sublime and running the server again. To keep it from recurring, you can tell Sublime Text to ignore the tmp directory, by adding "tmp/*" to the"folder_exclude_patterns" in your Sublime user settings.
Related
getting error : WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally. (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed
getting above error while running a robot script:
It is a simple code to open you tube in chrome browser.
it looks like this:
*** Settings ***
Library SeleniumLibrary
*** Variables ***
${Browser} Chrome
${URL} https://www.youtube.com/
*** Test Cases ***
TC1
Open Browser ${URL} ${Browser}
Input Text name:search_query ted talk
Click Button id:search-icon-legacy
It is on ubuntu
using python2.7
robotframework==3.0.2
robotframework-mqttlibrary==0.7.0
robotframework-selenium2library==1.8.0
robotframework-seleniumlibrary==4.3.0
ChromeDriver 80.0.3987.106
I tried updating chrome and chrome driver also.
I don't know what am i doing wrong,
please help.
You are trying with robotframework-seleniumlibrary==4.3.0 & robotframework==3.0.2
Update the robotframework-seleniumlibrary 4.3.0 to 3.0.1
pip install robotframework-seleniumlibrary==3.0.1
Add capabilities
${chrome_options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
Call Method ${chrome_options} add_experimental_option w3c ${False}
Call Method ${chrome_options} add_argument no-sandbox
Call Method ${chrome_options} add_argument disable-setuid-sandbox
Call Method ${chrome_options} add_argument disable-dev-shm-usage
Call Method ${chrome_options} add_argument disable-single-click-autofill
Wait Until Keyword Succeeds 2x 1s
... Create WebDriver Chrome alias=${Browser} chrome_options=${chrome_options}
Go To ${URL}
Input Text name:search_query ted talk
Click Button id:search-icon-legacy
I am using Ionic-2 framework. When I install any native plugin in my application it throws the following error in command line.
Error: Unexpected token '}' in JSON at position 1923
I am not getting what is causing this error, now I'm unable to install any plugin.
I had a similar problem:
Error: Unexpected token / in JSON at position 1057
when I issued the command:
ionic plugin add phonegap-plugin-barcodescanner
The reason was I made a mistake by trying to comment a line of "plugins/fetch.json" by "//". Cerntainly, a json file couldn't be commented this way. However, Ionic 2 didn't tell you which file had the problem.
So, please check the json file Ionic might touch during the process, e.g. package.json & plugins/fetch.json
Make sure all the {} pair are matched.
I run into this problem when trying to execute cordova build --release android
Execute cordova plugin rm cordova-plugin-console to solve it.
I installed sbt in my windows 7 machine from http://www.scala-sbt.org/0.13/docs/Installing-sbt-on-Windows.html using msi installer
After installing if i go to Command prompt and while checking the installed sbt version i get the below error
C:\>sbt --version
Getting org.fusesource.jansi jansi 1.11 ...
:: problems summary ::
:::: WARNINGS
module not found: org.fusesource.jansi#jansi;1.11
==== local: tried
C:\Users\rajasure\.ivy2\local\org.fusesource.jansi\jansi\1.11\ivys\ivy
.xml
-- artifact org.fusesource.jansi#jansi;1.11!jansi.jar:
C:\Users\rajasure\.ivy2\local\org.fusesource.jansi\jansi\1.11\jars\jan
si.jar
==== Maven Central: tried
https://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1
.11.pom
-- artifact org.fusesource.jansi#jansi;1.11!jansi.jar:
https://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1
.11.jar
==== typesafe-ivy-releases: tried
https://repo.typesafe.com/typesafe/ivy-releases/org.fusesource.jansi/j
ansi/1.11/ivys/ivy.xml
==== sbt-ivy-snapshots: tried
https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.fusesource.jansi
/jansi/1.11/ivys/ivy.xml
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.fusesource.jansi#jansi;1.11: not found
::::::::::::::::::::::::::::::::::::::::::::::
:::: ERRORS
Server access Error: Connection timed out: connect url=https://repo1.mav
en.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1.11.pom
Server access Error: Connection timed out: connect url=https://repo1.mav
en.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar
Server access Error: Connection timed out: connect url=https://repo.type
safe.com/typesafe/ivy-releases/org.fusesource.jansi/jansi/1.11/ivys/ivy.xml
Server access Error: Connection timed out: connect url=https://repo.scal
a-sbt.org/scalasbt/ivy- snapshots/org.fusesource.jansi/jansi/1.11/ivys/ivy.xml
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.fusesource.jansi#jansi;1.11: not found
Error during sbt execution: Error retrieving required libraries
(see C:\Users\suren\.sbt\boot\update.log for complete log)
Error: Could not retrieve jansi 1.11
Could somebody help me on fixing this error? I really need some help on this.
I had the same problem! this solved!
" Looks like the dependency manager has a problem with the non-ASCII characters in your user name.
Try adding -Dsbt.global.base=C:/some/other/path to the command line of the SBT process. This will relocate files from the default location of %USERHOME%/.sbt. "
I started my first project with ember cli and I noticed that the live reload isn't working. When I start the development server, I get multiple error messages (see below). Changes to the code base are only available after a restart of the server.
$ ember server
version: 0.1.2
Livereload server on port 35729
Serving on http://0.0.0.0:4200/
2014-12-03 17:51 ember[16491] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-12-03 17:51 ember[16491] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
...
2014-12-03 17:51 ember[16491] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
2014-12-03 17:51 ember[16491] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-21)
Build successful - 1180ms.
Slowest Trees | Total
-------------------------------+----------------
Concat | 368ms
ES6Concatenator | 150ms
ES3SafeFilter | 149ms
JSHint - App | 104ms
JSHint - Tests | 80ms
At this stage I have the following packages/addons installed:
DEBUG: -------------------------------
DEBUG: Ember : 1.7.0
DEBUG: Ember Data : 1.0.0-beta.10
DEBUG: EmberFire : 1.3.1
DEBUG: Handlebars : 1.3.0
DEBUG: jQuery : 1.11.1
DEBUG: -------------------------------
Any idea what could cause this issue? It is quite annoying to restart the server for every change.
Thank you for your suggestions.
The error is essentially caused by FSEvents watching too many files. If you're using Sublime Text, try excluding node_modules/, tmp/, and dist/ from your project (add them to the folder_exclude_patterns array in your Sublime user preferences).
If you're not using Sublime, or if doing so doesn't fix the issue, try upgrading your version of Node and version of ember-cli to the latest versions, as well as installing watchman using brew install watchman if you have Homebrew installed/are on OS X (as the latest versions of ember-cli no longer rely on FSEvents.
Source: https://github.com/ember-cli/ember-cli/issues/1260#issuecomment-67549158
Add this parameters(liveReload and Watcher) to the file /.ember-cli and this will end with something like this:
{
/**
Ember CLI sends analytics information by default. The data is ...
*/
"disableAnalytics": false,
"liveReload": true,
"watcher": "polling"
}
/* Pooling, this is where the magic come, allow to edit file in the host and outside(EX: Virtual machines and servers relate) */
I am about to begin a project with Shiny (by RStudio). When I try to install the shiny package using the console install.packages("shiny"), I get the following error message:
trying URL 'http://cran.rstudio.com/bin/macosx/mavericks/contrib/3.1/shiny_0.10.1.tgz'
Warning in install.packages :
cannot open: HTTP status was '404 Not Found'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL'http://cran.rstudio.com/bin/macosx/mavericks/contrib/3.1/shiny_0.10.1.tgz'
Warning in install.packages :
download of package ‘shiny’ failed
I have tried to install it from the drop down menu in RStudio but have encountered the same problem. Any thoughts as to what is going on?
I am working on Mac, with the latest version of Mavericks (R version is 3.1.1).
Thanks,
Brian
Try a different CRAN mirror. The error indicates that the file was not found on the CRAN server
chooseCRANmirror()
shiny has just been updated 2014-10-01 so the changes may not have propagated down to all mirrors yet.