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

Source modification error: file always in read-only mode #1765

Closed
buzzia2001 opened this issue Jan 8, 2024 · 12 comments · Fixed by #1768
Closed

Source modification error: file always in read-only mode #1765

buzzia2001 opened this issue Jan 8, 2024 · 12 comments · Fixed by #1768

Comments

@buzzia2001
Copy link

Good morning,
I updated the extension to the new version 2.6.3.
I'm having problems because even if I open the sources in edit mode they always open in read-only mode.
image
image
image

Downgrading to 2.6.2 it works

@SJLennon
Copy link
Contributor

SJLennon commented Jan 8, 2024

@buzzia2001
Setting this was the only way I could reproduce this issue:
image
Mine was unchecked by default and things worked as normal. Set the option and the file is opened read only, even if you try to open it as Edit.

@buzzia2001
Copy link
Author

Hi @SJLennon,
in miy config I see that is not checked read only mode:
image

@openmax
Copy link

openmax commented Jan 8, 2024

I have the same problem , but when the member source in a IASP Library , downgrade to 2.6.2 work. ( italian 1144 ccsid too )

( check or uncheck the "Read only mode" any time is read only )

@buzzia2001
Copy link
Author

Even in my case the sources are on IASP.

@sebjulliand
Copy link
Collaborator

Hi guys,
can one of you put the content of his Code for IBM i output after opening one of these read-only members?
Thanks!

@buzzia2001
Copy link
Author

Hi @sebjulliand
do you mean this screen?
image

@sebjulliand
Copy link
Collaborator

No, this one:
image

@buzzia2001
Copy link
Author

buzzia2001 commented Jan 8, 2024

@sebjulliand I've uploaded log file
log.txt

@sebjulliand
Copy link
Collaborator

Thank you @buzzia2001 !

So, here's the catch, this command is failing:

system  "CHKOBJ OBJ(DEVIASP/ELMSRC) OBJTYPE(*FILE) AUT(*UPD)"
{
    "code": 1,
    "signal": null,
    "stdout": "",
    "stderr": "CPF9810:  La libreria DEVIASP non è stata trovata."
}

This is an additional control performed to ensure you actually have the authority to write in this file.
I assume that DEVIASP is a library located on your iASP.
In order for Code for IBM i to work properly with an iASP, please add it to your IBM i profile's JOBD.

@buzzia2001
Copy link
Author

@sebjulliand DEVIASP is my IASP name, ELMSRC is the library, so maybe the parameters of this command are not correct...

@sebjulliand
Copy link
Collaborator

Indeed, that's a regression introduced with the latest release.
I'll look into it. 😅

@sebjulliand
Copy link
Collaborator

@buzzia2001 Code for IBM i 2.6.4 is out. It will fix your problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants