question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add the ability to make a read-only workspace writable

See original GitHub issue

Is your feature request related to a problem? Please describe.

I need to be able to have a workspace start out as read-only, but become writable.

Describe the solution you’d like

For maximum flexibility, I’d love to see a workspace.setReadOnly(boolean) function, but if it’s easier to only support going from read-only to writable, a function workspace.enableEditing() would suffice.

Describe alternatives you’ve considered

I found this message from Neil on Google Groups, which suggests putting a transparent div over Blockly to prevent interactions. The problem with this is that it also disables panning and zooming around the Blockly workspace. I want users to be able to interact with, but not edit, the workspace.

Additional context

In that message, Neil said this:

Readonly cannot be changed after init. There are too many event handlers that would need to be added and removed.

I don’t understand why that would be an unsolvable problem (maybe I’m just not familiar enough with the Blockly source). I’d like to try to implement this change myself, so I’d appreciate any additional context or guidance that anyone (@NeilFraser) can give me.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
NoahAndrewscommented, Sep 25, 2019

@BeksOmega Thanks so much, it’s working great now! This can be closed if desired.

0reactions
NoahAndrewscommented, Sep 20, 2019

Oh there’s an actual dispose method! Nice! I’ll have to try that out, thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using read-only and partitioned clients in automated builds
To create a client workspace that is readonly or partitioned , set the Type: field in the client specification to either readonly or...
Read more >
Prevent Perforce From Marking Files As Read Only
I'd like to never have to deal with it. I know that checking out files will make them no longer read only, but...
Read more >
Workspace agent: turn field to write instead of read only
Solved: hi, We turned Workspace agent on and its working just fine, but I have a problem with on field that is on...
Read more >
Error: The domains for this workspace are read-only
Browse to and right-click the layer and select Add to Current Map. In the Contents pane, right-click the layer, and click Data Design...
Read more >
Perforce checkout files to be writable | Bamboo - Jira
In Perforce, after sync with depot, the files in workspace are read only so any build processes which tries to modify them will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found