Code-comment short-cut not working on MacOS - goland

Still new to Goland
Note:
I am using a Danish keyboard on MacOs Big Sur.
GoLand 2020.3 Build: GO-2003.7148.71 build on January 26 2021.
I have problems commenting out code in Goland (command+shift+7)
It opens the help menu, but I was expecting to comment out code?

Related

R 64-bit Version Not Responsive on Windows 10 (Insider Edition)

Morning guys and gals!
First and foremost, I hope everyone is well during these times. To be brief, I am currently having trouble running R.exe (x64) on my Windows 10 Pro Insider Preview (20190.1000 Build). I have set the Environment Variable Path to the (x64) folder numerous times to check, but Rterm loads forever then closes.
I have gotten the 32 bit (i386) version to work, but I was hoping for any insight why this could possible be an issue. I'm open to all suggestions!
P.S. I should also note that it appears that the R Plugin for PyCharm does not work with the x64 bit version of R!
EDIT: My bad! The R runtime is v4.0.2. I also have v4.0.0 and v3.6.2 installed. Either way, in all runtime versions, only the 32 bit version works!

What can I change if the turtle-code logs me out of python 3 Jupyter?

If I run this Code on Python3 (Anaconda Jupyter 6.0.0) I'm getting logged out automatically. I use a Mac with macOS Mojave.
The code is from the book "How to think like a Computer Scientist". So I'm at the beginning to learn some python.
I already tried to delete the turtle.py files in the library, but it didn't work either.
import turtle
window = turtle.Screen()
alex = turtle.Turtle()
alex.forward(50)
alex.left(90)
alex.forward(30)
window.mainloop()
When I run the code I get logged out. When I log in again, Jupyter just shows a window with "error".
This is more a by-pass than an answer as I am still trying to figure it out myself. I have a macbook and am experiencing the same behavior with PyCharm and Anaconda.
If you want to learn python, the code above runs fine if you instead install the base python interpreter from https://www.python.org/. It includes the turtle module and you can change it in your IDE so that this new interpreter is the default rather than Anaconda. If I figure it out what is happening with Anaconda before someone else, I will let you know.

R.app does not appear in application folder after installing R-3.4.0

I am working in a MacBook Pro (15 inches, mid 2010), OSX El Capitan (10.11.6), 2.4 GHz Intel Core i5, 8 GB 1067 MHz DDR3
Today I tried to update from R-3.3 to R-3.4.0. I downloaded the R-3.4.0.pkg from https://cran.r-project.org/ site. After downloading I checked the MD5 checksum for the R-3.4.0.pkg image and it was the same than in the r-project website. I executed the file by double-clicking and everything appear to work fine, at the end it said that everything was installed with no problem.
The problem I have is that the old R.app was removed from my application folder but the new (R-3.4.0) does not appear in the application folder either.
I tried to download and install the GNU Fortran 6.1 and then reinstall R but nothing changed.
I tried to look for a solution in google and this forum but did not find any clue of what to do. I hope I am not missing any stupid detail or making a rookie mistake.
Thanks for your help,
Alfonso
I was able to get the R.app from http://r.research.att.com/ I got there from the r-project website.
I chose "Mac OS X GUI rev. 7362 for R 3.4.x el-capitan-Debug.dmg" instead of "Mac OS X GUI rev. 7362 for R 3.5.x el-capitan-Debug.dmg" since to the best of my knowledge there is no R-3.5 available yet.
I do not understand why the app did not install directly from R-3.4.0.pkg but apparently this works. I leave this answer just in case is useful for someone.
Thanks for the comments!
Alfonso

RStudio empty on startup - No windows, no menus, no rendering

When I start RStudio, none of the windows inside the main frame come up, and none of the menu options display menu options when clicked. It's just an blank page.
It feels like some kind of graphics rendering or window management problem.
I'm running Windows 7. I have the latest version of R, which is 3.1.1. I have the latest RStudio, which is 98.1062.
How to fix it?
Reset the RStudio state. Do this:
Close RStudio if open.
Go to this directory: %localappdata%\RStudio-Desktop
Rename that directory as a type of backup.
Start RStudio.
RStudio will see the configuration directory is missing and regenerate it with correct values.
Everything should work after that.
Other threads I found helpful here are:
https://support.rstudio.com/hc/en-us/articles/200534577-Resetting-RStudio-s-State
https://support.rstudio.com/hc/communities/public/questions/200666647-RStudio-096-16-Windows-7-gives-empty-screen?locale=en-us
Thanks!
Renaming the RStudio state by renaming %localappdata%\RStudio-Desktop did not work for me. However i made it work by renaming another config folder in %appdata% instead.
Close RStudio
Go to this directory: %appdata%\RStudio
Rename the folder
Restart RStudio
I faced the same issue when I downgraded my version of R.
I did try the above solutions. However, it didn't work for me.
After some googling, I found out that the issue was because now I had a different version of R installed. Here's how you can choose the version of R and rectify the issue.
Navigate to the RStudio installation folder. (C:\Program Files\RStudio\bin)
Press and hold Control Key
Double click on rstudio.exe
Choose a specific version of R (whichever you want to work with)
Click OK and RStudio should open without any issues.
NB: I use 64bit Windows 8.1.
I had the same issue and I almost gave up about solving it but then I found a suggestion that GitHub might be the problem. I am not sure how that is happening but the minute I uninstalled GitHub and re-launched Rstudio, it worked perfectly as nothing happened!? Here is the link for where I found the suggestion on Rstudio community page: (https://support.rstudio.com/hc/communities/public/questions/200983187-R-studio-0-98-797-for-mac-opens-as-blank-white-page)
I had the same problem and figured out that for some reason R was blocked on the step of loading my library from a website (I added it to Rprofile for auto-load). You can test the following:
1) Try to run just R console, not RStudio, and then click on blank space - normally some information should appear
2) Try to launch without network connection
On a Mac (Running Yosemite 10.10.3) this is what worked for me:
Move/Rename ~/.rstudio-desktop
(Many responses have mentioned this, but this by itself didn't help.)
Then I shutdown my Mac and restarted it. RStudio worked when I logged back in.
Before that, I tried every one of the steps mentioned here and in many other links, including re-downloading R and RStudio, but unfortunately none of those steps helped in my case.
Search this documentation for 'Blank GUI'.
This is what I found which worked for me:
In Windows Explorer, go to C:\Users\currentUser\AppData\Roaming\RStudio.
Delete the Desktop.ini file
This technique forces RStudio to refresh and default to open-source R as the engine
Same issue I faced so I unistalled the windows installer and downloaded zip version from this link https://www.rstudio.com/products/rstudio/download/
Unziped It and pasted it into c drive and created shortcut from Rstudio/bin/rstudio.exe file.
Working properly after that no issue. In windows installer checked that r session is not working due to an missing dll.
So try to install from ZIP
I had the same problem like Thomas
When I start RStudio, none on the windows inside the main frame come up, and none of the menu options display menu options when clicked. It's just an blank page.
My problem was, that i uninstalled R because is thought RStudio will work on its own.
So i uninstalled RStudio and deleting every existing file which was created by R or RStudio.
In the next step i installed RStudio again.
It was asking for a Version of R (which i dont had in this state). So i installed R again and everything is working fine now. I hope this helps
I had a slight variation of the problem that might be of interest. I had set up an aliases.cmd to run my cygwin bash shell automatically upon launch of a cmd terminal as per:
https://superuser.com/questions/302194/automatically-executing-commands-when-a-command-prompt-is-opened
What RStudio was doing was launching a few cmd windows in the background to (I assume) populate each pane and the console.
This was triggering a bash shell which wasn't returning and was hanging RStudio.
If you have this issue you can just manually kill the sub bash terminals spawned by cmd via ProcessExplorer/TaskManager and RStudio will continue to launch normally.
If anyone else has set anything to launch automatically on init of a cmd terminal then this could interfere in the same way with RStudio.
The RStudio devs could probably fix this behind the scenes by changing the way they spawn cmd terminals in the gui.
I had a similar problem. After trying the options above with no luck, I uninstalled Rx64 3.5.0 and installed an older version, R x64 3.2.2.
Rstudio then worked perfect.

RStudio is blank when opened

I have just installed the latest versions of R (3.1.0) and Rstudio (v0.98.507) on a Windows 7 machine, 64 bit.
The R GUI works OK, but when I open the RStudio.exe only a blank window opens. I've tried re-installing R and RStudio.
Any suggestions?
By choosing the R version I wanted to use I was able to use Rstudio again.
To choose the R version you want to use with Rstudio do the following;
Click the CTRL key (don't let go)
Click on the Rstudio icon
Choose the version you want in the pop-up window.
For Ubuntu users where #neal's solution doesn't work.
$ rstudio --no-sandbox
related to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1944468
Download the 64bit version and reinstall it.
The same for Linux
FOR LINUX: this happens to me on cloud instances. A solution is forcing software rendering of RStudio. You need to start RStudio, get to the black screen, close Rstudio black screen, do my solution below in the terminal with Rstudio closed, then start Rstudio again.
In terminal:
sudo nano ~/.config/RStudio/desktop.ini
APPEND THE FOLLWING TO [General] section (leave whatever is there and add the line below):
[General]
desktop.renderingEngine=software
Again this is for Linux, but there may be a similar issue in Windows and you may be able to force software rendering.
Press down Ctrl key and then click on RStudio icon to launch. A dialog box asks you about the R version. Choose the one that actually exists (you might see an R version which does not exist; confusing RStudio)
For Windows10 64bit.
After following the hold Ctrl and clicking RStudio icon.
Change the Rendering Engine: to Software.
This fixed the problem on my machine.

Resources