I am having the same issue as described here Can't get PhantomJS to work with a simple example but the solution of having the right phantomjs version in my path doesn't seem to be fixing my problem.
I followed the tutorial here to a T:
http://net.tutsplus.com/tutorials/javascript-ajax/testing-javascript-with-phantomjs/?search_index=1
and it all works fine until I try to add require('webpage').create().
phantomjs version 1.8.1
mocha-phantomjs 2.0.0
What else could I be missing?
I had this issue too, and the problem was my version of mocha -- going back to 1.9.0 fixed it.
Use require-stub in order to get require for testing needs.
Related
This is the alert I am getting and I don't know how to fix it...
I created new bug for it on their github (providing a bit more details in there), but I am not sure if it is bug, or I am doing sth wrong.
As nobody posted the answer from that Github issue yet, here it is (when using asdf):
Setting the environment variable KERL_BUILD_DOCS=yes when installing the Erlang should fix it.
Example: KERL_BUILD_DOCS=yes asdf install erlang 25.1.2
I am trying to deploy a vue application. I have to use Firefox ESR as browser (45.4.0) but I get the following error: TypeError: Object.values is not a function. If I use a different browser it works fine.
Could anyone help me?
Thank you
Support for Object.values was introduced in Firefox 47.
Your browser is from 2015. That is hideously ancient in Internet terms. Upgrade it.
(If you really want to to get the Vue application to work, you'll need to set up a Polyfill for Object.values. There is one linked from the MDN page I linked to above. It should also be available in core-js which can be used with Babel in the transpiling step of your build process.)
I am trying to test Sorbet on a Rails project.
followed the adoptions guidelines
installed and run the gem sorbet-rails
changed to # typed: true
restarted vscode
but nothing is really happening, I think I am missing a part of the puzzle.
Has anyone found a solution to get Sorbet to work with Vs Code
Thanks
Sorbet committer here.
VSCode plugin is currently going through stabilization of features at Stripe.
It will be open-sourced when it is feature complete and stable.
You can see a preview of how it will work at the demo site.
I'm trying to install Facebook Capture the flag. I get the errors show in screenshot.
The Server is the recommended Ubuntu 14.4. Server 64bit.
Does anyone know how to fix them? Thanks!
It seems like some kind of locale issue. Maybe you can check here:
"Do you have your locale settings configured correctly? The vendor folder won't get created properly if you don't. I recommend following the instructions on this thread: https://askubuntu.com/questions/162391/how-do-i-fix-my-locale-issue"
The install instructions have been updated and is working as expected now.
When I try to use #Html.RazorJSInline() function I get
Could not load type 'System.Web.Razor.Parser.MarkupParser'
When I try to use #Html.RazorJSInclude() RazorJs is generating path to JS file but then I get the same error when trying to open the file with browser.
edit
I think it is caused by that the RazorJS was designed for Razor 1...
Does anybody find out some nice workaround?
Got here a bit late, but I hit a similar problem when trying to call RazorEngine's Razor.Parse(). I also got this message:
Could not load type 'System.Web.Razor.Parser.MarkupParser'
I was at the time using RazorEngine version 3.0.8. This issue was apparently resolved in a later version of RazorEngine (3.1.0)
So upgrading the package to this version fixed it for me.
I used the following command in the NuGet Package Manager Console to upgrade to the fixed version:
PM> Update-Package RazorEngine -Version 3.1.0
At the moment, RazorEngine is already a bunch of versions further (I think currently 3.7.2) but upgrading all the way to this version wasn't really an option for us, as this would've required quite a bit of refactoring in existing code. If this isn't an issue for you, you could always try the latest version.