acarabott / chromerepl Goto Github PK
View Code? Open in Web Editor NEWA Sublime Text plugin to execute JavaScript in Google Chrome
License: MIT License
A Sublime Text plugin to execute JavaScript in Google Chrome
License: MIT License
I noticed it via this HN comment: https://news.ycombinator.com/item?id=17282926
I have the same Sublime Text setup on macOS 10.13 and Windows 10 and it only shows this issue on Windows.
The log on both systems shows this when I open the command pallete and it seems to be unrelated as it happens also on the not affected macOS.
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): localhost
WINDOW COMMAND ENABLED True
WINDOW COMMAND ENABLED True
WINDOW COMMAND ENABLED True
WINDOW COMMAND ENABLED True
WINDOW COMMAND ENABLED True
WINDOW COMMAND ENABLED False
Hi, i installed ChromeREPL plugin from package control but this one doesn't work. Here the errors i have in my console:
reloading plugin Chrome REPL.ChromeREPL
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 116, in reload_plugin
m = importlib.import_module(modulename)
File "./python3.3/importlib/__init__.py", line 90, in import_module
File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 1183, in load_module
exec(compile(source, source_path, 'exec'), mod.__dict__)
File "/Users/bhe/Library/Application Support/Sublime Text 3/Installed Packages/Chrome REPL.sublime-package/ChromeREPL.py", line 5, in <module>
ImportError: No module named 'ChromeREPL'
reloading plugin Chrome REPL.ChromeREPLConnection
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 116, in reload_plugin
m = importlib.import_module(modulename)
File "./python3.3/importlib/__init__.py", line 90, in import_module
File "<frozen importlib._bootstrap>", line 1584, in _gcd_import
File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 1183, in load_module
exec(compile(source, source_path, 'exec'), mod.__dict__)
File "/Users/bhe/Library/Application Support/Sublime Text 3/Installed Packages/Chrome REPL.sublime-package/ChromeREPLConnection.py", line 4, in <module>
ImportError: No module named 'ChromeREPL'
Did you have any idea how to resolve it? Thanks
1.Chrome REPL: Restart Chrome with remote debugging* command
2.Chrome REPL: Connect to Tab command
## How to use these commands?help ,thx~
I personally don't need something like this a lot, but great integration idea from Atom to repl. I appreciate tools like this.
Replace devtools protocol with a chrome extension + native messaging. This would be more secure when using the default user profile.
https://developer.chrome.com/extensions/nativeMessaging#native-messaging-host
you should definitely not reuse the same chrome profile that someone is already using. i would recommend it should be impossible to use chromerepl without a custom profile dir being set.
you can set --user-data-dir
to a path that will be used for the profile.
you can follow the basic setup in here https://github.com/GoogleChrome/chrome-launcher/blob/f126c3a0ff69f99deb97aa3ebe5c8e92562fcca7/src/utils.ts#L61-L74
it should handle WSL, even.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.