You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Duplicate filenames can cause confusion when trying to match up coffee files to js files, although I try to make the most sensible match I can find, with this little piece of code in file_utils.coffee:
score_path_similarity = (path1, path2) ->
# find out how many common directories there are, to
# help us determine the likelihood of path2 being an
# output directory for path1
score = 0
for part in path1
score += 1 if part in path2
score
I don't see an easy way to guess with 100% accuracy here. If you compile both versions of test.coffee, then I think it should fix your problem.
While I'd gladly take a robust patch here, this is a bit of a low priority fix for me. The workaround is pretty obvious; use more distinct names for the files, even when they are in separate directories. I've worked on a Rails system where there are about 20 different copies of base.rb in the filesystem, and it gets confusing real fast.
I'm closing for now, but feel free to provide more info, and I'll reopen as needed.
I have a test.coffee in the main directory and a test.coffee in a sub directory. In the browser file list it shows only the subdirectory test.js file.
When you click on either of the test.coffee scripts it shows the test.js from the subdirectory file in both cases.
The text was updated successfully, but these errors were encountered: