I attempting to edit Windows Terminal's JSON config file:
When I save, the document is minified:
I only have two extensions (I have removed others and restarted vscode). How do I find out where the minification is occuring? How do I stop it?
This is a bug in Windows Terminal. It's now fixed in the current Preview release. Mike Griese from Microsoft answered this via GitHub:
The profiles.json thing is a temporary thing. Unfortunately, Windows.Data.Json always writes out json as a single line, without the ability to pretty-print it, and we re-write the profiles.json to make sure that it stays up to date with the schema of the app. So currently, it'll keep re-writing it. But that's a huge pain point that we want to fix ASAP.
This question already has answers here:
What's a quick way to comment/uncomment lines in Vim?
(52 answers)
Closed 7 years ago.
I'm new(bie) in vim. I've got the following mapping to comment my python code :
nmap cc 0i#<ESC>
I would like to have the same mapping to uncomment a line. I think I need an function to check the first character of the line. Do you know how I could do the tricks ?
thanks.
edit : It's not the same as that question , I wonder how to do that without plugin.
You shouldn't attempt to implement this (poorly) yourself; this is a solved problem, and you can choose from several good plugins. See Comment Lines according to a given filetype for a list of plugins.
As a learning experience, attempting a mapping is fine, though. Here's one approach that uses :help map-expr to check the line for the existence of a comment first:
nnoremap <expr> cc getline('.') =~# '^#' ? '0x' : '0i#<ESC>'
PS: You should use :noremap; it makes the mapping immune to remapping and recursion.
There is this plugin. It's very good and he works for many languages.
I need to use the navigator.getUserMedia() function to use the webcam to take pictures on a windows application made with HTML5, and compiled on brackets-shell w/ cef3 (version 3.2171.1902).
Is this possible, or cef3 does not support webrtc at all?
I read online something about passing CEF command line arguments (--enable-media-stream) but I don't know where to put those commands...
Update:
I tried using nwjs instead of brackets-shell and it worked without any trouble.
http://nwjs.io/
There are two overrides available that allow you to manipulate the command lines of the child processes, they are CefBrowserProcessHandler::OnBeforeChildProcessLaunch and CefApp::OnBeforeCommandLineProcessing
There is a nice short discussion here: "How to pass additional command line arguments to subprocess".
We use OnBeforeCommandLineProcessing to set command line options that could have been set on the args in main(), but weren't. We use OnBeforeChildProcessLaunch to set arguments for child processes, such as command line arguments we did get in the arglist that we want propagated to our child processes. One of these should do what you want.
When I query a table in MySQL Workbench, no results are shown, the result section is just blank, no grid or anything. However if I export the data, it is all there. Everything worked fine until a couple days ago.
Query settings:
Max Length = 65536
Continue on SQL Script Error = true
"Safe Updates = true
Leave autocommit mode enabled = true
Progress status update interval = 500
Default algorithm for ALTER table = Default
Default lock for ALTER table = Default
Limit Rows = true
Limit Rows Count = 1000
Max Field Value Length to Display = 256
Treat BINARY/VARBINARY as nonbinary character string = false
Confirm Data Changes = True
No queries work, an example would be SELECT * FROM database.address
This is a known bug: link.
Upcoming release 6.2.2 fixes this for OS X (Unfortunately, Linux version is still broken).
At least on my computer it's not dissapeared, just folded, and it's edge is almost merged with the edge of 'Action Output' block. When you move your mouse to that edge, the cursor starts looking like a dash with two arrows. Slowly move it couple of pixels higher until you catch the small 1px area where the cursor changes to a dash with a single arrow. Then catch it and pull : )
I've made a couple of photos to illustrate this.
New to MySql myself and found this is happening on Windows as well. Goto Query > Explain Current Statement > click on the Results Grid icon on the far right of the Visual Explain window that shows by default. You may have to toggle through the up down arrow icons to see it.
I had the same problem after upgrading to Ubuntu 14.10. I found this link which describes the steps to be followed in order to apply the patch. It takes a while since you have to start all over again: downloading, building, installing... but it worked for me! Sorry I'm not an expert and I can't provide further details.
Here are the steps described in the link above:
If you want to patch and build mysql-workbench yourself, get the source from for 6.2.3. From the directory you downloaded it to, do:
wget 'http://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-workbench-community-6.2.3-src.tar.gz'
tar xvf mysql-workbench-community-6.2.3-src.tar.gz && cd mysql-workbench-community-6.2.3-src
wget -O patch-glib.diff 'http://bugs.mysql.com/file.php?id=21874&bug_id=74147'
patch -p0 < patch-glib.diff
sudo apt-get build-dep mysql-workbench
sudo apt-get install libgdal-dev
cd build
cmake .. -DBUILD_CONFIG=mysql_release
make
sudo make install
Hope this can be helpful.
It was really frustrating as it was still happening in the workbench version 6.3.10 (for mac) available in the mysql official site (here).
I got it resolved by first collapsing the bottom panel (check the top right in the attached image (termed as collapse button)) and then pulling up the empty region from the bottom.
Now if I again click on collapse button this time result grid is visible along with the action grid.
The problem, as it is described, corresponds exactly to the bug MySQL Bugs: #74147: empty grid result, incompatibiliity with libglib_2.42
The good news is it's almost closed.
A patch is available since today.
EDIT :
In Debian Jessie (testing), the problem is solved with the package mysql-workbench 6.2.3+dfsg-6 available since today.
Update manually from mysql website
Here's a solution for Ubuntu 15.04 users running Mysql Workbench 6.2.3.
I was able to resolve the issue of missing results in the Mysql workbench by just upgrading mysql-workbench to version 6.3.3 from http://dev.mysql.com/downloads/workbench/. You will need to download the one marked for Ubuntu 14.10. An install via Ubuntu software center resolved the issue. Hope this helps.
This was still happening to me on version 6.3.9 on OSX. I downloaded 6.1.7 again to actually see the result grid again.
What a pain in the butt!
The easiest fix for me to see the Result Grid again was to click on Explain Command
[
After that Execution Plan is going to be shown and on the right side you can click on Result Grid
I'm using MySqlWorkbench 6.3.9 on macOS and has this problem. I removed the app and installed 6.3.10 which solves the problem.
If you do not want to compile it yourself you can go to:
Applications→Ubuntu Software Center→Edit→Software Sources→Updates
there you can check hardy-proposed is ticked(for 14.10 will be utopic-proposed)
Source
then simply go to terminal and type:
sudo apt-get install mysql-workbench
As a note, you will get other updates to, witch may not be stable!!!
MySQL Workbench 6.3.4 fixes this issue. Custom builds are not needed anymore.
http://dev.mysql.com/downloads/workbench/
The result set wasn't showing for me either. I was able to make it appear by hiding the output area and running a simple select statement. Then I "show"ed the output area again and had what I was looking for -- both the result set and the output area
I was able to solve this issue by doing the following...
Go to the MySQL website for Workbench: https://dev.mysql.com/downloads/workbench/
Once there scroll to the bottom of the page and click on the tab that says "Development Releases"
Select your platform, download & install
You will likely want to uninstall any workbench packages already installed. GL!
I had the same issue. Using MySQL 6.1 Workbench.
After a while (2 mins), it just crashed. Reported bug, saved files and reopened. It works now.
I guess I would suggest if that happens again, to immediately save the open scripts, close MySQL and restart it.
The problem is with the TAB. From the tab's title I assume you first made a right click > "Select Rows - Limit 1000". But when you enter a different query in the opening tab, it won't show anything any more... Don't know why. Open a new tab for manual queries, then it will work.
I have updated macOS to 10.13.4 and it works.
I searched for almost an hour, tried everything, restarted Workbench, upgraded Workbench, used the "explain query" trick, but nothing worked.
The explanation for the result grid not showing anymore was actually very stupid: there was a INSERT INTO mytable few lines above the SELECT query. I share it anyway because it might help some other people.
I had this problem too. I think it is a problem "screen size" related. Some Workbench versions present this problem, accordingly the numerous other answers.
However, I'd solved this by simply lowering the monitor resolution and the Result Grid has back to be draggable with the mouse pointer (very like the Thaumant answer already indicated).
I've taken these photos to illustrate what I'm saying.
At 1440x900 the Result Grid draggable selector are not being showed...
Now, in 800x600 resolution (with 125% of scale) the Result Grid has back to be draggable !
Works too with greater resolutions along with bit of scaling*
Really quick question about PhpStorm (I see behaviour on version 6 and 7, I'm using XDebug)
When debugging, I can add watches and I can go to different stack frames, but when I try and watch variables in a different stack-frame to the current one that program is in, nothing happens when I try and watch variables (it just goes green and shows no variable value nor error)
My question is, should I be able to watch local variables from other stack frames? (ie has my local configuration got a bug)
And if I can't watch local variables from other stack frames, is there another IDE that will support it?