Questions tagged [projectile]

Projectile is a project management package and framework that facilitates operations against the project as a whole.

55 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
0answers
1k views

Projectile only sees project related to current buffer, if the buffer belongs to a project

I have two projects opened in my Emacs. Both are git repos and have .projectile files in their directories. Relevant lines in my init.el (projectile-global-mode 1) (helm-mode) (setq projectile-...
5
votes
0answers
119 views

Sort ripgrep results based on proximity to current buffer

I use counsel-projectile-rg to search within the project I work on. But there is my sub-project inside this big repo that most of my development is in. Is there a way to sort ripgrep results based on ...
5
votes
0answers
879 views

projectile grep file filter

I'm trying to use helm-projectile-grep function on Windows 7, but it searches in every file, though in .projectile I excluded file types which I don't want to work with. Do I have to configure grep ...
5
votes
0answers
1k views

helm-projectile-ag : How can I refine the grep results further?

I have a newb question regarding the use of Helm in the context of Projectile. I'm using helm-projectile-ag to grep for strings in a large code base. The performance is excellent, but I'm needing to ...
4
votes
0answers
721 views

Projectile not remembering remote projects

I'm using spacemacs and regularly use Tramp (via /sshx:) to open files, once I've opened a file in Tramp I can use projectile without any problems. However, projectile doesn't remember these projects ...
3
votes
1answer
177 views

Nested git repositories that behave like one project with projectile

I am trying to understand how to use https://projectile.readthedocs.io/en/latest/projects/#customizing-project-root-files but it is not clear yet. My goal is to have nested git projects. Let's say I ...
3
votes
0answers
321 views

Helm-projectile doesn't ignore files

I'm using helm with projectile and trying to exclude various files from the output that are project specific (i.e with .projectile files, not globally variable). The problem is that it never works for ...
2
votes
0answers
161 views

Keep projectile and treemacs in sync

Since projectile and treemacs are independent project and treemacs-projectile is written as helper. However I fail to understand the concept of it. I want to see all my projectile projects be shows ...
2
votes
1answer
195 views

Helm/Projectile outside a project

I use the packages Helm and helm-projectile for navigating in Emacs. I ran into problems, when I use projectile-helm inside Helm, and I'm able to reproduce this with a empty Emacs init file. The ...
2
votes
0answers
101 views

Faster way to store an org link to an identifier in a projectile project?

I'm trying to come up with a faster workflow for storing org-file links to parts of a source code tree. I'm generally starting in my org file taking notes, doing a helm-ag to search for some function ...
2
votes
0answers
152 views

Display projectile root in spaceline mode line

I use spaceline configured in the following way; (use-package spaceline :ensure t) (use-package spaceline-config :ensure spaceline :config (spaceline-helm-mode 1) (spaceline-emacs-theme)) ...
2
votes
0answers
103 views

disable search in home folder with projectile

Sometimes I use dired to navigate in the home folder. If in that moment I press projectile-find-file, emacs will freeze and will take about 15 seconds to be ready to use projectile with the home ...
2
votes
0answers
166 views

How to find/grep in Python virtualenv with projectile/helm easier?

How I can customize helm/projectile behaviour to find files and grep in $VIRTUALENV dir easier? Or maybe I can write some function(s) to find/grep in virtualenv of current project?
2
votes
0answers
118 views

Restrict the ECB file tree to files known by projectile OR files not in my .gitignore?

As I am working more and more with these modern "compiles to Javascript" languages my ECB files view becomes more and more cluttered. Projectile seems to get things right out of the box by ignoring ...
2
votes
0answers
898 views

Helm not working on remote project (Tramp over SSH)

I'm working on a project that is kept on a shared server (server runs Ubuntu 14.04 LTS; my machine runs OS X 10.10.2). I access the server files via Tramp using a password-secured SSH connection. ...
2
votes
0answers
379 views

Emacs crashing on OSX, no crash log file

My Emacs started to crash a lot without modifying .emacs or installing anything new. I can replicate the steps (using Helm, Projectile) by this: helm-projectile then I enter a query quickly and hit ...
1
vote
0answers
24 views

how best to set the `projectile-regenerate-tags` command

I have a fortran project I'm working on and I cannot figure out the right way to use .dir-locals to set the projectile-tags-command here is my dir-locals.el file: ( (f90-mode (projectile-tags-...
1
vote
1answer
118 views

Projectile switch between opened projects

I often have to work with multiple related projects and switching between them can become hard. I use counsel-projectile and it really makes everything easier. To be clear, I am not talking about ...
1
vote
1answer
85 views

Searching a specific project sub-directory with projectile

I recently found Projectile and I am loving it. I really like the ivy/counsel integration as well. One thing is missing though: I am working on a huge project of hundreds of files. This is stored in ...
1
vote
0answers
46 views

Can I set a variable scoped to a perspective?

I have a large monorepo repository and open different parts of it in a persp-mode perspective. It would be nice if for all buffers owned by that perspective I could set for example projectile-project-...
1
vote
0answers
141 views

Restore Spacemacs project windows layouts

Opening a project I would like the windows restored as I left them. E.g. tests.py on the left and a terminal /home/projectdir/>$ on the right: |-----------+-----------| | tests.py | >$_ |...
1
vote
0answers
92 views

pop-to-buffer: Wrong type argument: window-valid-p, #<window 117>PNG warning: Interlace handling should be turned on when using png_read_image

I occasionally run into the following error when opening a new file with projectile: pop-to-buffer: Wrong type argument: window-valid-p, #<window 117>PNG warning: Interlace handling should be ...
1
vote
0answers
77 views

How to open a file in a vertical split after using helm-projectile-find-file?

After selecting a file to load with helm-projectile-find-file, how can one load the target file in a vertical buffer?
1
vote
0answers
341 views

Tools for refactoring c++ code

What tools do you use to refactor c++ code? For example, how do you rename a variable or function that is spread across files? If the problem isn't language specific, there are text-based tools that ...
1
vote
0answers
38 views

Is there a way to globally unignore a file in projectile?

I have a few files that are ignored in most of the .gitignore project files, like .env and local-values.yaml. Is there a way to not ignore them globally using projectile, so that I can find and open ...
1
vote
0answers
124 views

Open new frame when switching between projects in projectile

Regularly I am working in several projects at the same time, projectile has been great for helping me with all the mess, but now, I would like to open a different frame per project, i.e., If I switch ...
1
vote
0answers
419 views

How to automatically set default-directory to projectile-project-root?

emacs beginner here. I would like for the default-directory of any buffer that's part of a projectile project to be the project root. For example if I'm editing include/my_file.hpp and I do: :e src/...
1
vote
0answers
101 views

include hg subrepository in projectile

I am using projectile in a project with many externals (hg subrepositories). Each subrepository is treated as a separate project by Projectile. Is there any way to configure Projectile to ...
1
vote
0answers
174 views

Error in using “helm-projectile-find-file”

This is my config in init.el: (require 'helm-projectile) (projectile-global-mode) (setq projectile-completion-system 'helm) (helm-projectile-on) (setq projectile-indexing-method 'alien) (setq ...
1
vote
0answers
55 views

“stdin isn't a terminal” with helm-projectile?

Opening up helm-projectile-find-file keeps showing me this error: screenshot http://zc.d.pr/16fh0/1Ryb9GGB+ Anyone know how to get rid of this? Or what's causing it? Emacs config here: https://...
1
vote
0answers
37 views

Minimum length for ido-completing-read

I'm trying to write an ido-completing-read-powered backend for projectile-find-tag. However, for really big TAG files, this is ridiculously slow when the user starts typing because there are so many ...
1
vote
0answers
375 views

Projectile: how to exclude deep subdirectories by pattern?

Is it possible to exclude from a project all directories matching a pattern at other than the project root level? In my case, I want to exclude subdirectories (deeper than the project root level) with ...
0
votes
0answers
27 views

helm-ag (or equivalent) open selection in existing window?

If you run helm-ag (I typically do this with helm-projectile-ag, but I think it should be similar) and select a match, the file / buffer opens in the last used window. My question is this: If a you ...
0
votes
0answers
9 views

How to use projectile-replace only for specific wildcard such as Python?

From this answer, I am using projectile-replace to replace words within a folder. It works fine but it covers all the buffers. I was able to accomplish it it using find-dired: (defun my-find-files () ...
0
votes
0answers
23 views

How to get rvm to work with projectile-compile-project and shell-command (Emacs macOS GUI)

I'm using the exec-path-from-shell package to copy my environment variables, including PATH. But shell-command (M-! which ruby RET) only finds the system ruby, not my user-local rvm ruby. Similarly, ...
0
votes
0answers
36 views

Best way to modify projectile types?

I've come to rely a lot on projectile-toggle-between-implementation-and-test to jump between implementation and test when developing Clojure. However when I tried to use it in my Haskell projects it ...
0
votes
0answers
25 views

How to launch projectile mode with default configuration

I looked at the quickstart here: https://github.com/bbatsov/projectile#installation https://projectile.readthedocs.io/en/latest/usage/ And have this in my init.el: (require 'projectile) (define-key ...
0
votes
0answers
21 views

Why does open projectile ask for pattern?

Whenever I am opening a project in spacemacs, it is asking for [] pattern: and a with list of files as a option. Why It is asking for a pattern ?
0
votes
0answers
66 views

Adding external jars a la Eclipse via projectile / lsp-mode

I'm a Java newbie using lsp-java for Java programming. I'm looking to use / create within Emacs the kind of functionality provided by Eclipse (and other IDEs, I'm sure) via Project -> Build Path -> ...
0
votes
0answers
56 views

How to make helm-projectile-rg list files in relative to project?

Whenever I use helm-projectile-rg I see the list of files in relative to the current file: ../../../../../../project_dir/test/test1/filex.cpp "match" Is there a way to have it show files in ...
0
votes
0answers
45 views

Why am I getting `max-specpdl-size` error on one markdown file when opening via projectile but not dired?

I am getting a max-specdl-size error on only one .markdown file. I have increased the size via (setq max-specpdl-size 50000) to test, and I still get the error. This does not happen on any other ....
0
votes
0answers
10 views

projectile-find-file shows “I get can't access tty; job control turned off”

Projectile is showing me "I get can't access tty; job control turned off" when trying to find files. Anyone ever get this and what could be the way around it.
0
votes
0answers
40 views

unable to access super-p and @ on macOS (for use w projectile)

Warning: I’m a macOS user using spacemacs rather than plain GNU emacs ;-) I would like to use projectile, which itself heavily use the « super » key. Unfortunately, when I want to use s-p, it trigger ...
0
votes
0answers
34 views

setting auto-revert-check-vc-info causes auto-revert error messages

I have this setup to enable viewing the correct branch name when switching or creating new branches in the mode-line: (setq auto-revert-check-vc-info t) However, I started seeing some error ...
0
votes
0answers
56 views

Files not being ignored

Apologies if this has been asked elsewhere; I'm very new to emacs so I'm unaware of many of the basics. I've been trying to use helm-projectile to switch between projects and go to files. I'd like ...
0
votes
1answer
168 views

Emacs / Projectile complains about no job control with Bash/terminal

I use Emacs 27.0.50 on Ubuntu 18.04. Fish is my default shell. When a file from a directory with .git is being loaded into the buffer, I'm trying to start projectile-find-file , I see the following ...
0
votes
0answers
56 views

Projectile renaming buffer name causing issues with ESS (ctrl enter) functionality

I have recently installed projectile package into my Emacs. It's great package, however, now my C-RET binding to ESS (R) is not working any more. Part of my current init.el related to ESS looks like ...
0
votes
0answers
122 views

Configure compilation mode to use custom shell

On windows I have set (setq explicit-shell-file-name "c:/Program Files/Git/bin/bash.exe") to use git-bash for e.g. M-x shell. In compilation mode however, the standard windows console still seems to ...
0
votes
1answer
136 views

Why does projectile-compile-project call “go build ./…”?

I just started to use projectile. I use it with a go project. When I call projectile-compile-project, go build ./... runs, but after that there is no binary. The same happens when I call go build ./......
0
votes
1answer
309 views

projectile-find-file and ivy - create file with subdirectories

I'm using ivy and projectile. When I search for some file with projectile-find-file, and the file does not exist, I would it to be created. If it is inside directories that also do not exist, ask if ...