In JetBrains IDE new terminal opens in $HOME folder instead of project root - intellij-idea

Happened on MacOS Monterey today, but it used to work correctly.
Just checked on Ubuntu machine: new terminal opens in Project root.
On my mac though, new terminal tab opens in /Users/<UserName> folder.
I think it might be connected to zsh settings, but not sure where to dig.
To be clear, here you can see my project settings:
Clearly should open the project root, but opens $HOME folder instead.
I'll be glad to hear any suggestions...

So, i initially was right - it's not a problem of IDE. It's somewhere in zsh settings.
I reinstalled zsh, oh-my-zsh, all the plugins, reinstalled volta (node.js version management) and then found out that the initial behaviour of opening project path was working again.
I guess, problem is solved...

Related

Can't find previously downloaded files in WSL

I'm not very experienced in *nix operating systems and I'm trying to set up an embedded programming environment in WSL, but I'm getting hung up on basic issues. Last time I was working on this project I had downloaded some files (cargo and rustup, but that shouldn't matter), and I confirmed that they were there and working by getting the version number with -V.
After restarting my computer WSL doesn't recognize rustup or cargo as commands, and the folders don't show up with ls, even though they show up when I check for them in Windows Explorer.
The directory I've been working out of is %LOCALAPPDATA%\Packages\TheDebianProject.DebianGNULinux_76v4gfsz19hv4\LocalState\rootfs\home*user* which I'm pretty sure is the default. I’ve verified this by creating a .txt in WSL and finding it with Windows Explorer
Working on Windows 10 64-bit. I chose Debian for arbitrary reasons/ open to switching.
I’m not too worried about the files themselves, I just want to be able to avoid this in the future.
Firstly since you are new to WSL please be aware that the recommendations are to not under any situations edit or modify any Linux files inside of your %LOCALAPPDATA% folder using Windows apps or tools which includes moving files using file explorer. See this blog post from Microsoft https://devblogs.microsoft.com/commandline/do-not-change-linux-files-using-windows-apps-and-tools/ If you do you can see corruptions missing files and crashes.
I have no experience with cargo or rust but it sounds like you didnt update your .bashrc (start up script) with details needed to add things to the environment on start up.
There are a few things you can do
Use the history command to look back at what you did when you installed things
Use sudo find / -name rust to look for the executable in your system
When using ls remember that files/folders that begin with a dot are hidden so you need to use ls -al to see them in the terminal
I assume you followed this guide for installation (or similar). If you did not and are still having issues please detail how you installed things.

Xcode 8 Beta 4 - Comment Shortcut Disabled

I just updated to Xcode 8 Beta 4 and the shortcut cmd + / to comment a line is not working..
In the dropdown menu it's disabled:
There's a way to activate it again?
I fixed it following the steps here: https://twitter.com/kolpanic/status/763323546814844928
In Terminal: sudo /usr/libexec/xpccachectl
Reboot your system.
If Cmd-/ still doesn't work in Xcode 8 on an OS X 10.11 (and apparently on a macOS Sierra - thanks to #DanBlakemore), and sudo /usr/libexec/xpccachectl and a reboot didn't help, try the following.
Close Xcode.
Open /Applications in Finder, and rename Xcode.app to Xcode2.app (or any other name).
Rename it back to Xcode.app, and relaunch.
It should work now.
The problem seems to be that for whatever reason the system "uninstalls" Xcode extensions at some point, and won't "install" them again. This can be checked by opening Console, and grepping for INSTALL. If you have INSTALLED/UNINSTALLED for com.apple.dt.XcodeBuiltInExtensions, it won't work if UNINSTALLED was the last action on it, and will work it if was INSTALLED.
Figured this out when debugging an Xcode 8 extension.
The script mentioned above didn't work right away for me. I had Xcode 8 and 8.1 GM installed and was working with both of them off and on. I ran the script in the terminal, restarted my computer, opened Xcode and it still didn't work. So then I created a new directory in Applications and moved the GM into that directory. That seemed to fix it.
TL;DR
If you have multiple versions of Xcode installed:
Run in terminal: sudo /usr/libexec/xpccachectl
Restart your computer
Create a new directory in Applications
Move the other version into that directory
Restart Xcode and enjoy!
As explained there, here's a solution that doesn't require a reboot:
Close Xcode
In the Application folder, rename Xcode.app (or similar) to Xcode2.app. You might need to type in your password.
Open Xcode, then close it.
Rename Xcode2.app back to what it was before.
(Optional) Spend 5 minutes wondering why this worked.
Just update to Xcode8 release, then open Xcode8 and restart Mac.
https://developer.apple.com/library/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
To use the Editor's Comment/Uncomment Selection and Add Documentation commands—as well as other installed Xcode Extensions—on OS X version 10.11, launch Xcode and install additional system components, then restart your Mac. (26106213)
Go to App Store, check for system update(iTunes, MacOSX). Update all of them.
It should be fixed once its done.
I rebooted, now it is working.
Then when I started beta 4 it asked me to "install required components" a second time. Don't know if related or not.
I applied #junjie 's method
sudo /usr/libexec/xpccachectl
It works well on Xcode 8.2.1 (8C1002) only except for specific files.
Then, I found the reason.
/* Comment ...
//*/
This type of comment has made it inoperable.
After the line containing above comment type, "Comment Selection" didn't work.
Erase or change them.
xcode->preferences->key buildings-> filter, search comment
see if there are conflicts for key of "command + / ", if yes, delete others unless "Comment Selection"
enter image description here
This made it for me:
Goto System Preferences -> Keyboard -> Shortcuts -> App Shortcuts
Add a new shortcut like this:
Voila! It works for me!
As you can see the shortcut you choose will also end up besides this command in Editor menu in Xcode.
Before doing any of less or more complicated steps,
Try to quit and relaunch Xcode.
In my case, it has helped.
xcode->preferences->key buildings, or,
"command + ,", then search "comment selection"
change the key "command + /"

