Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Live Dev is Broken #5365

Closed
redmunds opened this issue Sep 27, 2013 · 8 comments
Closed

Live Dev is Broken #5365

redmunds opened this issue Sep 27, 2013 · 8 comments

Comments

@redmunds
Copy link
Contributor

  1. Select a file with .html file extension
  2. Start Live Preview

Results
Error "Open an HTML file in order to launch live preview"

git bisect points to this commit: 68a5189

In this pull request: #5224

cc: @peterflynn @JeffryBooher

@peterflynn
Copy link
Member

Crud, looks like we missed a subtle diff between the two APIs that were merged -- one includes the leading "." and the other doesn't. Excluding the "." seems more correct but that means changing a public API. Do we have any sense of how many callers it has?

@peterflynn
Copy link
Member

I only see one call each in JSUtils and FileIndexManager, but the other question is how many extensions might be using it...

@peterflynn
Copy link
Member

The other option is to keep the weird "."-prefixed public API bug with a deprecation warning, and put up a new one with the cleaner semantic before ripping out the old one next sprint. I'm not exactly in love with the current API name anyway :-)

@njx
Copy link
Contributor

njx commented Sep 27, 2013

I did a grep in all the existing extensions using @dangoor's handy-dandy Brackets Extension Grabber and found four instances in three extensions out of about a hundred. (A couple of extensions didn't download for some reason.)

I highly recommend BracketsExtensionGrabber, btw. (Note that it's missing one of the deps in the package.json currently--I put up a pull request to fix that.)

@njx
Copy link
Contributor

njx commented Sep 27, 2013

BTW, the extensions were angularui.angularjs, brackets-code-folding, and pflynn.svg.preview.

@JeffryBooher
Copy link
Contributor

FBNC @redmunds

@redmunds
Copy link
Contributor Author

Confirmed. Closing.

@peterflynn
Copy link
Member

I updated the release notes & filed #5368 for permanently removing the old deprecated API. Will file bugs on the extensions shortly.

peterflynn added a commit that referenced this issue Oct 3, 2013
Merge branch 'glenn/file-system' into pflynn/in-browser-file-system

* glenn/file-system: (56 commits)
  Change FileSystemManager.createFileSystem() to be async -- allowing filesystem impls time to seed any required initial data, or go through authentication workflows.
  Fix incorrect JSDoc parameter name.
  Updated by ALF automation.
  Update Tern and Acorn to the latest
  Change decompress-zip to the release
  Remove methods from eports
  Fix minor nit
  Added quick-edit.png for Finnish translation
  Find in Files title update
  restore handleWideResults property
  Deprecate FileUtils.getFilenameExtension() (which includes leading "."), introduce new FileUtils.getFileExtension() (which excludes it). Fixes bug #5365.
  Clean up
  Fix #5362 (HTML menu z-index vs. bottom-panel).
  simplify fix by assuming intent is to type (not insert hint)
  Code review cleanups
  Expose code inspection providers for the extensions.
  Update to decompress-zip that includes fix for our issue.
  Code review: use more consts in Find; remove unneeded single-tickmark API
  hasNativeMenus param code cleanup
  code cleanup
  ...

Conflicts:
	src/project/ProjectManager.js
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants