jw3 / example-daffodil-vscode

A VS Code extension for DFDL with Daffodil
Apache License 2.0
2 stars 3 forks source link

Add the DFDL snippets #79

Closed jw3 closed 3 years ago

jw3 commented 3 years ago

Use #43 as a reference implementation and add the DFDL snippets file to the extension.

regetom commented 3 years ago

Not sure if the email I sent went to the group, so here is the text: It’s been a while since I used github. I cloned the example-snippets-vscode repository, and created a new branch. But I don’t have permission to push the code: git push --set-upstream origin dfdl-snippets remote: Permission to jw3/example-daffodil-vscode.git denied to rthomas320. fatal: unable to access 'https://github.com/jw3/example-daffodil-vscode.git/': The requested URL returned error: 403 I also tried making my github the remote origin. I was able to push the branch to my repository, but I’m not sure how or if I can create pull request from my repository to your repository.

The problem maybe that I have to git accounts a personal account regetom that uses my personal email address, this is where I have been getting all the email for this project, and my work git account rthomas320, this is tied to my work email and the computer with the source code.

I haven’t been using my personal git account much, so I haven’t set up an access token or 2 factor authentication. Not sure what the easiest way to get the code into the repository is. Any suggestions would be appreciated.

jw3 commented 3 years ago

I added your @rthomas320 account as a collaborator to this repo, which should allow you to push a branch.

jw3 commented 3 years ago

The other account @regetom was previously added as a collaborator, but if you aren't going to use that I will remove it for clarity.

arosien commented 3 years ago

Alternatively @regetom could fork the repo and push a PR there. But it's better to be a collaborator.

Also, GitHub should have better error messages, or perhaps git should relay the error message better.

regetom commented 3 years ago

Push to update the snippets file still fails. I attached the code for the snippets file at the end I had to add the txt extension to upload the file). Maybe the easiest thing for now is to have someone else commit the [file. git push fatal: The current branch dfdl-snippets has no upstream branch. To push the current branch and set the remote as upstream, use git push --set-upstream origin dfdl-snippets

git push --set-upstream origin dfdl-snippets remote: Permission to jw3/example-daffodil-vscode.git denied to rthomas320. fatal: unable to access 'https://github.com/jw3/example-daffodil-vscode.git/': The requested URL returned error: 403 [dfdl.code-snippets.txt](https://github.com/jw3/example-daffodil-vscode/files/7046380/dfdl.code-snippets.txt)