Error in colonyStarter - unable to clone dappsys repository

colonystarter

#4

I would also be happy to open a PR myself if you prefer.


#5

If I want to change .gitmodules in colonyToken I need to clone it, right?
This repocitory is called by ColonyNetwork which is called by colonyStarter. So I need to change their .gitmodules.


#7

Ok, I see what you are trying to do. If you clone the colonyToken repository and change the .gitmodules file to use https, then clone the colonyNetwork repository and change the .gitmodules file to use the cloned version of colonyToken, and then clone the colonyStarter repository and change it to use the cloned version of colonyNetwork, you will be able to able to install the colony-starter-basic package.

That seems like a lot of work!

If you still want to take this route, you will not be able to use the command in the colonyStarter instructions (colony build colony-starter-basic) because it would require publishing a new version of one of the packages in colonyStarter that points to your cloned repository for colonyNetwork. You would have to pull down the repository and build the colony-starter-basic package locally.

The real issue is that colonyToken uses ssh and either we need to state ssh is required or we need to change that in the colonyToken repository. I think this is something we should change so that we can provide support to developers like yourself that do not have ssh installed.

I think the easiest and quickest solution would be installing ssh, which is also a good best practice:

Adding a new SSH key to your GitHub account


#8

Hey @Darya!

Did you get it working with ssh installed?

Also, would you like to open a PR in colonyToken or shall I?


#9

Hi Rayan!

I`m just trying to install ssh.

ANd what PR means?


#10

Ok, great! Let me know how it goes!

PR is short for “pull request”. We might want to change .gitmodules in colonyToken to use ssh to prevent this from happening in the future but, as mentioned before, installing ssh is a good best practice.


#11

Also, the colonyStarter packages were updated last night so I would recommend removing @colony/colony-starter globally and installing the new @colony/colony-cli package.

Remove @colony/colony-starter globally:

yarn global remove @colony/colony-starter

Add @colony/colony-cli globally:

yarn global add @colony/colony-cli

Install any of the colonyStarter packages:

colony build [package-name]

#12

Ok, I installed it and ran all commands in Run Example. Everything worked but when I ran yarn test I received the following error:

Could you help me please?


#13

Glad to hear you got it working!

Most of the tests are assigned a 5000 ms timeout so it looks like this one took a bit longer. The test was passing on our CI (continuous integration) but you might need to update the timeout to a larger number (ie 10000) if your computer takes a bit longer to process.

For example, you would want to change the 5000 at the bottom of this test to 10000:

  // Test the signSetTaskBrief() action from account[0]
  test('account[0] signSetTaskBrief() works', async () => {
    state.task = await signSetTaskBrief(
      state.colonyClient[0],          // colonyClient
      state.task.id,                  // taskId
    );
    expect(state.task).toEqual(expect.objectContaining({
      specificationHash: 'QmWvM3isCmEY8bsixThuFeUJmE5MN2he1UxaPzMngLZ7Wq',
    }));
  }, 5000);

#14

That being said, it looks like the test working for account[0] but not the later test for account[2], so it might resolve itself but running the tests again.

I also noticed that you are using the colony-starter-basic package, which has been updated and renamed colony-example as of last night. You can view the updated package structure at colonyStarter.

Let me know if you have any more questions.


#15

:frowning_face:
I`ve just tried to run colony build colony-example from this https://github.com/JoinColony/colonyStarter/tree/develop/packages/colony-example

and received


#16

No worries! I received the same error last night.

You are receiving this error because the @colony/colony-starter package is still globally installed on your computer. You need to remove the old package and then globally install the @colony/colony-cli package so that the colony command is not overlapping with the old package.

Remove @colony/colony-starter globally:

yarn global remove @colony/colony-starter

Add @colony/colony-cli globally:

yarn global add @colony/colony-cli

I also cleaned my yarn cache but removing the old and adding the new should work too. If you feel the need to clean your yarn cache, you can run the following command before globally installing the new package:

yarn cache clean

#17

Any luck? Did that work for you? Let me know.


#18

I followed your recomendations and tried to run yarn global remove @colony/colony-starter and received

After that I tried to run yarn cache clean and then added colony-cli globally,result was the same: Unable to locate @colony/colony-starter-colony-example on npm


#19

Hmmm… for some reason it won’t let you remove the package, which is why you are receiving the same error. I am not sure why but you can manually remove the package.

Find out where global packages are installed:

yarn global dir

Move to that directory and then go into the node_modules folder and delete the @colony folder. Then you can run a fresh install of the @colony/colony-cli package.

Apologies to make you go through all this! Globally installed packages can be a bit tricky sometimes. If you prefer, you can build packages without globally installing them using npx:

npx -p @colony/colony-cli colony build colony-example

#20

It`s ok) Thank you!

I`ve done all steps and as a result of yarn test received “No tests found”.


#21

Which colonyStarter package did you build? Did you run yarn test from within the project directory?

The only package that does not have tests is the colony-cli package itself, so I am not sure why you would be getting “no tests found” if you built one of the “starter” or “example” packages.


#22

yes, I ran it from colony-example.


#23

I’m not able to reproduce a “no tests found” error after running through the instructions in colony-example.

Can you share the error message?


#24