Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    emacswatcher
    @emacswatcher
    I tried removing the "local-file" strategy because my naive guess is that I want bottom-up first but no joy. Time to get out the toolbox
    emacswatcher
    @emacswatcher
    Aha -- each strategy has its own list of dominating files and "project.clj" was not in projectile-project-root-files-bottom-up
    matrixbot
    @matrixbot
    katco DxyMSw5UUAAQJbD.bin
    matrixbot
    @matrixbot
    katco Ugh sorry. Misclicked share on mobile. For those curious (and star trek fans) here's the tweet https://twitter.com/DevinatelyDevin/status/1088899470060908544?s=20
    Tobias Langer
    @empwilli_gitlab
    Is it possible to register a function as projectile-project-build-cmd / projectile-project-test-cmd (from .dir-locals.el)? I've defined a function (defun foo() "echo foo"), but the returned string won't appear as prompt for the project / won't be executed
    (I'm quite new to elisp so any pointers are helpful, I guess :))
    Louis Roché
    @Khady
    ("path/to/dir"
      (nil
       (eval progn
             (require 'projectile)
             (puthash
              (projectile-project-root)
              "make -C backend" projectile-compilation-cmd-map))))
    I have something like this, not exactly for projectile-project-build-cmd, but maybe it can help
    Tobias Langer
    @empwilli_gitlab
    Excuse me if I don't understand it correctly, but this appears to be a one time thing at startup, doesn't it? What I want is to call (completing-read..) to be called everytime I call projectile-compile-project, so that I can interactively choose between different build targets
    Louis Roché
    @Khady
    yes it is a one time thing when the file is open
    Tobias Langer
    @empwilli_gitlab
    hm, thanks anyway!
    xolve
    @xolve

    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

    Osram-Gru
    @Osram-Gru
    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
    @vlamacko
    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
    @mlakewood
    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
    @shadow-fox
    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
    @esel_gitlab
    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
    hisnawi
    @hisnawi
    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
    @chbatey
    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
    @chbatey
    I removed projectile-project-root-files-bottom-up, let me know if there is a better way of doing it
    Adrian Smith
    @slifin
    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
    @slifin
    I think the warnings are coming from fish shell when its configured to use vi keys fish-shell/fish-shell#6497
    Raphael
    @glepnir
    hi how to support go.mod project?
    sampath kumar
    @s-surineni
    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
    @s-surineni
    @bbatsov are there any instructions to build the project?
    sampath kumar
    @s-surineni
    I am using a emacs file with
    (add-to-list 'load-path "/Users/ironman/projects/os/emax/projectile/")
    (load "projectile")
    to test
    Dietrich Daroch
    @Dietr1ch
    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
    @akaWolf_gitlab
    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?
    Nikolay
    @Rende11
    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
    @magthe

    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
    @thomaspersson
    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
    @michaelmrose
    does anyone know why projectile might ignore .gitignore?
    Michael Rose
    @michaelmrose
    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
    @michaelmrose
    I ended up creating a .projectile that mirrors my gitignore and using hybrid never could get alien to work
    Himanshu Mehra
    @hmehra
    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
    @Thaodan
    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
    @liurnd
    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
    arnfaldur
    @arnfaldur

    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
    @magthe
    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.
    smile
    @zcjava
    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
    @bbatsov
    Jing-Xuan Lim
    @jingxlim
    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?
    Ramses
    @ram535
    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
    @SrAceves
    Hello
    R0flcopt3r
    @r0flcopt3r:matrix.org
    [m]
    is this channel as dead as it looks?