How do i install beautify in brackets editor - adobe-brackets

I am trying to install beautify via the extension manager but I'm getting an error:
" installation failed, unknown internal error"
i can see clearly that brackets is connected to internet because when i try to search for beautify extension i see the results.

I don't think this is a problems with the beautify extension but the brackets installation itself. In particular, the local nodejs installation. See https://github.com/adobe/brackets/issues/12538. This seems to be preventing ANY extension from being installed.
If you navigate to the brackets directory you should see the local brackets node installation. In the console here type node -v. This should give you the node version, but if it gives you an error message then the problem is with that installation of node.
Are you on windows? I solved this problem by copying from my own installation of node the node.exe from C:\Program Files\nodejs to C:\Program Files\Brackets. Of course, I don't know if this could have any unforeseen side effects - but it seems to work.

Related

How to verify if atom package launched properly in atom editor

I installed linter-php and also tried to configure it in config.cson as following
"linter-php":
executablePath: "C:\xampp\php"
but I don't see any indication that something that is related to linter affects atom display. How can I verify that this package (or any package in general) is working properly when atom is running?
To answer your question: you can find all active packages by running atom.packages.activePackages in Atom's developer console.
However, your problem could be caused by providing an invalid path. Backslashes need to be escaped in CSON, so your config should look like this:
"linter-php":
executablePath: "C:\\xampp\\php"

Jupyter Notebook Extensions Fail to Load

I am running Ubuntu 14.04 in virtual box with a recent anaconda install. I installed jupyter notebooks using conda. I have followed all of the documentation that I can find online to install notebook extensions but they fail to load with the error messages listed below. The first error is from the jupyter notebook app running in a terminal and the second error is in the chrome java console. Notice that I cannot post this question with this many hyperlinks so I remove the "p" from "http" in my error messages.
[W 07:02:06.451 NotebookApp] 404 GET
/nbextensions/python-markdown.js?v=20150904070147 (127.0.0.1) 8.47ms
referer=htt://localhost:8888/notebooks/Untitled.ipynb
htt://localhost:8888/nbextensions/python-markdown.js?v=20150904070147
Failed to load resource: the server responded with a status of 404
(Not Found)
To detail my installation method: I cloned the git repository [IPython-notebook-extensions][1] and used the command jupyter-nbextension install python-markdown inside the IPython-notebook-extensions/usability/ folder. I then enabled the extension with jupyter-nbextension enable python-markdown. I ran these commands as superuser as well.
After this failed I installed this extension inside python (from the usability/ directory of the repository) using:
import notebook
notebook.install_nbextension('python-markdown',user=True)
E=notebook.nbextensions.EnableNBExtensionApp()
E.enable_nbextension('python-markdown')
I also tried this as the superuser without the parameter user=True.
I have confirmed that the files copied to both /usr/local/share/jupyter/nbextensions/python-markdown and ~/.local/share/jupyter/nbextensions/python-markdown. The extension is enabled in the ~/.jupyter/nbconfig/notebook.json file. Finally, I also deleted the chromium and mozilla cache (by deleting the folders in the ~/.cache directory) multiple times while trying this.
Solved here: https://github.com/ipython-contrib/IPython-notebook-extensions/issues/282. The ~/.jupyter/nbconfig/notebook.json file must be edited to use python-markdown/main instead of python-markdown.
More generally this kind of error can also happen after you've upgraded Jupyter/Python/etc and some of the extensions are not supported by your updates. You can then just disable them from the Nbextensions configuration tab - you may find that they're the extensions that are shown as incompatible - which can be disabled by ticking the 'disable configuration for nbextensions without explicit compatibility' checkbox.

Architect / StatET: Launching R Console was cancelled because R engine failed

I recently upgraded to Architect version 0.9.7 on my Win 7 machine. However, after starting Architect, the RJ console wouldn't launch and I got the error message:
‘Launching the R Console was cancelled, because It seems starting the R engine failed.”
Please make sure that R package 'rj' (2.0 or compatible) is installed and
that the R library paths are set correctly for the R environment
configuration 'Embedded R Server'.
I installed the packages ‘rj’ and ‘rj.gd’ through the RTerm run console (which does happen to work) within Architect using the command suggested on www.walware.de:
install.packages(c("rj", "rj.gd"), repos="http://download.walware.de/rj-2.0")
Then, I restarted windows, and restarted Architect. Same error message. I zoomed in on the details of the error message and noticed the following line:
SEVERE: Path to rj package not found. Use R_LIBS or java property
'de.walware.rj.rpkg.path' to specify the location.
So I opened an RTerm run console to check whether any of my .libPaths() locations contains the directories ‘rj’ or ‘rj.gd’. Oddly enough, they do. My first .libPaths path contains both packages. So that doesn’t seem to be the reason.
How could this be fixed?
I received prompt and helpful feedback from Open Analytics (thanks!), who informed me that the problem is due to changes in Java 8. With Java 7, Architect works fine. The next release of Architect will incorporate the changes in Java 8.
In order to get it work with Java 7, enforce the use of a specific Java Runtime, by using the -vm argument in the architect.ini file as follows:
-vm
C:\Program Files\Java\jre7\bin\javaw.exe
(mind the line break, which is required)
This is particularly useful if you have several Java versions on your system where the default Java is not suitable for use with Architect. The architect.ini file is found directly at the top level of the installation folder of Architect. You can find out where this is by looking at the Properties of the Architect shortcut on your desktop.
N.B. the -vm argument should be put before the -vmargs argument otherwise it is simply ignored!
N.B. examples of -vm specification on GNU/Linux and Mac OS X:
http://wiki.eclipse.org/Eclipse.ini#-vm_value:_Linux_Example
http://wiki.eclipse.org/Eclipse.ini#-vm_value:_Mac_OS_X_Example

