I have a node.js project that runs fine on Pc and Linux however when running on a Mac (Mountain Lion) the jQuery module doesn't work. any assignment to a property of the window object is ignored.
That is
if(jQuery){
window.jQuery = jQuery;
if(!window.jQuery){
throw "assignment didn't have any effect";
}
}
will throw an exception. Any ideas to solve it will be appreciated
THe prototype of the object is undefined I would expect those two things to be related. The window object is created using jsdom.createWindow() (which in turn returns doc.parentWindow)
it would seem that it's caused by the line below
vm.runInContext('this', context);
which returns the actual object (with no prototype).
THe problem is a side effect of not being able to compile contextify while installing the jsdom module. This can be fixed by installing make. The conde in the question that fails is error handling that tries to handle the installation problem of contextify.
installing make on a make can be done be installing development tools (Commandline tools for XCode for OSX ). After installing make then reinstall contextify
Related
I'm trying to install the Veracity Learning LRS locally (on Windows). I followed this guide exactly, and MongoDB is installed and running with no apparent problems. However, I get a strange TypeError when I try to save the configuration:
Console: at processTicksAndRejections (internal/process/task_queues.js Some OSs will require you to run with administrator rights to bind to your selected port.
Console: at processTicksAndRejections (internal/process/task_queues.js Cannot convert undefined or null to object
TypeError: Cannot convert undefined or null to object
at Function.assign (<anonymous>)
at v (C:\snapshot\lrs2\build\lite\manager.js:2185:795751)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async C:\snapshot\lrs2\build\lite\manager.js:2185:796007
The given file locations don't exist on my machine, so I don't know where to look to debug this. I've also tried to run the command prompt as administrator, which removes the first message but not the second. Has anyone encountered this issue before? I'm also not committed to the Veracity LRS, so I'm also open to suggestions for a simpler installation; this was only supposed to be for testing.
I'm from Veracity, and this is an issue that cropped up on some configurations a while ago, but we've not seen it in a long time, so either the bug has reappeared or you just have an older version.
If you're not using 1.10.x, make sure to try the latest version.
I should mention that I originally posted this as an issue on Neovim's tracker, but it hasn't been getting a ton of traction there lately and I'm beginning to suspect that it's more an issue with my setup rather than Neovim itself.
Essentially, I had stopped building neovim nightlies for a few months. Having heard that it's getting integrated terminal support I decided to rebuild using the latest source, only to get a persistent, odd error. No matter what my build settings are, it always boils down to make hitting an error when it has to compile a file called loop.so. I hadn't noticed this issue with any other software I try to build, but I suspect it could be an issue with my environment.
Does anyone here know what this file's role is, and why the compilation could be failing at that point?
You might need to install the full Xcode app and not just the command line. This fixed the issue for me.
The issue turned out to be a bad typedef in a libuv header, object.h.
I just started Xcode 6.3 with a project that I have been working on for a while. I did some changes and than ran the previously working program. Result: a build failure with the message
Compile ZXParsedResult.m...
So the ZXing library can suddenly not be compiled any more. I guess this is another XCode bug (the program will not run even after a reset of all changes to the previously working code base). Is it possible to disable this error message?
I already triggered a successful clean on the project.
Looks like problem has been solved in latest version of library, see discussion on this issue https://github.com/TheLevelUp/ZXingObjC/issues/208
If you are not ready to upgrade to latest version, I'd prefer this fix from discussion
(id)parsedResultWithType:(ZXParsedResultType)type {
return [(ZXParsedResult *)[self alloc] initWithType:type];
}
More on such kind of errors
new in Xcode 6.3/iOS 8.3: using self alloc for convenience constructor causes build error
I'm trying to run some basic Julia scripts (loading data and manipulating it) from the command line (using a MAC terminal) that I had previously written and successfully compiled with Julia Studio. I KNOW they work (I have re-run them countless times in Julia Studio) and see the desired output sans error messages, but for some reason I now keep getting strange errors some of which seem to relate to packages such as DataFrames (but not always of that variety) when I run the aforementioned scripts from the command line?
ERROR: no method readtable(Array{Any,1},)
ERROR: no method date_parser(ASCIIString,)
If anyone has encountered a similar problem then I would love to hear about the fix.
Try updating the Julia version. This problem was there in previous versions. Also try iJulia, you will find it better than terminal.
I'm developing a plugin for Eclipse Juno under Mountain Lion.
I can test my plugin without problem by doing run as > Eclipse application.
However when I try to export the plugin by doing the following action it fails.
Open plugin.xml
Go to the tab Overview
Select Export Wizard
It returns the following error:
/Users/luca/Documents/University/PhD/FODA/.metadata/.plugins/org.eclipse.pde.core/temp/org.eclipse.pde.container.feature/compile.org.eclipse.pde.container.feature.xml:4: The following error occurred while executing this line:
/Users/luca/Documents/University/PhD/FODA/it.unibg.robotics.featuremodels.model/build.xml:31: /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/Classes does not exist.
The following error occurred while executing this line:
/Users/luca/Documents/University/PhD/FODA/it.unibg.robotics.featuremodels.model/build.xml:31: /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/Classes does not exist.
What's the problem?
Just ran into this problem myself today. As far as I understood, it comes from the fact that recently Apple stopped maintaining their version of Java in favor of an official version for the MacOS X from Oracle. The Oracle version, however, doesn't have the same directory structure as before, and the build script generated by Eclipse assumes the old structure.
You can see many bug reports related to this. E.g.,
https://bugs.eclipse.org/bugs/show_bug.cgi?id=371215
https://bugs.eclipse.org/bugs/show_bug.cgi?id=378596
https://bugs.eclipse.org/bugs/show_bug.cgi?id=385077
I heard that switching to using Java 6 would solve the issue, as MacOS X still has the Apple Java 6 installation with the old directory structure. I didn't want to go back to Java 6, so I didn't try this.
Instead, I tried creating the directory that is reported missing (i.e., /Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/Classes), with nothing in it. Oddly, it seems to have worked.
Let me know if it works out for you as well... Future updates of Eclipse might also fix this (I updated mine today, but the problem was still there).
This is fixed in Eclipse 3.8.2 and 4.3.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=392434