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

[Bug] Cannot remove a mode with CLI #4184

Open
Billuc opened this issue May 29, 2024 · 0 comments
Open

[Bug] Cannot remove a mode with CLI #4184

Billuc opened this issue May 29, 2024 · 0 comments
Assignees
Labels
Awaiting Reproduction Can we reproduce the reported bug?

Comments

@Billuc
Copy link
Contributor

Billuc commented May 29, 2024

Describe the Bug

Hello !

I am trying to remove modes that I am not using from OHIF in order to have a cleaner worklist.
I was able to remove the microscopy mode using the cli, but not the newer preclinical-4d mode.

I am using OHIF v3.8.0 BTW.

Here is my console output :

root@1154173311e6:/usr/src/ohif# yarn run cli remove-mode @ohif/mode-preclinical-4d
yarn run v1.22.19
$ node ./platform/cli/src/index.js remove-mode @ohif/mode-preclinical-4d
Removing ohif-mode @ohif/mode-preclinical-4d...
  ✖ Searching for installed mode: @ohif/mode-preclinical-4d
    → Unexpected end of JSON input
    Uninstalling npm package: @ohif/mode-preclinical-4d
    Removing ohif-mode from the configuration file
    Detecting extensions that can be removed...
Unexpected end of JSON input
Done in 1.11s.

Steps to Reproduce

  1. Clone OHIF v3.8.0
  2. Move into the cloned directory
  3. Run yarn install --frozen-lockfile
  4. Run yarn run cli remove-mode @ohif/mode-microscopy // Works
  5. Run yarn run cli remove-mode @ohif/mode-preclinical-4d // Does not work

The current behavior

I cannot remove the mode @ohif/mode-preclinical-4d and it stays in the list of installed modes

The expected behavior

Mode @ohif/mode-preclinical-4d is removed and no longer accessible

OS

Fedora 40 with Docker (Debian 12 Bookworm)

Node version

18.20.3

Browser

Chromium

@Billuc Billuc added the Awaiting Reproduction Can we reproduce the reported bug? label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Reproduction Can we reproduce the reported bug?
Projects
None yet
Development

No branches or pull requests

2 participants