Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Under certain circumstances, .project will cause projects to be recognized as nested. #7867

Open
4 tasks done
kilesduli opened this issue May 19, 2024 · 0 comments
Open
4 tasks done
Labels
is:bug Something isn't working as intended needs-triage Issue hasn't been assessed yet

Comments

@kilesduli
Copy link

I confirm that...

  • I have searched the issue tracker, documentation, FAQ, Discourse, and Google, in case this issue has already been reported/resolved.

  • I have read "How to Debug Issues", and will use it to provide as much information about this issue as possible.

  • The issue can be reproduced on the latest available commit of Doom.

  • The issue can be reproduced on a stable release of Emacs, such as 27, 28, or 29. (Unstable versions end in .50, .60, or .9x)

Expected behavior

.project won't be treated as project marker in doom.

Current behavior

The java language server 'jdtls' will add .project in subdirectory when directory layout like this.

.
├── app
│   ├── build.gradle.kts
│   ├── .classpath
│   ├── .project  <-----
│   └── src
├── gradlew
├── gradlew.bat
├── .project    <-----
└── settings.gradle.kts

But doom will treat .project in the folder as a project marker. The app folder will became a known project in projectile.

(setq projectile-project-root-files-bottom-up
(append '(".projectile" ; projectile's root marker
".project" ; doom project marker
".git") ; Git VCS root dir
(when (executable-find "hg")

I think the project marker .project is duplicated with .projectile, and the latter is more general.

Steps to reproduce

  1. Use gradle init --type java-application --dsl kotlin --package local.duli --project-name test --java-version 17 --no-split-project generate directory layout.
  2. Use latest java language server jdtls.
  3. open a java source file which in app folder.
  4. SPC p f will see app treated as projectile project.

System Information

https://pastebin.com/8ACQDc8U

@kilesduli kilesduli added is:bug Something isn't working as intended needs-triage Issue hasn't been assessed yet labels May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:bug Something isn't working as intended needs-triage Issue hasn't been assessed yet
Projects
Status: No status
Development

No branches or pull requests

1 participant