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

Publish to Github Not Functional? #178

Open
quadrophobiac opened this issue Jul 17, 2017 · 8 comments
Open

Publish to Github Not Functional? #178

quadrophobiac opened this issue Jul 17, 2017 · 8 comments

Comments

@quadrophobiac
Copy link
Collaborator

quadrophobiac commented Jul 17, 2017

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//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
Copy link
Collaborator Author

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

@pezholio
Copy link
Collaborator

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)

@chris48s
Copy link
Collaborator

@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.

@Floppy
Copy link
Contributor

Floppy commented Aug 9, 2017

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

@quadrophobiac
Copy link
Collaborator Author

re-test Comma Chameleon you mean?

@Floppy
Copy link
Contributor

Floppy commented Aug 9, 2017

Yep

@quadrophobiac
Copy link
Collaborator Author

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?

@chris48s
Copy link
Collaborator

chris48s commented Aug 9, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants