-
Notifications
You must be signed in to change notification settings - Fork 50
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
Locking files #1468
Comments
You are correct. The InterSystems ObjectScript extension for VS Code interacts with the server using REST requests, so it is not able to hold a server-side lock for the duration of an unsaved change existing in the editor, which is what Studio does. Studio is able to do this because each Studio connection has a dedicated server-side process that persists until Studio disconnects. When several developers work concurrently in a single namespace it becomes even more important to use server-side source control. This will help you manage situations where concurrent development projects collide and want to make changes to the same classes etc. George James Software (my employer) offers a mature and full-featured enterprise-grade source control solution called Deltanji which is well integrated with VS Code, Studio and the IRIS Portal editors. Alternative solutions also exist. |
@Patresko John is correct that the extension's asynchronous architecture means we can't handle concurrency the same as Studio. I strongly suggest you move away from the shared development environment model and towards isolated environments per developer (or per change, like the Pull Requests we make in this repository). You can use either server-side or client-side source control in an isolated model and you won;t have these locking issues. |
Source control will work even he stay with Studio or both of us must be in VS Code? Im not sure if he is going to move in near future to VS Code. |
Yes, server-side source control will work for mixed Studio/VS Code. Is there a particular reason your colleague hasn't tried making the switch yet? We would be interested in hearing their feedback in case it's something we can address. Studio has been removed from kits starting with 2024.2 so they should start considering the switch. |
Hello,
I got a question. Im using VS code, my colleague is still with Studio and we are programming on server side. Problem is that none of us can see if the file is locked.
When we were both on studio, I was not able to edit same file while my colleague was inside. Is it possible that VS Code does not triggere any lock and also does not reading lock from studio?
The text was updated successfully, but these errors were encountered: