Unable to add three.dart package from their Git repository - dart

I tried adding the three/three.dart package from their Git repository to my project. I did that as mentioned here. But running pub get from the editor gives the following error:
Pub get failed, [1] Resolving dependencies... (0.1s)
Git error. Command: git fetch
fatal: Not a git repository (or any of the parent directories): .git
../../../../../../mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/git.dart 47 run.<fn>
dart:isolate _RawReceivePortImpl._handleMessage
This is an unexpected error. Please run
pub --trace 'get'
and include the results in a bug report on http://dartbug.com/new.
** Warning: Application may fail to run since packages did not get installed.Try running pub get again. **
Pub get failed, [1] Resolving dependencies... (0.1s)
Git error. Command: git fetch
fatal: Not a git repository (or any of the parent directories): .git
../../../../../../mnt/data/b/build/slave/dart-editor-linux-stable/build/dart/sdk/lib/_internal/pub/lib/src/git.dart 47 run.<fn>
dart:isolate _RawReceivePortImpl._handleMessage
This is an unexpected error. Please run
pub --trace 'get'
and include the results in a bug report on http://dartbug.com/new.
**
Warning: Application may fail to run since packages did not get installed.Try running pub get again. **
I do have git installed on my system. I run Ubuntu 14.04 if that's relevant.
Edit:
I tried pub --trace get and got this:
Resolving dependencies...
Git error. Command: git fetch
fatal: Not a git repository (or any of the parent directories): .git
This was followed by a long log message.
Here is pubspec.yaml file:
dependencies:
browser: any
three:
git:
url: 'git://github.com/threeDart/three.dart.git'
Got it to work finally. I specified the version along with the URL to the Git repo. Here is my final pubspec:
dependencies:
browser: any
three:
git: git://github.com/threeDart/three.dart.git
version: '>=0.2.5+1 <0.3.0'

I had to specify the version range for the package along with the link to the git repository.
dependencies:
browser: any
three:
git: git://github.com/threeDart/three.dart.git
version: '>=0.2.5+1 <0.3.0'

Related

Can't run Cypress successfully in Jenkins build on Windows

