Mongodb Error on running phpunit test - mongodb

I tried to run mongdodb's driver test using phpunit as stated at http://www.php.net/manual/en/mongo.testing.php but it seems to have a problem with a MongoInt32Test.php filew.
# phpunit tests/mongosuite.php
Warning: require_once(MongoInt32Test.php): failed to open stream: No such file or directory in C:\Documents and Settings\owner\Desktop\mongo-php-driver\tests\MongoSuite.php on line 4
Fatal error: require_once(): Failed opening required 'MongoInt32Test.php' (include_path='.;\programming_tools\xampp-portable\php\PEAR') in C:\Documents and Settings\owner\Desktop\mongo-php-driver\tests\MongoSuite.php on line 4
I am using a php_mongo-1.3.1-5.4-vc9.dll and running mongodb 2.0.8 in windows xp. Anybody knows how to fix this? I can't find MongoInt32Test.php anywhere.

The PHPUnit tests in the extension are legacy tests and are no longer supported. I created a ticket, PHP-695, to remind us to remove mention of them from the documentation. All extension tests are phpt files, and instructions for executing them are documented in the GitHub repository.

Related

Vscode : Command 'CMake: Configure' resulted in an error (No usable generator found)

When I am configuring the CMake for vscode,I encounter a very puzzling problem.I follow the steps of Microsoft's vscode official documentation to configure CMake for vscode,and everything is good.I can finish the 'F5' debugging operation and running the project in the vscode.
However,later while configuring vscode for cmake with "cmake.generator": "Ninja" and using the CMake:Configure command, vscode generates an error——
Unable to determine what CMake generator to use. Please install or configure a preferred generator, or update settings. json, your Kit configuration or Path variable
The following output[1] of the CMake Tools Extension indicated that it tried to find the new CMake generator but not found.
Command 'CMAKE:Configure' result in an error (No usable generator found.)
[rollbar] Unhandled exception: Unhandled Promise rejection: configure Error: No usable generator found.
I read the CMake official doucument,searched the problem in google but I can't find out why.
[1] the detailed error prompts

Swift error on Windows: invalidManifestFormat: Missing or empty JSON output from manifest compilation

I've installed Swift 5.6.1 on my Windows 10 machine, including all the necessary Visual Studio components, but I can't seem to build anything. Even just running the following set of commands in git bash results in an error:
mkdir swiftTest
cd swiftTest
swift package init --type executable
swift build
Specifically, the swift build command gives the following errors:
warning: Failed creating default cache location, Error Domain=NSCocoaErrorDomain Code=256 "(null)"
'swiftTest': error: invalidManifestFormat("Missing or empty JSON output from manifest compilation for swiftTest", diagnosticFile: nil)
The error message seems surprisingly rare -- the top google results were the source of the program that generated that error, and an unrelated error with similar wording from a ReactJS application.
Do I just have to add some flags to the swift build command, or is there something else wrong with my setup?
In my case what fixed it was invoking the command from a Visual Studio Developer Command prompt.

use vs2017 build perl

When I build perl use microsoft vc2017, I got an error :
Running pm_to_blib for cpan/Module-Load-Conditional directly
Running pm_to_blib for cpan/Module-Loaded directly
Running pm_to_blib for cpan/NEXT directly
Running pm_to_blib for dist/Net-Ping directly
Running pm_to_blib for cpan/Params-Check directly
Running pm_to_blib for cpan/Perl-OSType directly
Running pm_to_blib for cpan/PerlIO-via-QuotedPrint directly
Can't copy p to scripts/p: No such file or directory at Makefile.PL line 26.
Unsuccessful Makefile.PL(cpan/Pod-Checker): code=512 at ..\make_ext.pl line
518.
NMAKE : fatal error U1077: “..\miniperl.exe”: 返回代码 (return code)“0x2”
Stop.
What can I do?
This seems to be a bug in the Windows SDK, see
Perl ticket #133666
VS forum setargv.obj is broken in the latest windows sdk
The Perl bug reporter confirmed that the bug went away after updating the SDK. Another alternative seems to be to switch from a CFG=DebugFull to a CFG=Debug build.

Error messege when running 'jekyll build' command on cloud 9

I am a dev student and am having issues with Jekyll. Everytime I run a "jekyll build" command from my cloud 9 terminal I get the following messege:
Liquid Exception: Included file '_includes/archive_post.html' not found in source/404.markdown
jekyll 2.4.0 | Error: Included file '_includes/archive_post.html' not found
can anyone help me with this?
Found the file that is causing your issue:
https://raw.githubusercontent.com/mema82/mema82.github.io/feature/jekyll-theme/source/404.markdown
This file references archive_post.html which is non-existent. If you remove this file, or just remove the code referencing the missing file, Jekyll build should run successfully.

Build Failure Error while doing maven install in command prompt

I am getting the below error while building the code in command prompt using maven install
[ERROR] Failed to execute goal com.overstock.mojo:svn-info-plugin:1.0:svn-info (default) on project SupplierOasis-automation: error in calling
[svnversion, .]: Cannot run program "svnversion" (in directory "D:\pxworkspace\SupplierOasis-auto
mation"): CreateProcess error=2, The system cannot find the file specified -> [Help 1]
[ERROR]
Please help me out in this regard.
try on command line
svn upgrade
then again run the build. It should fix this.
I've seen similar issues on a Mac if you recently upgraded XCode and have not yet accepted the license. Open XCode and accept the license.