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

🐛 No such file or directory (os error 2) #4774

Closed
1 task done
Mauladen opened this issue Aug 21, 2023 · 15 comments
Closed
1 task done

🐛 No such file or directory (os error 2) #4774

Mauladen opened this issue Aug 21, 2023 · 15 comments
Labels
S-Needs info Status: the issue needs more info in order to be triaged

Comments

@Mauladen
Copy link

Mauladen commented Aug 21, 2023

Environment information

CLI:
  Version:                      12.1.3
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           linux

Environment:
  ROME_LOG_DIR:                 unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v16.17.0"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "yarn/1.22.19"

Rome Configuration:
  Status:                       unset

Workspace:
  Open Documents:               0

What happened?

  1. yarn install rome
  2. yarn rome ci check .

After these commands I get the error No such file or directory (os error 2)

gSx23lw

Expected result

I want this command to work as stated in the documentation, give errors

Code of Conduct

  • I agree to follow Rome's Code of Conduct
@Mauladen Mauladen added the S-To triage Status: user report of a possible bug that needs to be triaged label Aug 21, 2023
@Mauladen
Copy link
Author

I tested on macOS and got the same error, I just don't understand how to make rome work, maybe you need to install some libraries past it?

@Conaclos
Copy link
Contributor

Did you try the command on another file?

@Mauladen
Copy link
Author

Mauladen commented Aug 26, 2023

Did you try the command on another file?

Yes, I tried in another project and in different files specifically, I ran this command in Windows, in Manjaro Linux on my computer and on Mac Mini M2 where macOS is installed and everywhere I get this error

photo_2023-08-26_21-22-35

@ematipico
Copy link
Contributor

Could you please share a minimal reproduction repository? This will help us to triage the issue

@ematipico ematipico added S-Needs info Status: the issue needs more info in order to be triaged and removed S-To triage Status: user report of a possible bug that needs to be triaged labels Aug 26, 2023
@Mauladen
Copy link
Author

Could you please share a minimal reproduction repository? This will help us to triage the issue

If I install Rome using yarn or pnpm in an empty project, I will create main.js in which I write console.log, I will get the same error, while formatting works fine and no errors occur, but Rome writes that some errors occurred during the check

@Mauladen
Copy link
Author

Mauladen commented Aug 26, 2023

You can ignore the version, exactly the same thing happens on 2.1.3

image1
image2

@Mauladen
Copy link
Author

I also want to clarify that the operating system does not matter, this error occurs on Windows, Linux, macOS, you can reproduce it as I wrote above in one file with one line

@ematipico
Copy link
Contributor

Thank you @Mauladen for additional information.

Is it possible for you to create a minimal repository, so we can replicate the issue? If we can't replicate the issue, we can't help.

This seems to be something related to your system, unfortunately our logs don't provide much information, and that's on us.

@Mauladen
Copy link
Author

Mauladen commented Aug 27, 2023

Thank you @Mauladen for additional information.

Is it possible for you to create a minimal repository, so we can replicate the issue? If we can't replicate the issue, we can't help.

This seems to be something related to your system, unfortunately our logs don't provide much information, and that's on us.

Link to the test repository







@Mauladen
Copy link
Author

@ematipico

I added information from 3 different computers that are physically independent from each other with different operating systems Windows, macOS, Linux

@strager
Copy link
Contributor

strager commented Aug 27, 2023

The "No such file or directory (os error 2)" error occurs because rome ci check . is interpreting check as a file name. The correct command is rome ci . (or rome check .).

The error message could definitely be better...

@Mauladen
Copy link
Author

@strager

You really turned out to be right, I added a new file to the Header.tsx repository, the rome check command does not output any errors except formatting, but Rome Playground shows one error

@Mauladen
Copy link
Author

At the moment, I have decided to close this appeal because I may have confused some people with my information, I will recreate it with the correct description of the problem

@Mauladen
Copy link
Author

Closed

@Conaclos
Copy link
Contributor

New issue opened #4784

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
S-Needs info Status: the issue needs more info in order to be triaged
Projects
None yet
Development

No branches or pull requests

4 participants