Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gatsby info --clipboard gives errors on Windows 10 #11496

Closed
saranshkataria opened this issue Feb 2, 2019 · 8 comments · Fixed by #13212
Closed

gatsby info --clipboard gives errors on Windows 10 #11496

saranshkataria opened this issue Feb 2, 2019 · 8 comments · Fixed by #13212
Labels
type: upstream Issues outside of Gatsby's control, caused by dependencies

Comments

@saranshkataria
Copy link
Contributor

Description

I ran the gatsby info --clipboard command on command line for an issue I was reporting and got a bunch of errors stating " The system cannot find the path specified."

Steps to reproduce

Create project, cd into directory, run gatsby info --clipboard

Expected result

No errors should be present in output

Actual result

` System:
OS: Windows 10
CPU: (8) x64 Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz
Binaries:
Yarn: 1.12.3 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
Languages:
Python: 2.7.15
Browsers:
Edge: 42.17134.1.0
npmPackages:
gatsby: ^2.0.107 => 2.0.107

error The system cannot find the path specified.

Error: The system cannot find the path specified.

  • envinfo.js:1 Function.e.exports.sync
    [v8.15.0]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:4970

  • envinfo.js:1 Object.copySync
    [v8.15.0]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:66948

  • envinfo.js:1 Object.t.writeSync.e [as writeSync]
    [v8.15.0]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:48777

  • envinfo.js:1
    [v8.15.0]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:46934

  • envinfo.js:1 Promise.all.then.e
    [v8.15.0]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:46949

  • util.js:16 tryCatcher
    [v8.15.0]/[gatsby-cli]/[bluebird]/js/release/util.js:16:23

  • promise.js:512 Promise._settlePromiseFromHandler
    [v8.15.0]/[gatsby-cli]/[bluebird]/js/release/promise.js:512:31

  • promise.js:569 Promise._settlePromise
    [v8.15.0]/[gatsby-cli]/[bluebird]/js/release/promise.js:569:18

  • promise.js:614 Promise._settlePromise0
    [v8.15.0]/[gatsby-cli]/[bluebird]/js/release/promise.js:614:10

  • promise.js:694 Promise._settlePromises
    [v8.15.0]/[gatsby-cli]/[bluebird]/js/release/promise.js:694:18

  • promise.js:638 Promise._fulfill
    [v8.15.0]/[gatsby-cli]/[bluebird]/js/release/promise.js:638:18

  • promise_array.js:126 PromiseArray._resolve
    [v8.15.0]/[gatsby-cli]/[bluebird]/js/release/promise_array.js:126:19

  • promise_array.js:144 PromiseArray._promiseFulfilled
    [v8.15.0]/[gatsby-cli]/[bluebird]/js/release/promise_array.js:144:14

  • promise.js:574 Promise._settlePromise
    [v8.15.0]/[gatsby-cli]/[bluebird]/js/release/promise.js:574:26

  • promise.js:614 Promise._settlePromise0
    [v8.15.0]/[gatsby-cli]/[bluebird]/js/release/promise.js:614:10

  • promise.js:694 Promise._settlePromises
    [v8.15.0]/[gatsby-cli]/[bluebird]/js/release/promise.js:694:18

error UNHANDLED REJECTION

Error: The system cannot find the path specified.

  • envinfo.js:1 Function.e.exports.sync
    [v8.15.0]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:4970

  • envinfo.js:1 Object.copySync
    [v8.15.0]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:66948

  • envinfo.js:1 Object.t.writeSync.e [as writeSync]
    [v8.15.0]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:48777

  • envinfo.js:1
    [v8.15.0]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:46934

  • envinfo.js:1 Promise.all.then.e
    [v8.15.0]/[gatsby-cli]/[envinfo]/dist/envinfo.js:1:46949

  • util.js:16 tryCatcher
    [v8.15.0]/[gatsby-cli]/[bluebird]/js/release/util.js:16:23

  • promise.js:512 Promise._settlePromiseFromHandler
    [v8.15.0]/[gatsby-cli]/[bluebird]/js/release/promise.js:512:31

  • promise.js:569 Promise._settlePromise
    [v8.15.0]/[gatsby-cli]/[bluebird]/js/release/promise.js:569:18

  • promise.js:614 Promise._settlePromise0
    [v8.15.0]/[gatsby-cli]/[bluebird]/js/release/promise.js:614:10

  • promise.js:694 Promise._settlePromises
    [v8.15.0]/[gatsby-cli]/[bluebird]/js/release/promise.js:694:18

  • promise.js:638 Promise._fulfill
    [v8.15.0]/[gatsby-cli]/[bluebird]/js/release/promise.js:638:18

  • promise_array.js:126 PromiseArray._resolve
    [v8.15.0]/[gatsby-cli]/[bluebird]/js/release/promise_array.js:126:19

  • promise_array.js:144 PromiseArray._promiseFulfilled
    [v8.15.0]/[gatsby-cli]/[bluebird]/js/release/promise_array.js:144:14

  • promise.js:574 Promise._settlePromise
    [v8.15.0]/[gatsby-cli]/[bluebird]/js/release/promise.js:574:26

  • promise.js:614 Promise._settlePromise0
    [v8.15.0]/[gatsby-cli]/[bluebird]/js/release/promise.js:614:10

  • promise.js:694 Promise._settlePromises
    [v8.15.0]/[gatsby-cli]/[bluebird]/js/release/promise.js:694:18
    `

Environment

Error in this section itself

@gobeli
Copy link

gobeli commented Feb 2, 2019

It seems like the maintainers of envinfo removed the clipboard functionality in the latest version because it was too hard to maintain and failed on windows and other systems. maybe it would be a good idea to remove the --clipboard flag from gatsby-cli as well...

@sidharthachatterjee
Copy link
Contributor

sidharthachatterjee commented Feb 4, 2019

Thank you for reporting this @saranshkataria

Let me see if we can reproduce this to see what the issue is

Side note: @gobeli Removing it would be a breaking change for us. 😞 Are there any alternatives to envinfo that work well on all platforms?

@gatsbot
Copy link

gatsbot bot commented Feb 25, 2019

Hiya!

This issue has gone quiet. Spooky quiet. 👻

We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here.

If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

Thanks for being a part of the Gatsby community! 💪💜

@gatsbot gatsbot bot added the stale? Issue that may be closed soon due to the original author not responding any more. label Feb 25, 2019
@saranshkataria
Copy link
Contributor Author

still waiting for a possible solution

@m-allanson m-allanson added not stale and removed stale? Issue that may be closed soon due to the original author not responding any more. labels Feb 25, 2019
@saranshkataria
Copy link
Contributor Author

@sidharthachatterjee does envinfo look like a good alternative?

@DSchau
Copy link
Contributor

DSchau commented Mar 6, 2019

@saranshkataria that's actually what we use.

https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-cli/src/create-cli.js#L5

A fix here would be to disallow the --clipboard flag when the OS is windows perhaps? Is it true that this seems to happen on all Windows machines?

@saranshkataria
Copy link
Contributor Author

From what I see, they have decided to remove --clipboard altogether and recommend using clipboard-cli or clipboardy instead

@sidharthachatterjee sidharthachatterjee added type: upstream Issues outside of Gatsby's control, caused by dependencies and removed type: question or discussion Issue discussing or asking a question about Gatsby labels Apr 8, 2019
@sidharthachatterjee
Copy link
Contributor

@saranshkataria Moved it over to clipboardy in #13212

While this shouldn't fix the issue automatically (envinfo was using clipboardy internally before they dropped support in v6) it should enable us to diagnose the potential issue in clipboardy and open an issue/contribute a fix upstream

Can you test this with npm i gatsby-cli@clipboardy and post a log and open an issue in https://github.com/sindresorhus/clipboardy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: upstream Issues outside of Gatsby's control, caused by dependencies
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants