cauealvesbraz / mega-sena-cli

:moneybag: Verifica se os números foram sorteados nos jogos anteriores da Mega Sena.
MIT License
25 stars 5 forks source link

Erro no cli: "SyntaxError: Unexpected token u" #1

Closed matepaiva closed 8 years ago

matepaiva commented 8 years ago

$ mega-sena 05 06 12 19 30 60 undefined:1 undefined ^

SyntaxError: Unexpected token u at Object.parse (native) at /usr/local/lib/node_modules/mega-sena-cli/cli.js:30:22 at ReadFileContext.callback (/usr/local/lib/node_modules/mega-sena-cli/node_modules/jsonfile/index.js:25:21) at FSReqWrap.readFileAfterOpen as oncomplete

andrevandal commented 8 years ago

Testei usando v4.2.6 e retornou:

⬢  ~  mega-sena 05 06 12 19 30 10 
undefined:1
undefined
^

SyntaxError: Unexpected token u
    at Object.parse (native)
    at /home/derevandal/.nvm/versions/node/v4.2.6/lib/node_modules/mega-sena-cli/cli.js:30:22
    at ReadFileContext.callback (/home/derevandal/.nvm/versions/node/v4.2.6/lib/node_modules/mega-sena-cli/node_modules/jsonfile/index.js:25:21)
    at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:303:13)

Já com a v6.2.1

⬢  ~  mega-sena 05 06 12 19 30 10  
undefined:1
undefined
^

SyntaxError: Unexpected token u in JSON at position 0
    at Object.parse (native)
    at /home/derevandal/.nvm/versions/node/v6.2.1/lib/node_modules/mega-sena-cli/cli.js:30:22
    at ReadFileContext.callback (/home/derevandal/.nvm/versions/node/v6.2.1/lib/node_modules/mega-sena-cli/node_modules/jsonfile/index.js:25:21)
    at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:359:13)
cauealvesbraz commented 8 years ago

Poderiam tentar atualizar, por gentileza?

npm update -g mega-sena-cli

Depois disso, tentem novamente e vê se continua acontecendo.

cauealvesbraz commented 8 years ago

cc @matepaiva @deregudegu

matepaiva commented 8 years ago

Aqui continua igual.

Mate Paiva 61 9357-5533

2016-06-07 12:37 GMT-03:00 Cauê Alves notifications@github.com:

cc @matepaiva https://github.com/matepaiva @deregudegu https://github.com/deregudegu

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cauealves/mega-sena-cli/issues/1#issuecomment-224320339, or mute the thread https://github.com/notifications/unsubscribe/AJhYVuRVH3XAmTsQ73N92h7vYMr10iP3ks5qJZAigaJpZM4Iv7VF .

cauealvesbraz commented 8 years ago

Estou utilizando a seguinte stack

E está funcionando perfeitamente, veja:

captura de tela 2016-06-07 as 13 09 15

Quando você executa mega-sena --version qual é o retorno?

matepaiva commented 8 years ago

0.1.1 é o retorno

Mate Paiva 61 9357-5533

Em 7 de junho de 2016 13:10, Cauê Alves notifications@github.com escreveu:

Estou utilizando a seguinte stack

  • node v4.2.2
  • npm v2.14.7

E está funcionando perfeitamente, veja:

[image: captura de tela 2016-06-07 as 13 09 15] https://cloud.githubusercontent.com/assets/7065285/15865437/15559698-2cb1-11e6-80f7-770f945b8551.png

Quando você executa mega-sena --version qual é o retorno?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cauealves/mega-sena-cli/issues/1#issuecomment-224330954, or mute the thread https://github.com/notifications/unsubscribe/AJhYVhlbagfZBtLj4BojYZyVRAzmJKkbks5qJZf-gaJpZM4Iv7VF .

cauealvesbraz commented 8 years ago

Atualmente a versão está na 0.1.2, depois tenta fazer o update novamente.

Enquanto isso vou investigar um pouco mais.

matepaiva commented 8 years ago

