Coder Social home page Coder Social logo

Comments (16)

alex1701c avatar alex1701c commented on June 15, 2024 1

That is weird, I will investigate a bit more during the weekend and maybe add more logs to help triage the issue

from jetbrainsrunner.

alex1701c avatar alex1701c commented on June 15, 2024 1

That is good to know! Also good that I made the logs a bit more extensive/clear so that we can tangle potential issues easier.

from jetbrainsrunner.

alex1701c avatar alex1701c commented on June 15, 2024

The snap version works fine for me (KDE Neon based on Ubuntu 22.04). Could you please attach the ~/.config/JetBrains/PyCharmCE2023.2/options/recentProjects.xml file?

from jetbrainsrunner.

nahoj avatar nahoj commented on June 15, 2024

Here it is. I removed a couple of private pieces of info but nothing crucial I believe.

recentProjects.xml.txt

from jetbrainsrunner.

alex1701c avatar alex1701c commented on June 15, 2024

When removing the check if the given project exists, KRunner shows projects with your given file.

Are you sure those files exist on disk?

from jetbrainsrunner.

nahoj avatar nahoj commented on June 15, 2024

Could there be a trick with $USER_HOME$? Otherwise yes, I'm sure, for instance:

% ls -al ~/perso/soft/moreutils
total 188K
...
drwxrwxr-x  8 jg jg  4096 sept.  3 15:15 .git
-rw-rw-r--  1 jg jg    44 aoรปt  21 19:36 .gitattributes
drwxrwxr-x  4 jg jg  4096 sept.  3 15:18 .idea
...

from jetbrainsrunner.

nahoj avatar nahoj commented on June 15, 2024

Remark: my ~/.config/JetBrains is a symlink to a directory located elsewhere. Could this be a problem?

from jetbrainsrunner.

alex1701c avatar alex1701c commented on June 15, 2024

user ~> ls -l ~/.config/JetBrains/PyCharmCE2023.2/options/recentProjects.xml
lrwxrwxrwx 1 user user 29 Sep 4 16:11 /home/user/.config/JetBrains/PyCharmCE2023.2/options/recentProjects.xml -> /home/user/recentProjects.xml

Even with a symlink, it works fine. But it might be worth a try to not symlink it on your system.

The USER_HOME variable is expanded by the plugin and should thus not be an issue

from jetbrainsrunner.

nahoj avatar nahoj commented on June 15, 2024

Yeah I tried putting the folder in place of the symlink and it didn't work.

from jetbrainsrunner.

alex1701c avatar alex1701c commented on June 15, 2024

Sorry, I overlooked you having responded. I am a bit confused by this not working, maybe try out disabling the check if the files exist.

src/jetbrains-api/JetbrainsApplication.h line 72:

bool checkIfProjectsExist = false; // for test purposes

from jetbrainsrunner.

nahoj avatar nahoj commented on June 15, 2024

Hey, I made the change and used install.sh, same result:

Application path map:
========== Find Available Config Folders ==========
AndroidStudio /home/jg/.config/Google/AndroidStudio2021.1
PyCharmCE /home/jg/.config/JetBrains/PyCharmCE2023.2
IdeaIC /home/jg/.config/JetBrains/IdeaIC2023.2
CLion /home/jg/.config/JetBrains/CLion2023.2
========== Filter Jetbrains Apps ==========

from jetbrainsrunner.

alex1701c avatar alex1701c commented on June 15, 2024

My neon Plasma5 setup is broken, but after a quick KF6/Qt6 port, everything still seems to work.

Question: Does Pycharm show up in your KDE launchers as expected? Does the file /var/lib/snapd/desktop/applications/pycharm-community_pycharm-community.desktop exist on your machine? If so, please attach it. According to the log, there were not apps found (meaning the empty application path map)

from jetbrainsrunner.

alex1701c avatar alex1701c commented on June 15, 2024

@nahoj Could you please respond to my last comment? That should help making this plugin more reliable :)

from jetbrainsrunner.

nahoj avatar nahoj commented on June 15, 2024

Hey, sorry for the delay. JetBrains apps don't appear in my KDE launchers. The .desktop file exists and works (launches PyCharm) though:

$ cat /var/lib/snapd/desktop/applications/pycharm-community_pycharm-community.desktop                                                            ๎‚ฒ โœ” ๎‚ณ took 4s ๎‚ณ system ๎˜—  ๎‚ณ at 14:34:52 
[Desktop Entry]
X-SnapInstanceName=pycharm-community
Version=1.0
Type=Application
Name=PyCharm Community Edition
Icon=/snap/pycharm-community/350/bin/pycharm.png
Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/pycharm-community_pycharm-community.desktop /snap/bin/pycharm-community %f
Comment=Python IDE for Professional Developers
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-pycharm-ce
StartupNotify=true

from jetbrainsrunner.

nahoj avatar nahoj commented on June 15, 2024

It works ๐ŸŽ‰

I fixed snap apps not showing in my launchers by adding emulate sh -c 'source /etc/profile' to /etc/zsh/zprofile (https://askubuntu.com/a/989485) which in turn adds /var/lib/snapd/desktop to XDG_DATA_DIRS on login, and now your plugin shows my projects. Thanks!

from jetbrainsrunner.

nahoj avatar nahoj commented on June 15, 2024

As I understand it, this issue would arise for anyone using zsh as a login shell on Ubuntu, if they didn't take the time to fix their XDG_DATA_DIRS / zprofile.

from jetbrainsrunner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.