This repository was archived by the owner on Nov 8, 2023. It is now read-only.
This repository was archived by the owner on Nov 8, 2023. It is now read-only.
Workspaces & LiveEdit #30
Open
Description
- workspaces. how do they work
- WS & Sass
- LiveEdit is a gateway drug into workspaces, but its also a complement when you're using them
- its not clear how many people start with which feature
- include links to Remy's stuff.
- what "[VM] file (322)" means
- When changing a file, why it adds * to the end of filename and what that means
- Explain saving: Ctrl/Cmd + S vs right click and Save/Save as...
Activity
jaredwilli commentedon Dec 16, 2013
Perhaps explain the other available shortcuts too:
Cmd+/
Opt+Delete
Also, something I've noticed since I almost exclusively use workspaces now. When I have a file open, say main.js. If i have a breakpoint on a line that is hit when I hover over something, there's another instance of main.js that opens up, which if I try to make changes in and save, it's not actually saving. I have to switch back to the other main.js file I was editing and make the change there. I'm not sure what's up with that. Probably has something to do with what VM is. Although, sometimes a file has VM next to it and sometimes it doesn't. Curious about this.
SchizoDuckie commentedon Dec 19, 2013
I've experienced this same thing. It seems like the mapping is not 100% perfectly matched in some cases (when recompiling and dynamically swapping the function contents?
I've made what @jaredwilli mentions happen by adding a breakpoint, breaking on it, altering code, and then saving and kicking off the auto-recompilation. A new editor tab opens and it has a [VM] tag in the title.
paulirish commentedon Dec 19, 2013
@SchizoDuckie hah thanks for coming around these parts! :)
that's a good bug report. I'll speak to our workspaces engineers to look into it.
addyosmani commentedon Dec 19, 2013
Suggestions:
paulirish commentedon Dec 19, 2013
@dr4b here's my ideas for how to best cover the feature
*
in the tab bar. hitting save (cmd-s) does two things:--watch
that recompiles for you, but devtools will pick back up the new.css
files and update them.Doing more
caveats:
http://remysharp.com/2013/07/18/my-workflow-v3-full-coding-stack/ video shows an unmapped workspace and how you can edit backend files easily. In the comments i point out the advantages to mapped workspace.
http://gregrickaby.com/turn-chrome-developer-tools-into-an-ide/ this kinda shows what the story is for workspaces in the larger scheme of things.
paulirish commentedon Apr 23, 2014
Initial docs published: https://developers.google.com/chrome-developer-tools/docs/workspaces
Protector1 commentedon Apr 28, 2014
This all sounds wonderful, but are pure HTML files still used in contemporary web development? In these times of Dru pals, PHPs and Node.js, I can't imagine how many use cases there are for having static HTML pages. Or is this feature solely intended for editing client-side script and css?
hoschi commentedon Apr 29, 2014
Already a good document. In my opinion the "Refresh" section should give more details what happens and when, when files get changed outside of Chrome. What's really unexpected is that only the file of the open tab (sources view, not browser tab) gets recompiled. When I change more files I must visit each tab in dev tools to recompile them. Is it possible to recompile all changed files at once, not only the file of current tab?
Garbee commentedon Jun 24, 2014
@PavelMaximov Sounds like something to bring up on the Issue tracker for the project. This is just a documentation repository.
thomasvs commentedon Aug 11, 2014
I'm trying to understand how the mapping from network source to local file system works. As soon as I right-click to map a single network source to a local file, it tells me I should reload. When I do, the source for the webserver disappears forever (presumably because it has been mapped). That implies that chrome figures out some kind of relative mapping between two files, and applies that mapping to all files. Is that correct?
However, there are a lot of cases where the server's hierarchy of resources does not match the file system's; in my case for example, /style is served by a node server from a different filesystem location than other parts. Hence, it looks like the styles pane cannot show me the source file name anymore for something I'm inspecting.
Is there a way around this, or am I supposed to make sure the filesystem hierarchy completely matches the server's?
breck7 commentedon Aug 27, 2014
The normal scenario works for me, but what about the scenario where I am editing a remote file and don't have the remote file on my local disk? I expect to be able to map any arbitrary url to a local file.
For example:
This does not work. Instead I get this error:
Garbee commentedon Aug 27, 2014
@breck7 That is the exact thing issue #151 is open for documenting. Currently what you want to do isn't possible with the DevTools. Additional extensions are required.
In the other issue is a link to a bug report. You can star that issue to let the developers know you are also interested in the feature addition. Please do remember to not comment with simply +1 or other noise. Stars are sufficient to get things prioritized.
breck7 commentedon Aug 28, 2014
Done! Thanks @Garbee!
19 remaining items
Garbee commentedon Aug 27, 2015
@eslachance I don't think there are any current plans for the team to add the functionality. Best thing to do is submit a feature request on the issue tracker against DevTools and see what they say.
TristanBrotherton commentedon Apr 12, 2016
In the documentation I see edits made in the elements panel should persist and save immediately. I'm unable to create this behaviour though, and instead have to edit the relevant file under "sources" and save it. Is there still away to persist changes made in the elements tab? (otherwise you lose the ability to see immediate changes).
paulirish commentedon Apr 12, 2016
TristanBrotherton commentedon Apr 12, 2016
Thanks for the quick reply Paul, If I understand correctly my work space is mapped as I can control click on a property in the elements tab, to be taken the sources tab, and the relevant LESS file / line. When I save the changes they are saved to disk locally. I just can't get it to work in the "elements" tab where I can actually see live changes.
JohnONolan commentedon Nov 2, 2016
@paulirish I have the same issue as @TristanBrotherton - is there any way to debug this? As Tristan says, workspace is mapped, and edits to the sources panel persist to the file system correctly. The only missing thing is that changes in the elements panel do not sync or persist to the source panel in any way (nor the reverse. Sources/Elements are out of sync).
paulirish commentedon Nov 2, 2016
cc @aslushnikov
aslushnikov commentedon Nov 2, 2016
@JohnONolan @TristanBrotherton hi guys, I've an idea of what might be happening, but at first lets see if I understand your scenarios correctly:
In this case editing styles through elements panel actually edits CSS - which is instant, but this doesn't change your LESS file. Whereas if you edit a LESS file in Sources panel, the editing is not instant.
TristanBrotherton commentedon Nov 2, 2016
@aslushnikov That sounds accurate. Sounds like its a workflow issue. My misunderstanding from reading the docs was that it would update the LESS file.
JohnONolan commentedon Nov 4, 2016
@aslushnikov Yes. In my case, PostCSS rather than LESS, but everything else is the same.
The main things I note are:
Everything in the sources panel is working exactly right - no issues at all - it's just the elements panel which seems to be disconnected, somehow, from the sources.
As a point of reference, when the workspace is mapped to the compiled CSS file rather than the source PostCSS/LESS file, then the elements/sources panels are synced correctly and as expected.
Does this help at all?
Suncatcher commentedon Dec 17, 2016
Does the situation changed after 2 years? Is it still not supported?
Garbee commentedon Dec 17, 2016
@Suncatcher Nope. There isn't an issue for it to be tracked and implemented by the team when they have time. This isn't a place the team looks for work. If someone wants that functionality they'll need to file a bug at the chromium bug tracker.
Suncatcher commentedon Dec 20, 2016
Okay, I fixed this horrible deficiency)
bulgariamitko commentedon Jul 1, 2018
+1 i want this feature
JaganJonnala commentedon Aug 10, 2018
+1
I want this feature
userlond commentedon Sep 12, 2018
Same problem, I think it will never be fixed.
Bug in bugtracker: https://bugs.chromium.org/p/chromium/issues/detail?id=596037