dirigible icon indicating copy to clipboard operation
dirigible copied to clipboard

[IDE] Git - Cannot remove staged file

Open iliyan-velichkov opened this issue 1 year ago • 2 comments

When I have staged file in the Git perspective and try to unstage it using the Remove from index button, it throws an exception. image image

2024-01-04 16:01:21.496 [WARN ] [http-nio-8080-exec-4] o.s.w.s.m.s.DefaultHandlerExceptionResolver - Resolved [org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing: public org.springframework.http.ResponseEntity<?> org.eclipse.dirigible.components.ide.git.endpoint.GitEndpoint.removeFileFromIndex(java.lang.String,java.lang.String,java.lang.String) throws org.eclipse.dirigible.components.ide.git.domain.GitConnectorException]

iliyan-velichkov avatar Jan 04 '24 14:01 iliyan-velichkov

@iliyan-velichkov an item from the staged area should be selected, before clicking on the "unstage" button. I guess we should improve the error message, or simply disable the "unstage" button if nothing is selected. @StanZGenchev could you check this?

ThuF avatar Feb 27 '24 15:02 ThuF

@ThuF instead of showing this error message, better do nothing or disable the button

iliyan-velichkov avatar Feb 28 '24 07:02 iliyan-velichkov