I am trying to use codesandbox by importing the github repository. I am not able to edit the contents of the package.json file. It says cannot edit in ready only editor. How to solve this error?
step1: Ctrl+save
step2: Refresh the webpage from the web browser.
That's it. You are good to go now.
You can't even edit any other files for github repository. You can fork that codesandbox and then edit.
I also met that kind of situation and it worked after fork.
In my case, I just went back to the Dashboard, and re-opened the sandbox. Then I was able to edit it like usual. However, I did notice that the GitHub linkage was gone then.
If you go to the Dashboard in CodeSandbox you can re-open your code from there. After opening your code, click on the Github icon. You can see the option to Export to Github, and you can see how many changes you have made.
But if you open your code from the link on Github you will be in a read-only editor mode.
If this is the first time to open the code in CodeSandbox (for example, you are viewing somebody else's code) then you have to fork it in order to edit it.
Related
I'm on my very second project on Javascript and I came across several people's codes on Github. I'd like to give them a test run to understand how they work. How or what is the best way to go about testing the code?
When you open a repository in GitHub, there's a Green "Code" dropdown menu in the repository page (see screen shout).
You can use this menu to clone\download the repo to your local computer and play with it
I know I can manually go to PR and uncheck Viewed. Is there a shortcut to uncheck on all files in the PR?
Found some relevant issues on GitHub
https://github.com/refined-github/refined-github/issues/2444
Why I want to do it?
To be able to see the comments and expand the cards which are collapsed because I manually marked viewed.
I tried Option+Click on Mac , didn't work for me.
Don't think the UI currently supports that. It looks like you need to tick, all checkboxes manually. Or come up with a JavaScript to find and click them for you.
Try that in your browser console.
document.getElementsByName("viewed").forEach(ch => {if(ch.checked) {ch.click()}})
I have a GitHub repository where I put my jupyter notebooks in it. While I open my notebooks in GitHub, I usually see a pencil button where I can Edit my notebook:
However for some other notebooks in the same repository it disappears:
Why this happens and how to fix it?
It is simply because of the size of the file. Github does not allow editing large files (not sure what is the exact size limit) It sometimes even restricts viewing such files, and they can be viewed only in the raw mode.
To edit these files, edit them in your local clone and push them to the desired branch using git cli, Github Desktop, SourceTree etc.
Edit: Answer is outdated now. Please see the workaround mentioned in comments.
As per Wayne Bloss' comment, it's actually possible to exchange the blob to edit in the URL and edit files that have the edit button hidden.
https://github.com/orga/repo/blob/branch/folder/filename.extension becomes https://github.com/orga/repo/edit/branch/folder/filename.extension
In my case, it was a lifesaver because I couldn't checkout the file on Windows due to an illegal character in the name of the file.
When you install my extension, and you click on "Contributions" in VSCode, it only shows a blank page.
enter image description here
I have no clue why that is.. the package.json looks fine though..
How can I show the contributions like any other extension does?
This was a bug in VS Code 1.27. It is fixed in VS Code 1.28+
I used to have the same issue!
I used to create new branches for different lessons learned which were never part of the main branch.
Merging the branches to main(master) updated my contributions.
Very new to Github and I downloaded the desktop application in hopes of understanding it better. What I'm trying to do is commit/push files by dragging them into my repository folder, but they don't show in application when moved? I tried editing a txt file and as soon as I save it, it appears. I don't want to have to edit every file I add to my repository as I edit it elsewhere. How do I make the non-edited, dragged-and-dropped files appear?
Also, is there an official GitHub support forum? I can't find anything on their website where you can ask questions/etc and I'm not sure StackOverflow is the best place for this question.
Thanks!
That's the way how git works. It doesn't make sense to add every time the unedited files.
When it notices you added/edited/removed files, git will know that.
I pasted a file (blocks.gif) in my repository and in GitHub Desktop it I see the following (click the 1 uncommitted change) and you should see the new files there. Then you can write a commit message and commit the changes.
Also, is there an official GitHub support forum?
When you need help using GitHub, you can always contact the support team (or write an email to support#github.com). They are awesome people. :)
https://github.com/contact