projectile
projectile copied to clipboard
Projectile can't recognise custom project type
Expected behavior
Projectile switching to projectile:dub in directories containing dub.sdl
or dub.json
Actual behavior
Projectile doesn't switch to projectile:dub and instead is projectile:dotnet-sln (as in all projects with src/ and not under any project type)
Steps to reproduce the problem
- Configure the type:
(projectile-register-project-type 'dub '("dub.json" "dub.sdl")
:project-file '("dub.json" "dub.sdl")
:src-dir '("src/" "source/")
:compile "dub build"
:run "dub run"
:test "dub test")
- Go into a directory containing
dub.sdl
ordub.json
- Don't get
dub
project type
Environment & Version information
Projectile version information
Projectile 2.8.0
Emacs version
29.1
Operating system
Arch Linux
Entire init.el if something outside the project registration affects it: https://pastebin.com/zxCZqPjF
Does:
(projectile-update-project-type 'dub :precedence 'high)
Make projectile pick up the expected project type?
Unfortunately, it does not