Using zsh, rvm, and iterm2 not reusing my current directory when opening new tab

I'm using rvm, zsh and iterm2 on development. When I'm going to the directory of my project using iterm2 and then open new tab why is it that my new tab always redirect me to the root directory? I change the preferences of my iterm2 to reuse previous tab directory.
iterm2 screenshot
I want to reuse my previous working directory when opening new tab.
Thanks
I just reinstalled my bash and zsh. First I followed this
http://vigodome.com/blog/2011/12/30/change-default-shell/
and reinstall zsh

How to uninstall intellij idea on ubuntu 13.10

I searched much on Google for how to uninstall intellij idea on Ubuntu 13.10 64-bit OS but i didn't find any solution. please any help for this issue
After trying and searching more, I found that it's very easy and simple. All you have to do to delete the whole Intellij is:
There is a hidden file called .IdeaIC13 in the home directory, it
contains two files. Just delete the file.
Delete the installation directory for Intellij, which is usually
located at opt/ directory or where you installed it previously.
On a later version this may work:
$ snap remove intellij-idea-community
Delete the installation directory
Delete the "config" and "system" configuration directories. These contain IntelliJ IDEA's caches, configuration and plugins
See support page, “Directories used by the IDE to store settings, caches, plugins and logs”, for the OS specific locations of these two directories.
The "config" and "system" directories are probably in your Home folder, but they are hidden and you have to press CTR + H to show them.
I tried all the above solutions, but not worked.
I followed these steps to uninstall Intellij Idea Permanently.
$ cd snap/
rm -r intellij-idea-community/
cd ~/.local/share/ and $ ls
Remove the JetBrains folder (i.e. rm -r JetBrains/ )
It worked for me.
Hope this will help someone.!
sudo snap remove intellij-idea-community
https://www.jetbrains.com/help/idea/uninstall.html
You can follow their official documentation, they've mentioned the proper way to Uninstall IntelliJ IDEA depends on the method you used to install it.
Uninstall using the Toolbox App
Uninstall a standalone instance
Windows
macOS
Linux
Uninstall silently on Windows
Uninstall the snap package on Linux
IntelliJ IDEA Ultimate
Community Edition

Cannot Install Squeak and Pharo Smalltalk on Mac OS X 10.9

I cannot manage to install Squeak and Pharo Smalltalk on Mac OS X 10.9.
as general a smalltalk system is composed of three elements; a VM, an image(if any changes to image then a changes file), and a sources file.
on squeak page
I have downloaded all in one linked file, but it does to include an .image or .sources. it includes a .app. on the page this is mentioned to be the VM on mac, and it is mentioned to include all files one require. anyway double clicking does not launch smalltalk.
on pharo page
similar promise but does not launch again. it says download that file it includes everything necessary and just run the executable. but it includes .image .changes and .sources files in sub directory of /Pharo2.0.app/Contents/Resources.
Am I doing something wrong?
UPDATE:
for squeak I have also found the .image .change and .sources files in some sub directory of the all-in-one. Should i, both for pharo and squeak, move these files to the same directory with the .app file.
UPDATE:
i have tried so. no change.
UPDATE:
because it is not signed upon first launch i modify settings to launch it authorizing as admin user one time. no problem with that.
The first time you run the Squeak all-in-one, you need to right-click the app and choose "open". Then you will get a dialog that let's you run it. If you just double-click you get the same warning dialog, but without the option to run it.
This is because the Squeak app is not signed with an Apple developer key.
You also can to change the run permission in System Preferences (Security Preferences), from "Map App Store" to "Anywhere".
The problem emerged from the fact that the application I had downloaded from Squeak or Pharo websites were not executable in my computer.
Issuing a change mod add executable command from terminal solves the problem for each one.
chmod +x /path/to/smalltalk/squeak/or/pharo/apps