Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Tobias Langer
    hm, thanks anyway!

    I have asked this question before on /r/emacs, I think asking here may provide me with some insight:

    ```I think projectile and treemacs are independent project and treemacs-projectile is written as helper. However I think I fail to understand the concept of it.

    I want to see all my projectile projects be shows in treemacs as I add them via projectile (and be added to projectile if I add them to treemacs). And if I close a project in either mode it should be closed with all its buffers.

    Right now I achieve the same result by calling commands from each manually. Which is very cumbersome.```

    Reddit link

    Hi! When i call projectile-compile-project in a go project, projectile runs go build ./.... The command finishes without error, but I can find no binary. When I change that to go build, a binary is created.
    • what does ./... mean? I use CLI for ~20 years and have never seen that
    • how can I change the default to go build? I don't want to use C-u C-c p c allways...
    Vladimir Macko
    I am a root project (git repo) A. The '.gitignore' of this project A has a folder B set to ignore. In this folder B I have another folder that is also a git repo C. I am not able to have projectile recognise this folder C as a project. Any pointers? Thanks!
    Mark Lakewood
    Hi all. Im wanting to use projectile, lsp-mode with python but with pyls running in a docker container. I've got pyls and lsp-mode working with docker, but with the command hard-coded to a particular container, what I really want is a function to get the current root directory of the projectile project im working in, so that I can use a standard command to do this.
    Pranaya Behera
    This is my full init.el: https://gist.github.com/shadow-fox/7bd91d02a75aee138be0f137829081b2 , The projectile not able to fetch any the projects. I have ran projectile-discover-project-in-search-path but projectile-known-projects is empty. I have tried with melpa-stable and melpa . Still the issue persists.
    Erik Lovlie
    hello, this question is not directly related to projectile (I think) but hey: when I try to use the abbreviation thingy, e.g. "M-x proj-fi-fi" for "projectile-find-file" I get the completion "project-find-file" and that seems to be the sole completion
    I am however able to run "M-x projectile-find-file" just fine if I type it out
    wonder if anyone have a tip on what could be wrong? I should probably bind it to a key I suppose, but I'd like to understand ... what I don't understand here
    I am using projectile-mode-line but I dont like the project-type showing up ex: projectile[test:generic]. How to remove the :generic part?
    Christopher Batey
    Is there a way to disable auto discovery of a project type? I have quite a few git repos that contain many projects I want to work on separately and anytime I use one of these i end up with the current project being the git repo one level up rather than the sub project
    Christopher Batey
    I removed projectile-project-root-files-bottom-up, let me know if there is a better way of doing it
    Adrian Smith
    I think I'm slowing figuring out how to use projectile, I'm using evil mode if that makes any difference but if I do C-c p f, it lags for a bit then does this: https://i.imgur.com/zgQpEBf.png what do those warnings mean and how do interact with this prompt? when I type anything it disappears
    Adrian Smith
    I think the warnings are coming from fish shell when its configured to use vi keys fish-shell/fish-shell#6497
    hi how to support go.mod project?
    sampath kumar
    Hi Guys, I am trying to validate issue #1508. I ran command make run-projectile I got the following
    error make: * No rule to make target `run-projectile'. Stop.
    How can build and deploy projectile with emacs. Thank you
    sampath kumar
    @bbatsov are there any instructions to build the project?
    sampath kumar
    I am using a emacs file with
    (add-to-list 'load-path "/Users/ironman/projects/os/emax/projectile/")
    (load "projectile")
    to test
    Dietrich Daroch
    Hey, is there a way to have project-relative text file links?
    At work we use links like -- Bla bla, see //dir_in_project_root/some_file and its really handy to link things
    Artjom Vejsel
    hi, guys. I see in projectile there is compile, run, run tests, configure, but there is no clean and rebuild. can we have that commands in projectile?
    Hello! I have I hybrid project clojurescript and js - and projectile consider my project as npm project. How can I manually say use "clojure" configuration? Basically I want to switch between source and test files.
    Magnus Therning

    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 didn't work at all. I found that two things needed adjusting.

    1. The project type was wrongly set to make. I fixed that by explicitly setting it to haskell-cabal in my .dir-locals.el:

      ((nil . ((projectile-project-type . haskell-cabal))))
    2. Second, the test suffix, Spec, didn't match what I use so I put this in my config:

      (with-eval-after-load 'haskell-mode
        (plist-put (alist-get 'haskell-cabal projectile-project-types)
                   'test-suffix "Test"))

    I'm not very experienced with configuring Emacs, so I'm wondering if this is a good way of doing it, or if there's a better way?

    Thomas Persson
    Hi! I have a javascript project and I want to exclude node_modules from my projectile ag searches. I thought if I change projectile-indexing-method to "alien" it will follow the .gitignore file (which contain node_modules directory) but I still get search results from it and at the top of the search buffer it also says "mode: ag; default-directory" and then point at the root of my project and some of the search results is from files in node_modules. What is the correct way of achieving what I want?
    Michael Rose
    does anyone know why projectile might ignore .gitignore?
    Michael Rose
    to clarify indexing method is alien and counsel-projectile and any other method of listing projectile file shows all file underneath the project root without exception so its not an issue with gitignore syntax
    I have also tried blowing away the cache and version is most recent on melpa
    Michael Rose
    I ended up creating a .projectile that mirrors my gitignore and using hybrid never could get alien to work
    Himanshu Mehra
    I am trying to set up projectile compilation. The default directory ends up being <project_root>/build. I instead want it to be just <project_root>. I tried setting this via .dir-locals.el but no luck. This was working in Emacs 26 but is broken in Emacs 27. Any hints?
    Björn Bidar
    Terve, can I use a custom command to generate tags per project? I use compiledb + rtags for my projects and want to use that.
    Ronald Liu
    Hey guys, my project is in a symlink dir. in projectile index all the paths are by truename. Is there a way to disable this feature? The truename is kinda conflict with lsp-mode setup

    Hey, I have a parent folder X that is versioned with git. Inside this folder I have a bunch of nested directories and in some of them I have projects that I would like projectile, LSPs and the like to acknowledge. This seems to be very hard as X is constantly recognized as the project and I haven't found a reliable way to not let that happen.
    I never want X to be considered a project, is there some blocklist I can use.

    I have already tried adding .projectile files to the subfolders that are actual projects. I usually need to reload the file for it to be recognized and even that does'nt seem reliadble as just now the LSP decided that the project is X even after I manually switched to the subproject.

    does anyone know anything that alleviates this issue?

    Magnus Therning
    The only thing I can think of is to use envvars to keep .git outside of the working tree. I'm not sure that solves more problems than it causes though.
    i use counsel-projectile-ag search word. but the project is git project. gitignore include my need to search file .
    what the way exclude gitignore some file
    gitignore ignore elpa . but i need search elpa directory word
    Jing-Xuan Lim
    Hi. I haven't been able to add a git bare repository to projectile. Is that possible and if so, how do I do it?
    I have src/main.lisp and tests/main.lisp the test file has the same name as the source file. How can I make projectile-toggle-between-implementation-and-test to work in this scenario?
    Ferruccio Aceves
    is this channel as dead as it looks?
    Ferruccio Aceves
    Indeed: dead!
    dissapointing. I'm looking for some ways to speed up projectile-find-file
    especially over tramp, where it's just the slowest thing