mate-paiva@leFenix:~$ mega-sena --version 0.1.2 mate-paiva@leFenix:~$ mega-sena 10 20 30 40 50 60 undefined:1 undefined ^

SyntaxError: Unexpected token u at Object.parse (native) at /usr/local/lib/node_modules/mega-sena-cli/cli.js:30:22 at ReadFileContext.callback (/usr/local/lib/node_modules/mega-sena-cli/node_modules/jsonfile/index.js:25:21) at FSReqWrap.readFileAfterOpen as oncomplete

mate-paiva@leFenix:~$ npm -v 3.8.6 mate-paiva@leFenix:~$ node -v v5.8.0

Mate Paiva 61 9357-5533

2016-06-07 13:17 GMT-03:00 Cauê Alves notifications@github.com:

Atualmente a versão está na 0.1.2, depois tenta fazer o update novamente.

Enquanto isso vou investigar um pouco mais.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cauealves/mega-sena-cli/issues/1#issuecomment-224332910, or mute the thread https://github.com/notifications/unsubscribe/AJhYVprMxJOS1dOunwvWoNOjVBSncwf4ks5qJZmFgaJpZM4Iv7VF .

cauealvesbraz commented 8 years ago

@matepaiva Obrigado pelas informações. Vou investigar mais tarde!

matepaiva commented 8 years ago

precisando só chamar!

Mate Paiva 61 9357-5533

2016-06-07 13:33 GMT-03:00 Cauê Alves notifications@github.com:

@matepaiva https://github.com/matepaiva Obrigado pelas informações. Vou investigar mais tarde!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cauealves/mega-sena-cli/issues/1#issuecomment-224337725, or mute the thread https://github.com/notifications/unsubscribe/AJhYVtrwtSXxlgAh8RwYNOsePZS7Nn7wks5qJZ1GgaJpZM4Iv7VF .

cauealvesbraz commented 8 years ago

Lancei uma nova versão para tentar corrigir este problema!

Tenta fazer um novo update, a versão atual é: 0.1.3

matepaiva commented 8 years ago

Volto pro notebook de noite e faço o teste :) On Jun 7, 2016 1:53 PM, "Cauê Alves" notifications@github.com wrote:

Lancei uma nova versão para tentar corrigir este problema!

Tenta fazer um novo update, a versão atual é: 0.1.3

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cauealves/mega-sena-cli/issues/1#issuecomment-224343736, or mute the thread https://github.com/notifications/unsubscribe/AJhYVgtFVgopT84seJjvy2dYEfUmp68Kks5qJaIQgaJpZM4Iv7VF .

cauealvesbraz commented 8 years ago

@matepaiva Conseguiu dar uma olhada?

matepaiva commented 8 years ago

Ainda não cheguei em casa, rs. Mas chegando eu olho. Até meia noite. On Jun 7, 2016 10:57 PM, "Cauê Alves" notifications@github.com wrote:

@matepaiva https://github.com/matepaiva Conseguiu dar uma olhada?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cauealves/mega-sena-cli/issues/1#issuecomment-224466557, or mute the thread https://github.com/notifications/unsubscribe/AJhYVgXzAtA1QBg5nC7utSqasBZrc83Cks5qJiGWgaJpZM4Iv7VF .

cauealvesbraz commented 8 years ago

Valeu! Estarei aguardando feedback.

matepaiva commented 8 years ago

Funcionando!!!! :D

Mate Paiva 61 9357-5533

2016-06-07 23:00 GMT-03:00 Cauê Alves notifications@github.com:

Valeu! Estarei aguardando feedback.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cauealves/mega-sena-cli/issues/1#issuecomment-224466997, or mute the thread https://github.com/notifications/unsubscribe/AJhYVvWhPS-g_JH2qDbZiaRaYkECnluWks5qJiIugaJpZM4Iv7VF .

cauealvesbraz commented 8 years ago

Obrigado pela ajuda @matepaiva \o

cauealvesbraz commented 8 years ago

@deregudegu É só realizar o update do cli que irá funcionar normalmente.