Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

馃悰 VCS doesn't properly handle .gitignore patterns starting with ! #4529

Open
1 task done
nikeee opened this issue May 25, 2023 · 0 comments
Open
1 task done

馃悰 VCS doesn't properly handle .gitignore patterns starting with ! #4529

nikeee opened this issue May 25, 2023 · 0 comments
Labels
A-Project Area: project configuration and loading S-Bug: confirmed Status: report has been confirmed as a valid bug

Comments

@nikeee
Copy link
Contributor

nikeee commented May 25, 2023

Environment information

CLI:
  Version:                      12.1.2
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           linux

Environment:
  ROME_LOG_DIR:                 unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v20.2.0"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "null"

Rome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    true
  VCS disabled:                 false

What happened?

*.js
!a.js

Minimum repro:
https://gist.github.com/nikeee/1fa483be59c2bc36e024f494903d6cb2

Expected result

Should format a.js, but exits with an error because nothing is discovered to be formatted.

When removing *.js from the gitignore, it works.

Code of Conduct

  • I agree to follow Rome's Code of Conduct
@nikeee nikeee added the S-To triage Status: user report of a possible bug that needs to be triaged label May 25, 2023
@ematipico ematipico added S-Bug: confirmed Status: report has been confirmed as a valid bug A-Project Area: project configuration and loading and removed S-To triage Status: user report of a possible bug that needs to be triaged labels Jun 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Project Area: project configuration and loading S-Bug: confirmed Status: report has been confirmed as a valid bug
Projects
None yet
Development

No branches or pull requests

2 participants