In Jenkins build, I set up the build environment as Node.JS, and executed windows batch command "npm install --global yarn&yarn add cypress --dev &yarn cypress:run --reporter=spec"the same way I ran in my local. All the tests can run successfully, but in Jenkins all are failed with error."Oops...we found an error preparing this test file: Error: ENOENT: no such file or directory, stat 'C:\Windows\system32\config\systemprofile\AppData\Roaming\Cypress\cy\production\projects\esgr-portal2-sso-dev-cypress-b7dad7110500bea68385ec2d48f2d9df\bundles\cypress\support\e2e.js'. This occurred while Cypress was compiling and bundling your test code. This is usually caused by: A missing file or dependency. A syntax error in the file or one of its dependencies. Fix the error in your code and re-run your tests."
The console log is here:
Started by user Billy
Running as SYSTEM
Building in workspace C:\Program Files (x86)\Jenkins\workspace\project-sso-dev-cypress
using credential 78bcddd4-13b9-4582-a4fc-e86abb9ebeaa
> C:\Program Files\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> C:\Program Files\Git\bin\git.exe config remote.origin.url https://github.com/project-cypress.git # timeout=10
Fetching upstream changes from https://github.com/project-cypress.git
> C:\Program Files\Git\bin\git.exe --version # timeout=10
using GIT_ASKPASS to set credentials Token as password
> C:\Program Files\Git\bin\git.exe fetch --tags --force --progress -- https://github.com/project-cypress.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> C:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/main^{commit}" # timeout=10
> C:\Program Files\Git\bin\git.exe rev-parse "refs/remotes/origin/origin/main^{commit}" # timeout=10
Checking out Revision 56ab032de063bbf0e04a7bbf7482b9f795be79d4 (refs/remotes/origin/main)
> C:\Program Files\Git\bin\git.exe config core.sparsecheckout # timeout=10
> C:\Program Files\Git\bin\git.exe checkout -f 56ab032de063bbf0e04a7bbf7482b9f795be79d4 # timeout=10
Commit message: "Merge branch 'main' of https://github.com/project-cypress"
> C:\Program Files\Git\bin\git.exe rev-list --no-walk 4cd7cdcec00da10e04193706d9741f2d0a9a231e # timeout=10
[esgr-portal2-sso-dev-cypress] $ cmd /c call C:\Windows\TEMP\jenkins1758996358505508646.bat
C:\Program Files (x86)\Jenkins\workspace\project-sso-dev-cypress>npm cache clean --force & npm install & npm install cypress & npm install --global yarn & yarn add cypress --dev & npm install cypress-react-selector & yarn cypress:run --reporter=spec
npm WARN using --force Recommended protections disabled.
added 168 packages, removed 3 packages, and audited 169 packages in 15s
28 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
up to date, audited 169 packages in 705ms
28 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
changed 1 package in 490ms
yarn add v1.22.19
warning package.json: No license field
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
warning No license field
success Saved 1 new dependency.
info Direct dependencies
└─ cypress#12.2.0
info All dependencies
└─ cypress#12.2.0
Done in 10.71s.
added 3 packages, changed 8 packages, and audited 172 packages in 4s
28 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
yarn run v1.22.19
warning package.json: No license field
$ cypress run --reporter=spec
�[90m====================================================================================================�[39m
�[0m (�[4m�[1mRun Starting�[22m�[24m)�[0m
�[90m ┌�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m��[39m
�[90m │�[39m �[90mCypress:�[39m 12.2.0 �[90m│�[39m
�[90m │�[39m �[90mBrowser:�[39m Electron 106 �[90m(headless)�[39m �[90m│�[39m
�[90m │�[39m �[90mNode Version:�[39m �[0mv19.3.0 �[90m(C:\Program Files (x86)\Jenkins\tools\jenkins.plugins.nodejs.tool�[0m �[90m│�[39m
�[90m │�[39m �[0ms.NodeJSInstallation\Node19\node.exe)�[39m�[0m �[90m│�[39m
�[90m │�[39m �[90mSpecs:�[39m �[0m30 found (1-getting-started/todo.cy.js, 2-advanced-examples/actions.cy.js, 2-a�[0m �[90m│�[39m
�[90m │�[39m �[0mdvanced-examples/aliasing.cy.js, 2-advanced-examples/assertions.cy.js, 2-advan�[0m �[90m│�[39m
�[90m │�[39m �[0mced-examples/connectors.cy.js, 2-advanced-examples/cookies.cy.js, 2-advanced-e�[0m �[90m│�[39m
�[90m │�[39m �[0mxamples/cypress_api.cy....)�[0m �[90m│�[39m
�[90m │�[39m �[90mSearched:�[39m �[0mcypress/e2e/**/*.cy.{js,jsx,ts,tsx}�[0m �[90m│�[39m
�[90m └�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m┘�[39m
�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m�[90m─�[39m
Running: �[90m1-getting-started/todo.cy.js�[39m �[90m(1 of 30)�[39m
�[31mOops...we found an error preparing this test file:�[39m
�[31m�[39m
�[31m�[90m > �[31m�[94mcypress\e2e\1-getting-started\todo.cy.js�[31m�[39m
�[31m�[39m
�[31mThe error was:�[39m
�[31m�[39m
�[31m�[33mError: ENOENT: no such file or directory, stat 'C:\Windows\system32\config\systemprofile\AppData\Roaming\Cypress\cy\production\projects\esgr-portal2-sso-dev-cypress-b7dad7110500bea68385ec2d48f2d9df\bundles\cypress\e2e\1-getting-started\todo.cy.js'�[31m�[39m
�[31m�[39m
�[31mThis occurred while Cypress was compiling and bundling your test code. This is usually caused by:�[39m
�[31m�[39m
�[31m- A missing file or dependency�[39m
�[31m- A syntax error in the file or one of its dependencies�[39m
�[31m�[39m
�[31mFix the error in your code and re-run your tests.�[39m

yarn add react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context#react-native-community/masked-view

I am running the below command and getting the error Command failed.
Exit code: 128 .... I have generated SSHKey and copied it to my Github profile....
yarn add react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context#react-native-community/masked-view
yarn add v1.22.10
[1/4] 🔍 Resolving packages...
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads ssh://git#github.com/react-native-community/masked-view.git
Directory: /Users/admin/Desktop/NBNB
Output:
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Considering https://github.com/react-native-community/masked-view.git is not accessible, it must be:
a non-existent repository (hence your error message)
or a private repository, in which case double-check if your GitHub user account is indeed a member of the react-native-community organisation.
Check also if ssh -Tv git#github.com does end up with a "Welcome" message including the expected GitHub user account.

Tensorflow Hub Build from Source Failing

I'm having a problem with Building TF Hub from Source. Can Anyone please help me out? I've been following the steps as given in https://github.com/tensorflow/hub/blob/master/tensorflow_hub/pip_package/PIP.md
I've installed bazel 0.24.1.
Error I'm Getting:
ERROR: /home/tf_hub/hub/WORKSPACE:17:1: name 'git_repository' is not defined
ERROR: /home/tf_hub/hub/WORKSPACE:40:1: name 'http_archive' is not defined
ERROR: /home/tf_hub/hub/WORKSPACE:47:1: name 'new_http_archive' is not defined
ERROR: Error evaluating WORKSPACE file
ERROR: error loading package '': Encountered error while reading extension file 'tools/build_defs/repo/http.bzl': no such package '#bazel_tools//tools/build_defs/repo': error loading package 'external': Could not load //external package
ERROR: error loading package '': Encountered error while reading extension file 'tools/build_defs/repo/http.bzl': no such package '#bazel_tools//tools/build_defs/repo': error loading package 'external': Could not load //external package
INFO: Elapsed time: 2.552s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
Bazel Version: 0.24.1
Python Version: 3
Tensorflow Version: 2.0.0a
Commands to Reproduce:
(env)~/tf_hub$ git clone https://github.com/tensorflow/hub
(env)~/tf_hub$ cd hub && bazel build tensorflow_hub/pip_package:build_pip_package
Expected Output: No Error. Build Sucessful
Latest Versions of Bazel Doesn't support git_repository (which is still used by tensorflow_hub), so Uninstalling Bazel 0.24.1 and installing Bazel 0.18.1 worked.

Error on pod setup in new mac

I am trying pod installation and pod setup in my new mac. But I got following issues on terminal. Anybody please could help me ?
$ /usr/bin/git clone https://github.com/CocoaPods/Specs.git master --progress
Cloning into 'master'...
remote: Counting objects: 2131130, done.
remote: Compressing objects: 100% (503/503), done.
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
There are two ways to do :-
1. It is related to your connections.If your connection isn't proper then you can get this error.So, whenever it happens you should again try to follow the same procedure of installation.
2. I dont think this is a cocoapods library issue.
Try to clone repo manually https://github.com/CocoaPods/Specs and then place it in ~/.cocoapods/repos/master

Dart pub rename failed

I am using the Dart Editor and get the following error when I run pub get
--- Dec 11, 2013 9:21:42 PM Running pub get ... --- Pub get failed, [1] Resolving dependencies.......... Downloading json_object
1.0.18+2... Rename failed
** Warning: Application may fail to run since packages did not get installed.Try running pub get again. **
What is going on here? I have downloaded many packages before.
How do I get a more meaningful error message?
Could be a problem with symlinks.
You may try to empty your packages directory within your package and also try to empty your .pub-cache directory.

Resources