Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ST3: Issues #26

Closed
phaistonian opened this issue Mar 20, 2013 · 23 comments
Closed

ST3: Issues #26

phaistonian opened this issue Mar 20, 2013 · 23 comments
Labels
Milestone

Comments

@phaistonian
Copy link

Installing the Web Inspector (3) package via the Package Control will bring up an empty Package Controls message window and empty preference files for Web Inspector package.

Installing the package using git clone (and then switching the ST3 branch) did the trick, but whenever I save, the page (both in Canary and in dev) gets reloaded --- not as seen in your screencast, that is.

@sokolovstas
Copy link
Owner

I have fixed some package path issue, now there are "Web Inspector" and "Web Inspector 3"

@phaistonian
Copy link
Author

Yes.

This is the one I installed.

Thing is, all preference files are missing when installing the Web Inspector 3 via the Package Control.

Do you want me to screencast the whole process so you can get a better idea of what's wrong?

@sokolovstas
Copy link
Owner

Fixed some path issues, now preferences should be not empty

@phaistonian
Copy link
Author

Indeed.

  • Package control message is still empty though.
  • Unable to change default preferences - had to copy them as user one and edit them from there.
  • Saving the file still reloads the whole page no matter what (I am just editing a js file)

@sokolovstas
Copy link
Owner

What is settings in your preferences?

@phaistonian
Copy link
Author

http://d.pr/i/la1F

@sokolovstas
Copy link
Owner

You need set 'set_script_source' to true to live JS code swapping or disable 'reload_on_save'

@phaistonian
Copy link
Author

Did those.

http://d.pr/i/LBYV

Still reloading :(

@phaistonian
Copy link
Author

Tested it on Sublime Text 2 on Windows.

Same thing - still reloading the page.

I am pretty sure I got something wrong here:)

@sokolovstas
Copy link
Owner

This maybe issue that your file is not linked with file system like in #17

@phaistonian
Copy link
Author

  1. Created folder test in localhost (root)
  2. Added an index.php file http://d.pr/i/cB8a
  3. Added a JS file http://d.pr/i/Uyvb
  4. No matter what I tried, no dynamic reload takes place

@sokolovstas
Copy link
Owner

@phaistonian I have added a new function called "Show file mapping", could you start debugging and post content of mapping here

@phaistonian
Copy link
Author

Sure.

[
{
"file": "/Users/phaistonian/Dropbox/WEB/test/js.js",
"scriptId": "171",
"url": "http://localhost/test/js.js"
},
{
"file": "/Users/phaistonian/Dropbox/WEB/test/",
"scriptId": "207",
"url": "http://localhost/test/"
}
]

@phaistonian
Copy link
Author

Does this mean I can't have js files named js.js in order for the package to work?

On Mar 21, 2013, at 1:50 PM, Stanislav [email protected] wrote:

This is because your file name is js.js


Reply to this email directly or view it on GitHub.

@sokolovstas
Copy link
Owner

There is some issues. First is file name and second is path. I try to fix it. You can try name your file test.js and put it in folder js and tell me result please?

sokolovstas added a commit that referenced this issue Mar 21, 2013
@sokolovstas
Copy link
Owner

Okey, I just pushed changes, try it now! With your first file name and locations.

sokolovstas added a commit that referenced this issue Mar 21, 2013
Fix path and file name issues fix #26
@phaistonian
Copy link
Author

Removed package, re-installed i.

No luck.

Could you post your settings here so I am not sure I am not having any blues due to the settings being wrong?

@sokolovstas
Copy link
Owner

You try ST3 version, right? In my settings just "set_script_source": true

@phaistonian
Copy link
Author

Yeap.

On ST3.

Somehow I got it to work. Then I erased (command + a, backspace) all contents and then I got this.

http://d.pr/i/kkVC

Thanks for your efforts.

@sokolovstas
Copy link
Owner

yap if you erase all script and save it somehow chrome can't save it.
But now it works as expected?

@phaistonian
Copy link
Author

I didn't erase the script per-se.

I erased the script's contents (from Sublime).

Yes, at least for a while, it worked as expected indeed.

Thanks :)

@sokolovstas
Copy link
Owner

Is it work or not? :)

@phaistonian
Copy link
Author

It did :)

Will try more and let you know though.

Again, thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants