comma-chameleon icon indicating copy to clipboard operation
comma-chameleon copied to clipboard

Publish to Github Not Functional?

Open quadrophobiac opened this issue 8 years ago • 8 comments

Expected Behaviour

I'm not certain what should happen - @pezholio any insight?

Current Behaviour (for problems)

Neither of the github features from the menu are functional

Steps to Reproduce (for problems)

  • open csv file
  • click file > github > export to github or `file > github > add file to github
  • new windows open, but it is blank

Your Environment

Include as many relevant details about the environment you experienced the bug in - this will help us resolve the bug more expediently

  • Operating System and version MacOS

The branch that has incorporated (StandardJS)[https://github.com/theodi/comma-chameleon/pull/177] has flagged this file with errors as follows

  121:11  error  Unexpected literal in error position of callback  standard/no-callback-literal
  125:9   error  Unexpected literal in error position of callback  standard/no-callback-literal

quadrophobiac avatar Jul 17 '17 12:07 quadrophobiac

@pezholio realised you may not get a ping when I edit an existing comment so pinging anew here

quadrophobiac avatar Jul 17 '17 16:07 quadrophobiac

Huh. That's weird. I get a new window that prompts me to login to Github, but when I try to submit a file, I get Dataset files is invalid. Were any changes made to the Octopub API since the FSA work was done in the new year?

I haven't got time at the mo to dig into this, but if it helps, the relevant backend code that talks to the Octopub API is here

Sidebar: When logging into Github to get my token, and trying to copy and paste my Github password from my password manager, I get this error.

Uncaught Exception:
ReferenceError: mainWindow is not defined
    at exports.menu.submenu.click (/Applications/Comma Chameleon.app/Contents/Resources/app/main/menu.js:187:11)
    at MenuItem.click (/Applications/Comma Chameleon.app/Contents/Resources/electron.asar/browser/api/menu-item.js:81:16)
    at Function.delegate.executeCommand (/Applications/Comma Chameleon.app/Contents/Resources/electron.asar/browser/api/menu.js:119:40)

pezholio avatar Jul 17 '17 20:07 pezholio

@pezholio - that issue should have been fixed in f21beb4

If you're using a binary dist, I think that commit hasn't made it into a tagged release yet.

If you're running from source, make sure you've got the latest commits fetched/pulled, although @quadrophobiac has been having some problems with that so I'd be interested to know if you have the same issues.

chris48s avatar Jul 18 '17 19:07 chris48s

API shouldn't have changed, no. We should re-test with the current master and tag a release.

Floppy avatar Aug 09 '17 11:08 Floppy

re-test Comma Chameleon you mean?

quadrophobiac avatar Aug 09 '17 11:08 quadrophobiac

Yep

Floppy avatar Aug 09 '17 11:08 Floppy

I've tried running the tests on Master. They all pass but my issue with an empty window is still present. @pezholio or @chris48s could you see if the tests pass but the functionality continues to be absent?

quadrophobiac avatar Aug 09 '17 16:08 quadrophobiac

Yes - I've got the same problem. Tests pass, 'Export to GitHub' gives me a blank window with no errors logged to the console.

There's definitely something odd going on here though. Lets go back in time to a point where I know this feature definitely worked...

If I download the binary dist for say version 0.4.7, that feature does work .. but then on my local copy, if I git checkout af7f60e ( af7f60e is the commit tagged as 0.4.7), I've got the same problem on my working copy. I think whatever is going on is going to be related to something that is happening in the build process or a dependency or a setting that is on in dev but not when we build a release or something like that.. I don't think the actual "export to GitHub" code is fundamentally broken.

Sorry I don't have more time to spend on it right now but maybe that gives you a clue?

chris48s avatar Aug 09 '17 16:08 chris48s