projectile icon indicating copy to clipboard operation
projectile copied to clipboard

Projectile can't recognise custom project type

Open Orest58008 opened this issue 7 months ago • 5 comments

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

  1. 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")
  1. Go into a directory containing dub.sdl or dub.json
  2. Don't get dub project type

Environment & Version information

Projectile version information

Projectile 2.8.0

Emacs version

29.1

Operating system

Arch Linux

Orest58008 avatar Jan 05 '24 21:01 Orest58008

Entire init.el if something outside the project registration affects it: https://pastebin.com/zxCZqPjF

Orest58008 avatar Jan 05 '24 21:01 Orest58008

Does:

(projectile-update-project-type 'dub :precedence 'high)

Make projectile pick up the expected project type?

LaurenceWarne avatar Jan 25 '24 12:01 LaurenceWarne

Unfortunately, it does not

Orest58008 avatar Jan 31 '24 17:01 Orest58008