PHPStorm 8 + PHPUnit 4.2.6 Error

I can't make PHPUnit 4.2.6 to work with PHPStorm 8.
PHPUnit is loaded as phar inside PHPStorm 8 settings.
Whenever i try to run unit test in PHPStorm i get this error:
Parse error: syntax error, unexpected '}' in /private/var/folders/qh/xjz1kr297v34pl6zy70_2rl00000gn/T/ide-phpunit.php(171) : eval()'d code on line 1
Call Stack:
0.0006 344584 1. {main}() /private/var/folders/qh/xjz1kr297v34pl6zy70_2rl00000gn/T/ide-phpunit.php:0
0.0007 344880 2. IDE_PHPUnit_Loader::init() /private/var/folders/qh/xjz1kr297v34pl6zy70_2rl00000gn/T/ide-phpunit.php:194
Warning: require_once(PHPUnit/Runner/Version.php): failed to open stream: No such file or directory in /private/var/folders/qh/xjz1kr297v34pl6zy70_2rl00000gn/T/ide-phpunit.php on line 49
When i looked into "ide-phpunit.php", i found that it tries to eval invalid code, because of invalid "substr" function usage.
So my question is, if someone managed to make PHPUnit 4.2.6 work with PHPStorm 8?
Here is how to "unhack" the IDE to run with phpnunit.phar (4x+) nicely on windows and linux!
Download phpunit.phar under php, set your phar location from the IDE -> settings -> phpunit and phar location. THEN CLOSE IDE
Find where your plugin files are, for php on windows this would be :\Program Files (x86)\JetBrains\PhpStorm 8.0.3\plugins\php\lib.
Open php.jar with winrar and open scripts/phpunit.php.
Comment out all PHPUnit/… require statements, so autoloader can do its job instead of using hardcoded values.
Go to public static function init() method.
Find the if section with a comment at the end says “awful hack”, screenshot.
Remove all the amateur hacky stuff and replace it with this, screenshot.
Save the file, Winrar will prompt you to save the archive, SAVE that one too.
Run IDE And Run your tests, coverage. Enjoy!
Hope this helps some of you out there. I will post the information to their forums as well.
I got the exact same error, and fixed it like this:
Installed phpunit using: composer global require phpunit/phpunit
Goto phpstorm settings: PHPUnit
Select "Use custom autoloader"
On Windows: C:\Users\[username]\AppData\Roaming\Composer\vendor\autoload.php
On Linux: /home/[username]/.composer/vendor/autoload.php
Or point it to the autoloader of your composer project
PhpStorm generates special temporary "wrapping" to execute the tests and get the output in the form it understands better. In your case it's /private/var/folders/qh/xjz1kr297v34pl6zy70_2rl00000gn/T/ide-phpunit.php. Since the error says there is a syntax error, the first thing you should try is deleting it, on the next run the IDE will create the new one, hopefully without that problem.
If that doesn't help, as suggested in the comments, try downgrading the PHPUnit a few versions back, see if that helps. Alternatively try reinstalling the PhpStorm. If that doesn't work, you have better chances of finding an answer by reporting an issue to the dev team.

collective.sendaspdf "Running wkhtmltopdf failed"

I am working on installing collective.sendaspdf on a Plone 4.2.4 server.
This add-on provides two extra document action buttons, one "Send as PDF" and the other "View as PDF"
After following instructions on the packages pypi page. I get the following traceback when trying to click one of the aformentioned document action links:
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute
'_Thread__block'",) in <module 'threading' from '/home/dan/Plone/Python-2.7/lib/python2.7
/threading.pyc'> ignored
2013-02-13 14:04:50 ERROR collective.sendaspdf Running wkhtmltopdf failed. Please check that you
use a version compatible with your OS and the version is 0.9.
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute
'_Thread__block'",) in <module 'threading' from '/home/dan/Plone/Python-2.7/lib/python2.7
/threading.pyc'> ignored
2013-02-13 14:05:55 ERROR collective.sendaspdf Running wkhtmltopdf failed. Please check that you
use a version compatible with your OS and the version is 0.9.
I have tried pinning wkhtmltopdf to the version it requires, under the [versions] heading but that has done nothing for me. I have tried just loading the collective.sendaspdf alone under the eggs section but again, that doesn't work either. I have tried manually downloading them, putting them into my src folder and configuring the develop section accordingly, but that again gives me the same error. I've even tried easy_install but I get the same problems.
The instructions on the pypi page can't be followed to the letter as I believe the url under the [wkhtmltopdf] heading leads to a corrupted archive (i can't use tar, gzip or bunzip2 to extract the files) however he does have zip files contaning the source I have tried manually downloading and using easy_install) but to no avail.
I've been researching the
ERROR collective.sendaspdf Running wkhtmltopdf failed. Please check that you
use a version compatible with your OS and the version is 0.9.
Error message that I'm getting but I don't seem to see any Plone users having difficulty, it seems most people are using this with Rails.
Does anyone know how I can:
Get this to work
Find an alternative way of converting HTML from Plone to a PDF.
I have tried Form2PDF, zopyx.smartpringng, and now collective.sendaspdf (this one I have gotten the furthest with) - except it is falling at the last hurdle
Thanks.
I fear you've failed at the first hurdle: installing wkhtmltopdf. Either visit https://code.google.com/p/wkhtmltopdf/ and follow their instructions for installation, or look there to find the URL for a version compatible with your system

Resources