Error while using SimplePHPUnit Package - phpunit

I am currently using the following package from github for my sublime text 3 and getting error message
Github package https://github.com/pr0ggy/SimplePHPUnit-for-Sublime-Text
Error This version of PHPUnit requires PHP 5.6; using the latest version of PHP is highly recommended.
[Finished in 0.1s]
PHP 7.0.2 (cli) (built: Jan 8 2016 10:14:20) ( NTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
[ 4:01PM ] [ manshu#Himanshus-MacBook-Pro:~(ruby-2.3.0) ]

I had to installed phpunit again and it worked with CHMOD755 on the phar file.

Related

ASP.NET Nuget version error when deploying to Heroku

When I deploy to Heroku, I get an error stating that my Nuget version is not up to date. When I checked my Nuget version from the command line, it was 6.2.1.2, and I don't have Microsoft.ClearScript.V8 7.2.1 installed locally. Therefore, I think the issue is that Heroku doesn't have the right Nuget version for the buildpack, but I'm not sure how to remedy this. Other buildpacks throw errors earlier on.
Full error output:
-----> Building on the Heroku-18 stack
-----> Using buildpack: https://github.com/jincod/dotnetcore-buildpack#v2.1.300
-----> ASP.NET Core app detected
Installing dotnet
publish /tmp/build_ed54e936/RoundTheCode.GoogleAuthentication/RoundTheCode.GoogleAuthentication.csproj
Microsoft (R) Build Engine version 15.7.179.6572 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
Restoring packages for /tmp/build_ed54e936/RoundTheCode.GoogleAuthentication/RoundTheCode.GoogleAuthentication.csproj...
/tmp/build_ed54e936/.heroku/dotnet/sdk/2.1.300/NuGet.targets(114,5): error NU1401: The 'Microsoft.ClearScript.V8 7.2.1' package requires NuGet client version '4.9.0' or above, but the current NuGet version is '4.7.0'. To upgrade NuGet, please go to http://docs.nuget.org/consume/installing-nuget [/tmp/build_ed54e936/RoundTheCode.GoogleAuthentication/RoundTheCode.GoogleAuthentication.csproj]
! Push rejected, failed to compile ASP.NET Core app.
! Push failed

Using the new Package Reference syntax in F# scripts

According to this Microsoft blog post section, Package references in F# scripts
, I should be able to use the following syntax in an fsx script:
#r "nuget: FSharp.Data"
Unfortunately, the compiler gives me the following error:
The package management feature requires language version 5.0 use /langversion:preview F# Compiler(3302)
I believe I have dotnet.core 5.0 installed correctly:
dotnet --info
.NET SDK (reflecting any global.json):
Version: 5.0.100
Commit: 5044b93829
Runtime Environment:
OS Name: Mac OS X
OS Version: 11.0
OS Platform: Darwin
RID: osx.11.0-x64
Base Path: /usr/local/share/dotnet/sdk/5.0.100/
Host (useful for support):
Version: 5.0.0
Commit: cf258a14b7
.NET SDKs installed:
5.0.100-rc.1.20452.10 [/usr/local/share/dotnet/sdk]
5.0.100 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 5.0.0-rc.1.20451.17 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.0-rc.1.20451.14 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-downloa
How can I get this working correctly? Currently, the fsx script inside a dotnet core solution if that makes any difference. I'm using vscode with the ionide plugin to write F#.
Ionide doesn't yet support F#5.
As Isaac Abraham pointed out in his answer, the Ionide vscode package, at the time of this post, doesn't support F# 5.0 quite yet. However, the Ionide package helpfully does give the user the ability to enable a preview of F# 5.0 language features.
I fixed this compiler error by opening up the User's settings.json file and adding the following lines:
"FSharp.fsiExtraParameters": [
"--langversion:preview"
]

Unable to find package Microsoft.NETCore.App with version (>= 3.1.0)

I have .NET Core SDK 3.1.200 installed on my local machine.
I create a Asp.Net Core app (using Visual Studio) targeting netcoreapp3.1. I test it and it works fine.
But when I commit it to CI the build fails to get the nuget package:
##[error]The nuget command failed with exit code(1) and error(NU1102: Unable to find package Microsoft.NETCore.App with version (>= 3.1.0)
- Found 81 version(s) in MyGet [ Nearest version: 3.0.0-preview8-28405-07 ]
- Found 73 version(s) in NuGet [ Nearest version: 2.2.8 ]
.NET Core 3.1 was released in December 2019 so why is the package not on nuget?
What am I missing?
Update
The CI is Azure Devops Pilelines and the agents are Windows machines that have Visual Studio 2017 installed. .Net core sdk 3.1 is not installed on the agents
Method 1:
Add the following task in your yaml
steps:
- task: UseDotNet#2
displayName: 'Use .Net Core sdk 3.1.x'
inputs:
version: 3.1.x
Method 2:
If using template editor, add Use .Net Core task and provide the version over there
Note: Make sure this should be the first task of the pipeline configured

Unable to install cubature package (configure: error: C compiler cannot create executables)

I've been trying to install the "statsr" package for the "Stats with R" specialization on coursera, however, I've run into quite a few roadblocks here.
After trying everything suggested on StackOverflow and otherwise, this is where I'm at.
Apparently, I'm unable to install the "curbature" package without which "statsr" wouldn't install.
> install_local("~/Downloads//statsr-master")
Statsr error: https://pastebin.com/8wGequDQ
> install.packages("cubature")
Curbature error : https://pastebin.com/MLb4Dqf3
I have command line tools installed along with clang and gcc. Brew config log shown below :
HOMEBREW_VERSION: 2.0.2
ORIGIN: https://github.com/Homebrew/brew
HEAD: 117c24f4b6294e037431d3a850ced6955d53e26f
Last commit: 6 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 912d73ae0e5e38162e1dce53e5a53bb060d78da8
Core tap last commit: 9 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_LOGS: /Users/shaileshdudala/Library/Logs/Homebrew
CPU: dodeca-core 64-bit kabylake
Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby
Clang: 10.0 build 1000
Git: 2.17.2 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 11.0.2
macOS: 10.14-x86_64
CLT: 10.1.0.0.1.1539992718
Xcode: 10.1
Thoughts?
Hey I had the same issue. Uninstalled RStudio from Anaconda, then installed RStudio independently (not through Anaconda) and ran all of the package install commands. Works fine now

MUnit site for Anypoint Studio

I am trying to install Munit to my Anypoint Studio 4.1.0 (Mule server 3.5.2) using http://studio.mulesoft.org/r4/munit but it's failing with the below error
Cannot complete the install because one or more required items could not be found.
Software being installed: MUnit Anypoint Studio Plugin 1.0.5.201603281940 (org.mule.tooling.munit.extension.feature.group 1.0.5.201603281940)
Missing requirement: Munit 1.0.5.201603281940 (org.mule.tooling.ui.contribution.munit 1.0.5.201603281940) requires 'bundle org.mule.tooling.messageflow [5.4.3,5.5.0)' but it could not be found
Cannot satisfy dependency:
From: MUnit Anypoint Studio Plugin 1.0.5.201603281940 (org.mule.tooling.munit.extension.feature.group 1.0.5.201603281940)
To: org.mule.tooling.ui.contribution.munit [1.0.5.201603281940]
Could you please help ?
Install/upgrade to munit r6. Before updating munit from r4 to r6, uninstall previous versions of munit.

Resources