marcellourbani / vscode_abap_remote_fs

Remote filesystem for ABAP systems
MIT License
170 stars 28 forks source link

Failed to save 'xxx' unable to write file #176

Closed pepealbuixech closed 2 years ago

pepealbuixech commented 2 years ago

When I try to save something, the editor shows me the following error: _Failed to save 'ZCL_KIT_ALM.clas.abap': Unable to write file 'adt://xx/System Library/xx/Source Code Library/Clases/ZCL_KIT_ALM/ZCL_KITALM.clas.abap' (Error: Unknown transport status. Object not locked?)

There's something I missed in the installation?

The transport order looks like: image

Thank you! Pepe

marcellourbani commented 2 years ago

Hello Pepe, This looks like a bug, but it's hard for me to troubleshoot not having access to your system. It usually works, and adds a task for you if there isn't one. As a workaround you can try creating it manually.

PS: if your system is on the old side <basis 7.52 you might need to install a plugin, see the link in README

Regards Marcello

pepealbuixech commented 2 years ago

Hi Marcello, thanks for the response time, yes our version is the 7.50, I'll try to install the abapGit plugin and test it again. Best Regards, Pepe

duizhang8255 commented 2 years ago

Hello Pepe,

Did you issue have been fixed? I also install abapGit in backend system, but still have this issue, my system version is 7.50.

Thanks.

Best regards, Martin

marcellourbani commented 2 years ago

After abapgit you need to install the plugin mentioned in the Readme

pepealbuixech commented 2 years ago

Hi Martin, my SAP admin didn't allow me to install it :(

THouRxx commented 1 year ago

Did you issue have been fixed? I also install abapGit in backend system, but still have this issue, my system version is 7.50.

@duizhang8255

I have the same problem for 7.50. Have you found a solution? We're also going to update ur system to a newer version anyways. So maybe that's working.

marcellourbani commented 1 year ago

@pepealbuixech You probably need to install this on your ABAP system: https://github.com/marcellourbani/abapfs_extensions

THouRxx commented 1 year ago

@marcellourbani

I did. But unfortunately it still brings up this error

Failed to save 'ZCL_KIT_ALM.clas.abap': Unable to write file 'adt://xx/System Library/xx/Source Code Library/Clases/ZCL_KIT_ALM/ZCL_KIT_ALM.clas.abap' (Error: Unknown transport status. Object not locked?)

This is what the enhancement looks like:

image

Somtimes i also get this error:

Error displaying transport object: Could NOT open editor for "adt://.../ZCL_ALV_CLASS_HIERARCHY/ZCL_ALV_CLASS_HIERARCHY.clas.abap".

No idea how this is related.

marcellourbani commented 1 year ago

Strange, should propose you to pick or create a transport Does that happen even if you already have an open transpot for the object being edited?

For the 2nd error could be a known bug: doesn't support local objects not owned by you or without package assignment

THouRxx commented 1 year ago

@marcellourbani

This happend on my own open transport. The objects are stored in a package. In this case I used a package from the repository that does not run on abapgit.

Can I only edit packages that are linked to abapgit? (due to the older SAP version)

marcellourbani commented 1 year ago

no, abapgit shouldn't matter No idea why it's not working for you, I tested this with both newer and older systems than yours, and have a few thousand users (my own estimate, from 16k downloads). Would need access to your system to investigate further

On Thu, 26 Jan 2023 at 10:24, THouRxx @.***> wrote:

@marcellourbani https://github.com/marcellourbani

This happend on my own open transport. The objects are stored in a package. In this case I used a package from the repository that does not run on abapgit.

Can I only edit packages that are linked to abapgit? (due to the older SAP version)

— Reply to this email directly, view it on GitHub https://github.com/marcellourbani/vscode_abap_remote_fs/issues/176#issuecomment-1404806045, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASW6HJZHJFPHXIN7D5KR2DWUJGG3ANCNFSM5OAGSSJA . You are receiving this because you were mentioned.Message ID: @.***>

THouRxx commented 1 year ago

We will upgrade to a newer version later this year. Then I will try again and give feedback. Thanks for now. Appreciate your work.