Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

5 votes
1 answers
2656 views
Java SDK on NixOS for IntelliJ
I have recently installed NixOS on my machine, for Java development I have added IntelliJ CE 14.1.5 and the Oracle JDK 8. However IntelliJ does not automatically recognize the path to the Java SDK readlink -f $(which java) /nix/store/...-oraclejdk-8u60/bin/java when selecting /bin/ in the "Select Ho...
I have recently installed NixOS on my machine, for Java development I have added IntelliJ CE 14.1.5 and the Oracle JDK 8. However IntelliJ does not automatically recognize the path to the Java SDK readlink -f $(which java) /nix/store/...-oraclejdk-8u60/bin/java when selecting /bin/ in the "Select Home Directory for JDK" it does not accept it. I have been searching around for some time now but I can't really find the right stuff to get it working. Any help is appreciated.
user138984 (51 rep)
Oct 17, 2015, 05:54 PM • Last activity: Jul 19, 2025, 10:04 AM
2 votes
1 answers
409 views
With bash, create a hyperlink that opens with phpstorm
I have: - a bash script running in terminal that gives me a list of files from my local computer - phpstorm properly configured, so that I can open a file in phpstorm by typing "phpstorm /path/to/file" in terminal Now I want the script to provide not only the list of filenames, but each filename sho...
I have: - a bash script running in terminal that gives me a list of files from my local computer - phpstorm properly configured, so that I can open a file in phpstorm by typing "phpstorm /path/to/file" in terminal Now I want the script to provide not only the list of filenames, but each filename should act as a link. Clicking on the link should have the same result as typing "phpstorm /path/to/file" in terminal. I checked this answer https://unix.stackexchange.com/questions/284476/terminal-create-hyperlinks , but couldn't modify it to my needs. This doesn't work at all: echo -e '\e]8;;phpstorm /path/to/file\aLinktext\e]8;;\a' This does something, but opens the file in gedit: echo -e '\e]8;;file:///path/to/file\aLinktext\e]8;;\a' I looks like I "only" have to switch the preferred editor to phpstorm... But how would I do that? Any ideas?
yogi (21 rep)
Dec 10, 2021, 02:48 PM • Last activity: Feb 5, 2025, 03:56 PM
3 votes
4 answers
13147 views
Intellij IDEA: Unrecognized VM option 'UseConcMarkSweepGC'
I installed Intellij IDEA from on my arch using `yay`. I worked fine but recently it started doing this: ```bash john@arch-thinkpad ~ [1]> intellij-idea-ultimate-edition Unrecognized VM option 'UseConcMarkSweepGC' Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurre...
I installed Intellij IDEA from on my arch using yay. I worked fine but recently it started doing this:
john@arch-thinkpad ~ > intellij-idea-ultimate-edition
Unrecognized VM option 'UseConcMarkSweepGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
How can I fix this problem so I can run intellij IDEA normaly like in good old times ? Thank you for help
Jan Černý (1723 rep)
Jan 12, 2021, 01:43 PM • Last activity: Mar 24, 2024, 11:57 AM
0 votes
1 answers
254 views
Grey box when running JetBrains Rider on Arch Linux
I am trying to get JetBrains Rider running on my Arch Linux laptop. I already have the suggested fix: ``` ~ ❯ echo $_JAVA_AWT_WM_NONREPARENTING 1 ~ ❯ ``` However, when I try to run Rider, I still get this: [![grey box][1]][1] My desktop environment is bspwm with polybar. My `.desktop` file for rofi...
I am trying to get JetBrains Rider running on my Arch Linux laptop. I already have the suggested fix:
~ ❯ echo $_JAVA_AWT_WM_NONREPARENTING
1
~ ❯
However, when I try to run Rider, I still get this: grey box My desktop environment is bspwm with polybar. My .desktop file for rofi launcher looks like this:
[Desktop Entry]
Name=Jetbrains Rider
Exec=/home/j/programs/JetBrains\ Rider-2021.3.3/bin/rider.sh
Terminal=false
Type=Application
And I am using the Java OpenJDK:
~ ❯ archlinux-java status
Available Java environments:
  java-11-openjdk (default)
~ ❯
Why is this happening and how can I fix it? Any help would be greatly appreciated.
J86 (413 rep)
Mar 10, 2022, 10:47 PM • Last activity: May 4, 2022, 06:59 AM
0 votes
1 answers
170 views
How to fix improperly uninstalled software on Raspberry Pi (Buster)
First and foremost, I'm trying to purge an improperly **uninstalled** version of Intellij-Idea on Raspberry Pi and reinstall. I installed IntelliJ-Idea on the Raspberry Pi using the below page as a guide: [Install Intellij-Idea on Raspberry Pi][1] After progressive success decreasing CPU/memory usag...
First and foremost, I'm trying to purge an improperly **uninstalled** version of Intellij-Idea on Raspberry Pi and reinstall. I installed IntelliJ-Idea on the Raspberry Pi using the below page as a guide: Install Intellij-Idea on Raspberry Pi After progressive success decreasing CPU/memory usage, and countless lock-up and kill the jvm loops, I ran into a wall with continuing "OutOfMemory" exceptions after the application launched fine and ran for a few minutes. (It indexes nearly the entire JVM, maven, my home folder, etc.) Yes, I increased JVM memory allocation (-Xms/-Xmx), increased swap space, etc. Thinking the root of my problem might be a caching issue, I tried to remove a few folders I thought were cache directories, but actually wiped out the main install image and all subdirectories instead. So now I'm trying to force uninstall/delete so I can re-install. I've tried: 1. Uninstalling from Add/Remove Software (Only supporting packages list as "installed". The main install doesn't list at all) 2. sudo apt-get purge/remove intelliJ* (see below output) 3. sudo apt purge/remove intelliJ* (ditto) 4. Got frustrated and manually deleted all the other "IdeaIC2021.2" and related folders (after backing up key config files) The start menu link won't work now of course, but I can't get pi to truly purge details and let me reinstall. Bizarre half-installed state messages: ~~~ pi@raspberrypi:~ $ sudo apt purge intelliJ* Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'libjdom2-intellij-java-doc' for regex 'intelliJ*' Note, selecting 'libintellij-annotations-java-doc' for regex 'intelliJ*' Note, selecting 'libjdom2-intellij-java' for regex 'intelliJ*' Note, selecting 'libintellij-annotations-java' for regex 'intelliJ*' Package 'libintellij-annotations-java' is not installed, so not removed Package 'libintellij-annotations-java-doc' is not installed, so not removed Package 'libjdom2-intellij-java' is not installed, so not removed Package 'libjdom2-intellij-java-doc' is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ~~~ Yes, I'm an idiot for deleting the wrong folder and then digging the hole deeper, but at this point I just want to overlay with a new install anyway. What's the correct way forward? Manual download and install because pi's registration details are horked? A set of sudo apt-get install commands?
Vystrax (1 rep)
Nov 22, 2021, 09:36 PM • Last activity: Nov 23, 2021, 02:30 PM
0 votes
0 answers
44 views
two java sdks in one system
I installed java using the `sudo apt install openjdk-17-headless-jdk` but for some reason my intellij IDEA community edition couldn't find the jdk when I tried to create a maven project. Since it was an emergency I selected the download jdk option and downloaded the `Oracle open jdk-17.0.1` version....
I installed java using the sudo apt install openjdk-17-headless-jdk but for some reason my intellij IDEA community edition couldn't find the jdk when I tried to create a maven project. Since it was an emergency I selected the download jdk option and downloaded the Oracle open jdk-17.0.1 version. I would like to know if this would cause any issues in the future or not. Since I selected 17.0.1 from the intellij options so I already know the version. But when I typed java --version it gave me: ➜ ~ java --version openjdk 17 2021-09-14 OpenJDK Runtime Environment (build 17+35-Ubuntu-1) OpenJDK 64-Bit Server VM (build 17+35-Ubuntu-1, mixed mode, sharing) **Note:** Even before installing Intellij I checked if java installed correctly. It was working perfectly fine. I also tried: ➜ ~ whereis java java: /usr/bin/java /usr/share/java /usr/share/man/man1/java.1.gz But unfortunately when I tried to locate the jdk in intellij and navigated to the /usr/bin I only saw a lots of x11 marked folder. enter image description here Using terminal when I navigated to /usr/bin I couldn't find the /java folder. **N.B:** I'm logged in as root if that information is needed I would like to know if there is anything I can do to check the different sdks and what can I do to clear up the situation.
user458847
Nov 14, 2021, 09:35 PM
6 votes
2 answers
3689 views
IntelliJ IDEA — Please consider switching to the bundled Java runtime that is better suited for IDE
IntelliJ IDEA shows this message on every startup. [![image][1]][1] How can I correct this warning on IntelliJ IDEA? Edit: I installed IntelliJ IDEA ultimate edition by yay on arch linux. [1]: https://i.sstatic.net/dZiZs.png
IntelliJ IDEA shows this message on every startup. image How can I correct this warning on IntelliJ IDEA? Edit: I installed IntelliJ IDEA ultimate edition by yay on arch linux.
Jan Černý (1723 rep)
Dec 8, 2020, 02:59 PM • Last activity: Oct 24, 2021, 09:12 PM
16 votes
3 answers
7387 views
Blank Android Studio window in DWM
I recently installed Android Studio on arch linux with DWM. But the initial dialog window, which prompts for starting a new project is blank. The links in this windows work though. I can start a new project by blindly clicking where the new project button is supposed to be. There is no problem with...
I recently installed Android Studio on arch linux with DWM. But the initial dialog window, which prompts for starting a new project is blank. The links in this windows work though. I can start a new project by blindly clicking where the new project button is supposed to be. There is no problem with the new project wizard, but the editor window which loads up is blank as well. However, if I start the X server with android studio as the client, It works correctly. So it's an issue with DWM. What could be the reason? Edit: Intellij has the same problem with dwm.
saga (1411 rep)
Jun 2, 2017, 02:26 PM • Last activity: May 3, 2021, 09:46 AM
0 votes
1 answers
561 views
Cannot open android-studio
I installed `android-studio` few days back along with `openjdk`. And it did work fine until yesterday. But now I cannot open it. The desktop icon is dead and when I run `./studio.sh` it shows ``` JDK Required: Cannot load a JDK class: com.sun.jdi.Field. Please ensure you run the IDE on JDK rather th...
I installed android-studio few days back along with openjdk. And it did work fine until yesterday. But now I cannot open it. The desktop icon is dead and when I run ./studio.sh it shows
JDK Required: Cannot load a JDK class: com.sun.jdi.Field.
Please ensure you run the IDE on JDK rather than JRE.
But openjdk is still there. I am runnning on fedora32. android-studio is in opt/ and openjdk in var/lib/
Rio_Nyx (31 rep)
Aug 4, 2020, 07:23 PM • Last activity: Jan 15, 2021, 08:23 AM
0 votes
1 answers
881 views
Ubuntu: XFCE: Is there a workaround for swiching to IntelliJ IDEA with wmctrl after IDEA removed "IntelliJ" from the `window title`?
I have shortcut keys setup that take the focus to a certain application in my Xubuntu setup. So e.g.: START+1 takes me to my main web browser window START+2 takes me to my main Sublime window START+3 used to take me to IntelliJ IDEA using this command set in `XFCE settings editor` under `xfce4-keybo...
I have shortcut keys setup that take the focus to a certain application in my Xubuntu setup. So e.g.: START+1 takes me to my main web browser window START+2 takes me to my main Sublime window START+3 used to take me to IntelliJ IDEA using this command set in XFCE settings editor under xfce4-keyboard-shortcuts:
-c 'wmctrl -a "IntelliJ IDEA" || /opt/idea-IC-202.7660.26/bin/idea.sh'
I haven't used IDEA for some time and now after upgrading I see that there is no "IntelliJ IDEA" in the title bar of the application any more - just the name of the project and optionally full path.. So my setup is broken.. Is there a way to fix it? I am not that tough in Linux yet, but I was thinking if searching it in the process tree would help find that project name and path that in turn could be piped to wmctrl or is that even possible? Food for thought. Mike
Michał Lepczyński (121 rep)
Oct 16, 2020, 11:51 AM • Last activity: Oct 16, 2020, 02:00 PM
1 votes
0 answers
203 views
tmux/bash start tmux only if normal shell (intellij)
I have a little problem, I let tmux start in the `.bashrc` but I only want it to start, if the shell is a normal shell inside my terminal emulator. Now most IDEs have a terminal tab where they launch a shell (in which in my case now) tmux is started. If I close the IDE, tmux is not ended properly, s...
I have a little problem, I let tmux start in the .bashrc but I only want it to start, if the shell is a normal shell inside my terminal emulator. Now most IDEs have a terminal tab where they launch a shell (in which in my case now) tmux is started. If I close the IDE, tmux is not ended properly, so the session is still running. This leads to detatched tmux sessions I do not want. Is there any way, to prevent tmux from being launched in that ocasions (e.g. a environment variable, only set if the shell is launched by a terminal emulator or some way to properly end the session in the IDE (in my case intellij) when closing the IDE)?
atticus (129 rep)
May 20, 2020, 09:58 AM
0 votes
0 answers
391 views
Font issues with text editors on Arch Linux with i3
I've been using Arch for a while now, and had problems with fonts in the past, mainly with firefox and chrome, but I was able to manage those and they look pretty normal. I've been an avid vim user for the past years, so I've never really used any kind of IDE or software for editing that wasn't on t...
I've been using Arch for a while now, and had problems with fonts in the past, mainly with firefox and chrome, but I was able to manage those and they look pretty normal. I've been an avid vim user for the past years, so I've never really used any kind of IDE or software for editing that wasn't on the terminal. The terminal fonts look great, I am using Termite and they render properly. The issue started to bother me when I started to use Intellij and DejaVu Mono look really off for some reason, I managed to change it to ubuntu and it was usable, but still weird. I thought it was a problem with the IDE, but then I am starting to have the same weird rendering issue with Emacs. The problem is, I don't know much about fonts, and I don't where to look for to fix this issues or what they are really (yes I did read the wiki, but no luck). I don't even know if the font are weird or if this is just normal behaviour. Anyway enough blah blah blah. Here are some pictures: Emacs enter image description here
Clemens Schrage (1 rep)
May 13, 2020, 04:57 PM
16 votes
2 answers
24377 views
Ubuntu / Unity attach script to Launcher
I recently downloaded IntelliJ IDEA and start the app by running `. idea.sh`. The app appears in the launcher while I'm running it, but for some reason when I right click on it I don't get a 'Lock to Launcher' option like I do with other apps. How do I attach it to the launcher? Is it because I'm ru...
I recently downloaded IntelliJ IDEA and start the app by running . idea.sh. The app appears in the launcher while I'm running it, but for some reason when I right click on it I don't get a 'Lock to Launcher' option like I do with other apps. How do I attach it to the launcher? Is it because I'm running a script and not an executable directly that disables that option?
Trindaz (627 rep)
Jun 26, 2013, 11:49 PM • Last activity: Apr 13, 2020, 01:49 PM
0 votes
1 answers
252 views
Data partition and IntelliJ IDEA external file sync speed
I recently reconfigured the filesystem on my laptop so I can share my data with a second Linux. The Linux used in this matter is Fedora 28, 64-bit. My disks are now laid out like so: `/dev/sda`: - `/dev/sda1` - efi partition - `/dev/sda2` - swap - `/dev/sda3` - data partition mounted via `/etc/fstab...
I recently reconfigured the filesystem on my laptop so I can share my data with a second Linux. The Linux used in this matter is Fedora 28, 64-bit. My disks are now laid out like so: /dev/sda: - /dev/sda1 - efi partition - /dev/sda2 - swap - /dev/sda3 - data partition mounted via /etc/fstab at /media/data_partition /dev/sdb: - /dev/sdb1 - root partition mounted at / - /dev/sdb2 - var partition mounted at /var - /dev/sdb3 - home partition mounted at /home The data partition now contains the contents of /opt, everything under $HOME/Documents and some miscellaneous stuff. They are on the partition with the some directory names (i.e. opt/, Documents/) At boot, after the partition is mounted, I have a bindfs mount that mounts /media/data_partition/opt to /opt, and on login in my $HOME/.bash_profile, I bindfs mount /media/data_partition/Documents to $HOME/Documents. When I boot up IntelliJ IDEA, it shows the following: enter image description here Currently I have open a project "located" at $HOME/Documents/University/Class/project_repo3. $HOME/Documents is the destination for a bind mount from /media/data_partition/Documents. Also, IntelliJ IDEA's installation is located in /media/data_partition/opt. This location is the source for a bind mount to /opt The mount seems to be IntelliJ's problem, but I have no idea what the actual issue is, nor which bind mount is the problem. I found these links: - https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000013130-External-file-changes-sync-may-be-slow - https://youtrack.jetbrains.com/issue/IDEA-192665 - https://blog.jetbrains.com/idea/2010/04/native-file-system-watcher-for-linux/ The last link explains their new usage of inotify and would seem to explain the problem and the solution, but I'm not 100%. I don't wanna change anything, and regret it later. The questions: - Is the solution proposed in the last link safe and correct? - What is inotify (I read part of the manpage, but would appreciate additional explanation)? - What are inotify watchers, and inotify instances?
Ungeheuer (333 rep)
Apr 2, 2019, 06:01 PM • Last activity: Sep 1, 2019, 03:07 PM
1 votes
0 answers
77 views
I am trying to setup Grails 4 in IntelliJ Ultimate in Ubuntu 19.04, but I don't know how. These are things I have completed/tried:
I use SDK manager to install Grails using this command: `sdk install grails` And I launched IntelliJ, selected Grails for the new project. Selected **Java version 11.0.4** as Project SDK Selected `/home/pranav/.sdkman/candidates/grails/4.0.0` as Grails SDK Home. Now I know know what to do in Run/Deb...
I use SDK manager to install Grails using this command: sdk install grails And I launched IntelliJ, selected Grails for the new project. Selected **Java version 11.0.4** as Project SDK Selected /home/pranav/.sdkman/candidates/grails/4.0.0 as Grails SDK Home. Now I know know what to do in Run/Debug Configuration section: problem 2 Also, there are two messages in the Build: > Sync section: problem 1 1.Run Build error logs 2.Configure Build error logs
Pranav (139 rep)
Aug 18, 2019, 05:30 AM • Last activity: Aug 18, 2019, 05:41 AM
1 votes
2 answers
2158 views
Gnome 3.32.2 deadly freezes on ubuntu 19.04 when working in PHPStorm
I don't know exactly what the problem is, in `phpstorm`, or `gnome-shell`, because writing here. `gnome-shell` freezes, when I working in PHPStorm. But freeze staring after click on any buttons in phpstorm's popup windows(creating folder, checking todo list, review.., etc), like this: [![phpstorm po...
I don't know exactly what the problem is, in phpstorm, or gnome-shell, because writing here. gnome-shell freezes, when I working in PHPStorm. But freeze staring after click on any buttons in phpstorm's popup windows(creating folder, checking todo list, review.., etc), like this: phpstorm popup window mouse can moving but nothing clickable. gnome-shell process loads one logical kernel 100% and don't unfreezes. after this I kill gnome-shell process (Ctrl+Alt+Backspace or through virtual terminal Ctrl+Alt+F3), login and run programs again.. Initially, after upgrading to 19.04 this problem was not, it appeared after 2-3 months. Now, this problem happens only with working in phpstorm I have: - GPU: GeForce GTX 1050 Ti - OS: Ubuntu 19.04 disco - Kernel: x86_64 Linux 5.0.0-22-generic - GNOME Shell 3.32.2 - PHPStorm 2019.2(2019.1) I tried: - set default gnome theme - disable all user gnome-extensions - disable all plugins on phpstorm - set default theme on phpstorm - reinstall gnome-shell like:
apt-get install --reinstall gnome-shell
- reinstall phpstorm - change nvidia drivers(390 proprietary, 430 open source, xorg, 418 proprietary)
Eugene Kramorev (11 rep)
Jul 30, 2019, 10:18 AM • Last activity: Aug 5, 2019, 07:54 PM
1 votes
0 answers
40 views
IntelliJ maximizes only into background
If I switch focus to IntelliJ (or other derived products like PhpStorm), the window maximizes directly in background. I have to minimize other windows in front of it before I can use it. Other applications maximize directly to front on clicking their taskbar item. I'm running Linux Mint 19.1 with Ma...
If I switch focus to IntelliJ (or other derived products like PhpStorm), the window maximizes directly in background. I have to minimize other windows in front of it before I can use it. Other applications maximize directly to front on clicking their taskbar item. I'm running Linux Mint 19.1 with Mate Desktop with "Metacity + Compositing" as window manager. **Edit**: User shaax mentioned, it also happens in Fedora with Plasma Desktop.
DBX12 (207 rep)
Jul 1, 2019, 11:06 AM • Last activity: Jul 2, 2019, 10:50 AM
0 votes
1 answers
1150 views
I deleted my files with git rm, but i also commited them, how to get them back?
I ran git rm on some files thinking that they will be removed from the bitbucket repository, and i also commited them, after that i checked that they disapeared from the bitbucket repo, but they were deleted from my computer too. here are the commands that I used : $ git rm -r -f src rm 'src/main/ja...
I ran git rm on some files thinking that they will be removed from the bitbucket repository, and i also commited them, after that i checked that they disapeared from the bitbucket repo, but they were deleted from my computer too. here are the commands that I used : $ git rm -r -f src rm 'src/main/java/Controller.java' rm 'src/main/java/DTO.java' rm 'src/main/java/Scheduler.java' rm 'src/main/java/Server.java' rm 'src/main/java/SimulationManager.java' rm 'src/main/java/SimulatorFrame.java' rm 'src/main/java/Task.java' $ git rm -f -r target rm 'target/classes/Controller$1.class' rm 'target/classes/Controller$startSimulationListener.class' rm 'target/classes/Controller.class' rm 'target/classes/DTO.class' rm 'target/classes/Scheduler.class' rm 'target/classes/Server.class' rm 'target/classes/SimulationManager.class' rm 'target/classes/SimulatorFrame.class' rm 'target/classes/Task.class' $ git rm -f pom.xml rm 'pom.xml' $ git rm -f pt2019_30222_tomoiaga_andreistefan_assignment_2.iml fatal: pathspec 'pt2019_30222_tomoiaga_andreistefan_assignment_2.iml' did not match any files $ git commit -m "delete commit" [master a6c5d68] delete commit 22 files changed, 1352 deletions(-) delete mode 100644 .idea/.name delete mode 100644 .idea/compiler.xml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/vcs.xml delete mode 100644 .idea/workspace.xml delete mode 100644 pom.xml delete mode 100644 src/main/java/Controller.java delete mode 100644 src/main/java/DTO.java delete mode 100644 src/main/java/Scheduler.java delete mode 100644 src/main/java/Server.java delete mode 100644 src/main/java/SimulationManager.java delete mode 100644 src/main/java/SimulatorFrame.java delete mode 100644 src/main/java/Task.java delete mode 100644 target/classes/Controller$1.class delete mode 100644 target/classes/Controller$startSimulationListener.class delete mode 100644 target/classes/Controller.class delete mode 100644 target/classes/DTO.class delete mode 100644 target/classes/Scheduler.class delete mode 100644 target/classes/Server.class delete mode 100644 target/classes/SimulationManager.class delete mode 100644 target/classes/SimulatorFrame.class delete mode 100644 target/classes/Task.class $ git push origin master Enumerating objects: 3, done. Counting objects: 100% (3/3), done. Delta compression using up to 8 threads Compressing objects: 100% (2/2), done. Writing objects: 100% (2/2), 227 bytes | 227.00 KiB/s, done. Total 2 (delta 1), reused 0 (delta 0) To https://bitbucket.org/andreistefantomoiaga/pt2019_30222_tomoiaga_andreistefan_assignment_2.git 5ca3e67..a6c5d68 master -> master $ git rm -f pt2019_30222_tomoiaga_andreistefan_assignment_2.iml rm 'pt2019_30222_tomoiaga_andreistefan_assignment_2.iml' $ git commit -m "delete commit" [master 16ca832] delete commit 1 file changed, 2 deletions(-) delete mode 100644 pt2019_30222_tomoiaga_andreistefan_assignment_2.iml $ git rm -f pt2019_30222_tomoiaga_andreistefan_assignment_2.iml fatal: pathspec 'pt2019_30222_tomoiaga_andreistefan_assignment_2.iml' did not match any files $ git push origin master Enumerating objects: 3, done. Counting objects: 100% (3/3), done. Delta compression using up to 8 threads Compressing objects: 100% (1/1), done. Writing objects: 100% (2/2), 238 bytes | 238.00 KiB/s, done. Total 2 (delta 0), reused 0 (delta 0) To https://bitbucket.org/andreistefantomoiaga/pt2019_30222_tomoiaga_andreistefan_assignment_2.git a6c5d68..16ca832 master -> master $ git reset HEAD \* Unstaged changes after reset: M Documentatie/Documentatie.docx $ git reset --hard HEAD is now at 16ca832 delete commit $ git rm usage: git rm [] [--] ... -n, --dry-run dry run -q, --quiet do not list removed files --cached only remove from the index -f, --force override the up-to-date check -r allow recursive removal --ignore-unmatch exit with a zero status even if nothing matched $ git reset $ git reset HEAD I need to restore my project, if it is possible, also I thought that i could restore it from Intellij but I have no idea how. I want to restore expecially the src folder
user347067 (1 rep)
Apr 13, 2019, 04:52 PM • Last activity: Apr 13, 2019, 05:06 PM
3 votes
1 answers
490 views
Why "source" doesn't work in a script run as a Gnome's Desktop Entry?
I have a desktop entry pointing to `IntelliJ IDEA` IDE. I wanted to add `. ~/.bashrc` at the beginning of the `idea.sh` script that is being executed by Desktop Entry. The point of that is that IDEA wasn't picking up my modified `SSH_AUTH_SOCK` env variable, that was defined there. So I added a very...
I have a desktop entry pointing to IntelliJ IDEA IDE. I wanted to add . ~/.bashrc at the beginning of the idea.sh script that is being executed by Desktop Entry. The point of that is that IDEA wasn't picking up my modified SSH_AUTH_SOCK env variable, that was defined there. So I added a very simple . ~/.bashrc at the beginning of idea.sh, to discover that the sourced code is not being run. Now some details. In ~/.bashrc I have this: # Set GPG TTY export GPG_TTY=$(tty) unset SSH_AGENT_PID if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" fi # Refresh gpg-agent tty in case user switches into an X session gpg-connect-agent updatestartuptty /bye >/dev/null I wanted this to run at the beginning of idea.sh, but . ~/.bashrc doesn't work, HOWEVER if I put this exact code directly in the idea.sh, in the same place, it will work just fine. Sourcing also works if I run idea.sh directly in my terminal. It doesn't work only if I run it by using Desktop Entry. The desktop entry in question is /home/luken/.local/share/applications/jetbrains-idea.desktop: [Desktop Entry] Version=1.0 Type=Application Name=IntelliJ IDEA Ultimate Edition Icon=/home/luken/Programy/idea-IU-182.4505.22/bin/idea.svg Exec="/home/luken/Programy/idea-IU-182.4505.22/bin/idea.sh" %f Comment=Capable and Ergonomic IDE for JVM Categories=Development;IDE; Terminal=false StartupWMClass=jetbrains-idea So to sum this up: # Running idea.sh in terminal: #!/bin/sh # # --------------------------------------------------------------------- # IntelliJ IDEA startup script. # --------------------------------------------------------------------- # . ~/.bashrc echo "${SSH_AUTH_SOCK}" > ~/auth.txt # ... Content of auth.txt: /run/user/1000/gnupg/S.gpg-agent.ssh **CORRECT**. # Running idea.shby using Desktop Entry shortcut: #!/bin/sh # # --------------------------------------------------------------------- # IntelliJ IDEA startup script. # --------------------------------------------------------------------- # . ~/.bashrc echo "${SSH_AUTH_SOCK}" > ~/auth.txt # ... Content of auth.txt: /run/user/1000/keyring/ssh **INCORRECT**. #!/bin/sh # # --------------------------------------------------------------------- # IntelliJ IDEA startup script. # --------------------------------------------------------------------- # # Set GPG TTY export GPG_TTY=$(tty) unset SSH_AGENT_PID if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" fi # Refresh gpg-agent tty in case user switches into an X session gpg-connect-agent updatestartuptty /bye >/dev/null echo "${SSH_AUTH_SOCK}" > ~/auth.txt # ... Content of auth.txt: /run/user/1000/gnupg/S.gpg-agent.ssh **CORRECT**. Anyone have any idea what is going on here or how to debug this?
Łukasz Zaroda (7371 rep)
Jan 5, 2019, 01:20 PM • Last activity: Jan 5, 2019, 04:07 PM
3 votes
2 answers
7419 views
How to safely close Intellij from command line?
I'm using Intellij on my Rhel machine. I often use remote login to work from home. But since Intellij allows only one instance at a time, it needs to be killed to start a new instance remotely. However, this is not a clean close & many times I end up losing some recent changes. So, my question is -...
I'm using Intellij on my Rhel machine. I often use remote login to work from home. But since Intellij allows only one instance at a time, it needs to be killed to start a new instance remotely. However, this is not a clean close & many times I end up losing some recent changes. So, my question is - Is there a way to cleanly kill the currently running Intellij from command line?
mindreader (357 rep)
Jun 26, 2015, 06:33 AM • Last activity: Sep 15, 2018, 12:47 PM
Showing page 1 of 20 total questions