I installed phpunit for my symfony2 project following this:
How to use phpunit installed from composer?
But I get the following error now:
Warning: include(C:\Program Files (x86)\Zend\Apache2\Program Files (x86)\Zend\Apache2\htdocs\project1\vendor\phpunit\phpunit\PHPUnit\TextUI\Command.php): failed to open stream: No such file or directory in C:\Program Files (x86)\Zend\Apache2\htdocs\project1\vendor\composer\ClassLoader.php on line 150
The file does exist and is in the autoload_classmap file, so I'm unsure why I receive this error when I run vendor/bin/phpunit -c app
You only should fix your basePath issue:
instead of this:
C:\Program Files (x86)\Zend\Apache2\Program Files (x86)\Zend\Apache2\htdocs\project1\vendor\phpunit\phpunit\PHPUnit\TextUI\Command.php
it should be this :
C:\Program Files (x86)\Zend\Apache2\htdocs\project1\vendor\phpunit\phpunit\PHPUnit\TextUI\Command.php
You should go and read in line 150 of composer\ClassLoader.php and if possible add some echo or var_dump to debug and see the content of the variables used there that point to a wrong path.
Program Files (x86)\Zend\Apache2\
show up twice in the include error but not the open stream error.
open stream: No such file or directory in C:\Program Files (x86)\Zend\Apache2\htdocs\project1\vendor\composer\ClassLoader.php on line 150
Related
I get this error when I submit App to AppStore:
I searched the net and found this article: https://jmillerdev.com/symbolicating-ios-crash-files-xamarin-ios/
I tried to follow the step-by-step instructions as follows:
I downloaded the crashlog.txt files and changed the extension to .crash, moved it to the folder CrashTop
I found the .app file by changing MyApp.ipa to MyApp.zip and extracting it. It's in the folder PayLoad. I copied the file MyApp.iOS to the folder CrashTop
In Xcode/Window/Organizer. Archives Show in Finder opens showing the package contents. I found the dSYMs folder and copied the .dSYM file to the folder CrashTop
Next i Open Terminal and run this command:
alias symbolicate="/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash -v"
and
export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer"
Run Symbolicate
Open Terminal again and cd to the directory folder CrashTop and run the command
symbolicate -o "symbolicatedCrash.txt" "crashlog-DCE8F822-47EB-42F9-A737-5D137FD827FE.crash" "MyApp.iOS.app"
But what I get back is: command not found: symbolicate
It's been 10 days. I've tried searching all over the internet. But it doesn't solve the problem. I also used Microsoft.AppCenter.Crashes to catch the error. However, it shows no errors. On xcode (13.3.1) simulator it works fine.
Please solution to solve this problem.
Ask for any help from everyone.
Update
Copy all files to CrashTop folder.
Run command:
export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer"
and
./symbolicatecrash -v crashlog-DCE8F822-47EB-42F9-A737-5D137FD827FE.crash MyApp.iOS.app.dSYM
-> I get the error: zsh: no such file or directory: ./symbolicatecrash
Do not set alias .
You can copy symbolicatecrash file and paste it to the CrashTop folder .
and run the command
./symbolicatecrash -v MyApp-Crash-log.crash MyApp.dSYM
I am trying to deploy simple zip archive to webroot of an application with following file only:
bin/Views/Test.cshtml
using following MsDeploy command
C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -allowUntrusted="True" -verb:sync -source:package="package.zip" -dest:contentPath="test",includeAcls="False" -skip:objectName=dbFullSql -skip:objectName=dbDacFx -enableRule:DoNotDelete -enableRule:IgnoreFileLastWriteTime
But it fails with following error
Info: Adding file (test\bin\Views\).
Error: An error was encountered when processing operation 'Create File' on 'C:\inetpub\test\bin\Views\'.
Error: The error code was 0x8007007B.
Error: The path 'C:\inetpub\test\bin\Views\' is not valid.
Error count: 1.
Basing on error, I could suppose that MsDeploy somehow treats Views folder as file. How could I fix this?
Turns out that problem was in the way, how archive was created.
I used following Powershell command:
Compress-Archive -Path $Src -DestinationPath $Dest -CompressionLevel Optimal -Force -Verbose -ErrorAction Stop
This was wrong, as it packed folders as files.
To fix this, I used following command:
Add-Type -Assembly "System.IO.Compression.FileSystem" ;
[System.IO.Compression.ZipFile]::CreateFromDirectory("$Src","$Dest")
And deployment started working
Recently I encountered a problem when using exe4j to package the jar into exe. My xml configuration file is placed in the same directory of the exe, but after the package is completed, the exe will look for the xml file from the temporary folder.
These are the instructions in the exe4j help documentation
For some applications (especially GUI applications) you might want to change >the working directory to a specific directory relative to the executable, for >example to read config files that are in a fixed location. To do so, please >select the Change working directory to: checkbox and enter a directory relative >to the executable in the adjacent text field. To change the current directory >to the same directory where the executable is located, please enter a single >dot.
The error when i running the exe :
[ERROR] In Log's init,cann't read config file, file=/C:/Users/**/AppData/Local/Temp/e4jEA8.tmp_dir1543543191//sys_log.xml
Why is the program not looking for this xml from the exe's sibling directory, and how can I find it from this directory?
If you are using the "JAR in EXE" mode, use
System.getPrpoerty("install4j.exeDir")
to get the parent directory of the executable.
I'm receiving error ASPPARSE: Could not load type error when building a project on team city.
The file it is failing on is a folder which is not referenced in the project but is just there for source control.
C:\TC\Agents\3\work\fd3ea8938fa12582>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler -v /DummyDeployWeb -p C:\TC\Agents\3\work\fd3ea8938fa12582\Project C:\TC\Agents\3\work\fd3ea8938fa12582\PreCompiled\Project-fixednames -u
ERROR
/DummyDeployWeb/common/files/somefilename.ascx(1): error ASPPARSE: Could not load type 'Project.somefilename'
How can I get the project to build and ignore these folders that arent referenced?
The ASP.NET compiler knows nothing about project files, it simply processes the entire contents of the folder you point it at.
There is no way to tell the compiler to exclude specific files and so if this is a requirement for you then one solution would be to move these files out of the folder before you run the compiler and then copy them into the deployment folder after the compilation is complete.
I am using iexpress to make my .jar files into .exe files
for this I add the jar file(myjarfile.jar) and in run command box I type : java -jar myjarfile.jar
but after creating the .exe the cmd that is flashing says cannot find the jar file myjarfile.jar
can any body help me find what I am doing wrong
To test this, I built a simple HelloWorld.jar file (using these instructions) and tested it like so:
java -jar HelloWorld.jar
Then I made an IExpress package with it. The Install program was exactly the command I used above. This worked exactly as it should.
Two possible causes of the error:
In the IExpress wizard, there's a checkbox Store files using Long File Name inside Package. You should definitely select this option; ignore the warning that appears, as it applies to Windows 95/98. In the .sed file, this is:
UseLongFileName=1
Check that the .exe actually contains myjarfile.jar. 7-Zip will open the .exe and show you the archive contents. (IExpress .exe files are just a CAB file with a wrapper.) If the file is missing, then you'll need to check your .sed file to see what went wrong.