error installing package on a branch with install_github - github

I've forked a package from github have made some changes. I'm trying to install the version of the package to which I've made changes with install_github(), but am getting an error message. Any suggestions?
The forked version: https://github.com/embruna/refnet
The edited version on the branch: https://github.com/embruna/refnet/tree/proposed-updates
I can install the forked version with:
install_github("embruna/refnet", subdir="pkg")
I tried to install the version on the branch with the following:
install_github("embruna/refnet#proposed-updates", subdir="pkg")
But then get this error:
** help
*** installing help indices
** building package indices
Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
line 1 did not have 6 elements
ERROR: installing package indices failed
* removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/refnet’
Error: Command failed (1)
Thanks for any suggestions.
EDIT: There were two problems: 1) the install_github syntax I used incorrect and 2) there was a folder in "pkg" that was throwing an error even after correcting the syntax. See below for details.

I'm guessing that specifying the branch with # but the subdirectory with the subdir argument is confusing devtools.
This works for me (specifying both subdir and branch in the repo argument):
install_github("embruna/refnet/pkg#proposed-updates",
So does this (specifying both branch and subdir as separate arguments):
devtools::install_github("embruna/refnet",
ref = "proposed-updates", subdir = "pkg")
The output starts this way ...
Using GitHub PAT from envvar GITHUB_PAT
Downloading GitHub repo embruna/refnet#proposed-updates
from URL https://api.github.com/repos/embruna/refnet/zipball/proposed-updates
Installing refnet
This is with devtools 1.12.0

I was able to install your proposed-updates branch with this:
install_github("embruna/refnet", branch = "proposed-updates", subdir = "pkg")
I get a bunch of warnings, but no error messages.

Related

Runtimeexception when installing an extension via composer in typo3

I got an error when i try to install extension(Bw Focuspoint Images) via composer in typo3.
Installation failed, reverting ./composer.json to its original content.
[RuntimeException]
Please help.
Composer was already installed in my project. I want to install one extension to this project via composer. The steps i taken are,
login to my project by ssh
Then i give composer req blueways/bw-focuspoint-images
After that i got the error which was in image
I am getting this error
Package operations: 1 install, 0 updates, 0 removals
Installs: blueways/bw-focuspoint-images:v3.0.2
Installation failed, reverting ./composer.json to its original content.
[RuntimeException]
/public/typo3conf/ext/bw_focuspoint_images does not exist and could not be created.
Exception trace:
() at phar:///usr/bin/composer/src/Composer/Util/Filesystem.php:186
Composer\Util\Filesystem->ensureDirectoryExists() at phar:///usr/bin/composer/src/Composer/Downloader/DownloadManager.php:206
Composer\Downloader\DownloadManager->download() at phar:///usr/bin/composer/src/Composer/Installer/LibraryInstaller.php:197
Composer\Installer\LibraryInstaller->installCode() at phar:///usr/bin/composer/src/Composer/Installer/LibraryInstaller.php:101
Composer\Installer\LibraryInstaller->install() at phar:///usr/bin/composer/src/Composer/Installer/InstallationManager.php:173
Composer\Installer\InstallationManager->install() at phar:///usr/bin/composer/src/Composer/Installer/InstallationManager.php:160
Composer\Installer\InstallationManager->execute() at phar:///usr/bin/composer/src/Composer/Installer.php:611
Composer\Installer->doInstall() at phar:///usr/bin/composer/src/Composer/Installer.php:232
Composer\Installer->run() at phar:///usr/bin/composer/src/Composer/Command/RequireCommand.php:248
Composer\Command\RequireCommand->doUpdate() at phar:///usr/bin/composer/src/Composer/Command/RequireCommand.php:205
Composer\Command\RequireCommand->execute() at phar:///usr/bin/composer/vendor/symfony/console/Command/Command.php:245
Symfony\Component\Console\Command\Command->run() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:835
Symfony\Component\Console\Application->doRunCommand() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:185
Symfony\Component\Console\Application->doRun() at phar:///usr/bin/composer/src/Composer/Console/Application.php:283
Composer\Console\Application->doRun() at phar:///usr/bin/composer/vendor/symfony/console/Application.php:117
Symfony\Component\Console\Application->run() at phar:///usr/bin/composer/src/Composer/Console/Application.php:113
Composer\Console\Application->run() at phar:///usr/bin/composer/bin/composer:64
require() at /usr/bin/composer:24
require [--dev] [--prefer-source] [--prefer-dist] [--fixed] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...
Thank you. The extension got installed but it displaying another error.
enter image description here
Thank you for the help. The solution for this issue is,
I created the directory for the extension through composer using
mkdir bw_focuspoint_images
Then I give the command to install that plugin
composer req blueways/bw-focuspoint-images
And it's successfully installed.

Yocto build failed while upgrading to pulseaudio 12.0

I have never worked with Yocto before, have a chance of upgrading the pulseaudio from 9.0 to 12.0 for webos.
However when I am using the 12.0's pulseaudio.inc file, made changes as per my requirement, i am facing the following error during packaging.
ERROR: pulseaudio-12.0-12-r20pulseaudio_v12_14Nov do_package_qa: QA Issue: non -dev/-dbg/nativesdk- package contains symlink .so: pulseaudio-misc path '/work/sa8155-webos-linux/pulseaudio/12.0-12-r20pulseaudio_v12_14Nov/packages-split/pulseaudio-misc/usr/lib/libpulse.so'
non -dev/-dbg/nativesdk- package contains symlink .so: pulseaudio-misc path '/work/sa8155-webos-linux/pulseaudio/12.0-12-r20pulseaudio_v12_14Nov/packages-split/pulseaudio-misc/usr/lib/libpulse-mainloop-glib.so'
non -dev/-dbg/nativesdk- package contains symlink .so: pulseaudio-misc path '/work/sa8155-webos-linux/pulseaudio/12.0-12-r20pulseaudio_v12_14Nov/packages-split/pulseaudio-misc/usr/lib/libpulse-simple.so' [dev-so]
ERROR: pulseaudio-12.0-12-r20pulseaudio_v12_14Nov do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: pulseaudio-12.0-12-r20pulseaudio_v12_14Nov do_package_qa: Function failed: do_package_qa
Inorder to resolve the error
I made the following changes to the inc file. But no luck:
INSANE_SKIP_${PN} = "dev-so"
Can some one please let me know how to resolve this issue.
Adding the following line solved the problem.
FILES_${PN} += "${libdir}/*"

eclipse/RAD/CVSNT Team update error

I'm getting the following error when performing Team-> Update from eclipse/RAD. Any idea how I can resolve this?
cvs update -l -d -P "/Boss/ejbModule/com/arch/boss/dao/BossDeviceDAO.java" "/Boss/ejbModule/com/arch/boss/dao/BossDeviceDAO.java"
U ejbModule/com/arch/boss/dao/BossDeviceDAO.java
cvs server: nonmergeable file needs merge
cvs server: revision 1.17 from repository is now in ejbModule/com/arch/boss/dao/BossDeviceDAO.java
cvs server: file from working directory is now in .#BossDeviceDAO.java.1.16
C ejbModule/com/arch/boss/dao/BossDeviceDAO.java
ok (took 0:21.461)
Error: The following warnings were reported while performing the "cvs update" command.
Error: Boss: An unmergable conflict has occurred for binary file /Boss/ejbModule/com/arch/boss/dao/BossDeviceDAO.java. Revision 1.17 has been loaded and overwritten local changes have been saved in file /Boss/ejbModule/com/arch/boss/dao/.#BossDeviceDAO.java.1.16
***
I see that in the CVS folder, the Entries file contains the entry for the file that I tried to update with version of 1.6. But in CVS repository, the latest version is 1.7. I did a compare of the source on my local and version 1.7 in the repository and see that I have the latest. So, I use notepad and manually update the entry to version 1.7 and the problem went away.

How can I get Compass to work in Visual Studio via NuGet?

My developer friend who has the luxury of developing in a non-Windows environment has been raving about Compass. I finally decided I wanted to give it a try. I'm tired of trying to keep up with all of the intricacies of cross-browser CSS.
So, I found it on NuGet, and installed it.
I installs to my solutions root directory in the packages directory:
$(SolutionDir)packages\Ruby.Compass.0.12.2.3\
It comes with a Readme that states the following message:
Ruby Compass v. 0.12.2
Compass is installed in its own NuGet package dir, and available by
'compass' command in "packages\Ruby.Compass.0.12.2.3" folder.
To compile Compass files during build, add the next line to the
project pre-build events:
"$(SolutionDir)packages\Ruby.Compass.0.12.2.3\compass" compile
"$(ProjectDir)."
So, I placed the line in my pre-build events, saved, and tried to build my project. However, I get an error as follows:
The command
""$(SolutionDir)packages\Ruby.Compass.0.12.2.3\compass" compile "$(ProjectDir)."" exited with code 1.
Notice: It actually shows the full path to the ProjectDir and SolutionDir as it's supposed too in the error message. I replaced them with the tokens to keep the project name unanimous.
Let me mention that I tried variations of the suggestion pre-build line:
"$(SolutionDir)packages\Ruby.Compass.0.12.2.3\compass" compile "$(ProjectDir)"
"$(SolutionDir)packages\Ruby.Compass.0.12.2.3\compass" compile "$(ProjectDir)css"
"$(SolutionDir)packages\Ruby.Compass.0.12.2.3\compass" compile "$(ProjectDir)css\test.scss"
The first one just removed that trailing .. The second one pointed it to the directory where all my css files are stored. The third one pointed it to the exact file I was trying to compile was located.
I opened up compass.cmd which is the file it is calling, and it looks like the following:
#echo off
"%~dp0ruby\bin\compass" %*
I'm assuming this calls the compass file in the ruby/bin folder, which looks like this:
#!C:/downloads/ruby-2.0.0-p247-x64-mingw32/ruby-2.0.0-p247-x64-mingw32/bin/ruby.exe
#
# This file was generated by RubyGems.
#
# The application 'compass' is installed as part of a gem, and
# this file is here to facilitate running it.
#
require 'rubygems'
version = ">= 0"
if ARGV.first
str = ARGV.first
str = str.dup.force_encoding("BINARY") if str.respond_to? :force_encoding
if str =~ /\A_(.*)_\z/
version = $1
ARGV.shift
end
end
gem 'compass', version
load Gem.bin_path('compass', 'compass', version)
From there, I'm not sure what is going on. I'm not a Ruby person.
Is there an issue that I'm overlooking here?
Has anyone else been able to install Ruby.Compass via NuGet?
How can I get this working in Visual Studio without having to fight with Ruby?
From: http://codewith.us/automating-css-generation-in-visual-studio-using-sasscompass/
"Note that, if there are issues with your SCSS files, you will receive some variation of the error below.
Error 36 The command "del "C:Projectspubliccss*.css" /S
compass compile "C:Projectspublic" --force" exited with code 1.
Open your Output window (click View -> Output or press Ctrl+W, O), and select “Build” in the “Show output from:” menu. Scroll up until you find your command in the log and you should get a little more insight into what portion of the command failed."

EventStore build.cmd Errors

Just getting started with JOlivers event store library and having issues with some of the Nuget commands in the build.cmd. here's the log, perhaps you're already aware of the issue but i thought i'd put it up here.
=== COMPILING ===
Compiling / Target: v4.0 / Config: Release
S:\SourceControl\Test Projects\EventStore\bin\nuget\NuGet.targets(6,9): error : Input string was not in a correct format. [S:\SourceControl\Test Projects\EventStore\src\proj\EventStore.Persistence.RavenPersistence\EventStore.Persistence.RavenPersistence.csproj]
S:\SourceControl\Test Projects\EventStore\bin\nuget\NuGet.targets(6,9): error MSB3073: The command ""S:\SourceControl\Test Projects\EventStore\src\..\bin\nuget\nuget.exe" install "S:\SourceControl\Test Projects\EventStore\src\proj\EventStore.Persistence.RavenPersistence\packages.config" -source "" -o "S:\SourceControl\Test Projects\EventStore\src\..\bin"" exited with code 1. [S:\SourceControl\Test Projects\EventStore\src\proj\EventStore.Persistence.RavenPersistence\EventStore.Persistence.RavenPersistence.csproj]
The master branch of EventStore appears to be broken at the moment. The 3.0 branch is in better shape but is also slightly broken. To fix the 3.0 branch so that it builds, you need to upgrade the 1.5 version of nuget.exe to 1.6. The easiest way to do that is to execute \bin\nuget\NuGet.exe update -self in the repository. I already submitted a pull request to JOliver with that change.
(I also submitted a pull request with a few minor fixes for the example project.)