node-theseus
node-theseus copied to clipboard
things don't work right when some files are in symlinked directories (on mac)
Steps to reproduce:
- make directories
fooand `bar`` at different places in your fs - symlink
barintofoo(so you have "/full/path/to/foo/bar/") - put JS files foo.js in directory foo and bar.js in directory bar
- do
require("/full/path/to/foo/bar/bar.js")in foo.js - Experience Theseus not logging anything in bar.js
When Theseus is used on files in Chrome, it has to map URLs to file paths by guessing. For this, Agent.js defines possibleRemotePathsForLocalPath(path) that returns an array of likely URLs for a given file path, and that list is used to determine whether Theseus should show pills for a given file.
I think this function should be augmented to also add the file's fully resolved path to the list. This way, whether you open the file at the original path, or the symlinked path, Theseus will still show the pills.
Now to check whether Brackets wraps that call!
Nope.