Can't rename in WebStorm 9 - refactoring

I have a node/react/flux (javascript) app in WebStorm 9. Every time I try and rename a file I get the following popup:
Extract Variable is not finished yet.
Continue Started ( which does nothing ) Cancel Started ( which also
doesn't help )
Does anyone know what this is about?

Related

How can i automatically run every file with .osz format when there are downloaded

I want to automatically run every .osz file when its downloaded.
There used for a game and i need to manuely start everyone after another when i want to add the files to my gamefiels (By starting the file it automaticly installs the files tot he game folder).
It takes 2 seconds usually to add the files so i addet an delay of 5 seconds.
There are downloaded at C:\Users\MushroomFX\Downloads\Chrome .
Im using this:
#echo off
cd C:\Users\MushroomFX\Downloads\Chrome
cls
:st
start *.osz
timeout 5
goto st
but it doesnt work
Also if I rename the file to Test.osz and do start Test.osz it works. So i think that its executable. But it wont start with start *.osz. Or do i need an external .vbs file for it to work?
Pls help

Files copied with batch script disappear from folder once terminal is closed

Right now I'm trying to work on a batch script that will take files from one directory, rename them, and copy them into another directory. It's incredibly simple but I'm running into a strange problem where the script will copy and rename files appropriately, but as soon as the terminal closes and the script terminates, the files disappear as if nothing was used.
REM displays as mmddyyyy
set copy_date=%date:~4,2%%date:~7,2%%date:~10,4%
set file_path=C:\wkspace\dir\files\
set archive_path=C:\wkspace\archive\files
Call :copy_files_to_archive
pause
:copy_files_to_archive
set dir_list=\dir1 \dir2 \dir3 \dir4
for %%i in (%dir_list%) do (
if %%i==\dir1 (
copy "%file_path%%%i_filename_%copy_date%.xml" "%archive_path%\sub_dir%%i_filename-ARCHIVED_%copy_date%.xml"
)
if %%i==\dir2 (
... the same code is repeated for the rest of the files through \dir4
)
)
EXIT /B 0
Like I said earlier, the files are showing up in the target directory and they're renamed. But when I hit any key in the terminal to close it, all of the files just disappear. They aren't hidden or anything so I'm stumped.
Just a note: I stripped this code down to only focus on one file because it's repetitive. Focusing on the one file should fix my problem
All help is appreciated! Thanks!!

Windows linux subsystem button not working as expected

I just fresh installed windows on my machine and added the linux subsystem (ubuntu for now..) but I am experiencing a strange behavior when using it. The letter i is not working. Actually it even produce the sound of the error when pressed ( the classic ding ). The button has absolute no problem as it works just fine when in windows. It works in command line ( windows ) but it also works in linux subsystem when I open nano and start typing. The problem is only in the bash. ( If I type a command in nano
#!/bin/bash
mkdir iiii
and execute the script it will run as expected.
So the only conclusion I can come up with is there is a shortcut on the button i which i cannot find and is not working ( thus creating the error sound ).
Any ideas how can i disable this shortcut so i will be able to type "i" on my console ( which apparently I use more than expected.. and noticed due to the errors! )
Thank you in advance.
Edit
Even pasting a word containing i will skip writting it ( tried to paste history got hstory + beep )
Ok got the solution on my own. Apparently including /etc/inputrc on my profile ( inside my .inputrc ) was creating the problem and its not ubuntu specific. Tested on subsystem and on actual debian installation and it does the same.! So just removed the include and it works

VBScript runtime error: Object required error started appearing randomly - code worked fine until today

I'm currently running a simple batch file (.bat) that kicks off a plethora of vbs scripts. The file has been running perfectly ever day for the past two weeks, until today.
Here is a sample of the code:
Echo ONLY CONTINUE IF YOU ARE SURE THAT YOU WANT TO RUN ALL OF THESE TASKS!!!!!!
timeout /t 30
START cscript "FILEPATHHERE\vbsscriptname.vbs"
Echo vbs script is running!
timeout /t 30
ECHO Complete!
PAUSE >nul
There are about 100 of those vbs scripts. Like I said, they all ran fine until today. The error I am getting is:
FILEPATH\VBS SCRIPTNAME.vbs(7, 1) Microsoft VBScript runtime error: Object required
I did a little research on this error, and I'm not really sure how it applies to what I'm trying to do, especially since this was working fine for weeks. Nothing has changed in the code, so I'm not sure where to start trouble shooting.
Can anyone help?
Of course, within minutes of posting this on stackoverflow, because I couldn't find an answer..well.. I found an answer here: http://support.sas.com/kb/35/654.html
This doesn't explain why the file has been running fine for weeks, but I fixed it with this method and it is working now, for now...
Being that this version of windows was 64-bit, it needs to be directed toward the 32-bit version of cscript. (C:\WINDOWS\SysWOW64\cscript) I replaced cscript with the 32bit version and all is well now.
Echo ONLY CONTINUE IF YOU ARE SURE THAT YOU WANT TO RUN ALL OF THESE TASKS!!!!!!
timeout /t 30
START C:\WINDOWS\SysWOW64\cscript "FILEPATHHERE\vbsscriptname.vbs"
Echo vbs script is running!
timeout /t 30
ECHO Complete!
PAUSE >nul

BAT File - START not working randomly on some Windows 7 machines

I have a bat file I'm using to start up GoogleChromePortable and open a web page in Kiok mode.
It works great on my machine and 3 others, except for one where it alerts me that the .exe cannot be found i.e. the path set is not working. Here's the code:
#echo off
set path=%path%;"./folder/chromeFolder"
START /b GoogleChromePortable.exe --kiosk "../../../../index.html"
I run this off a usb.
The ../../../../index.html is there because chrome starts 4 layers deep in the folder structure even though GoogleChromePortable is 3 above the Chrome.exe (might not be relevant).
Tested on 1*Windows8(worked), 1*Windows7(worked), 2*WindowsXP(worked) BUT 1*Windows7(Failed).
Error Message:
"Windows cannot find GoogleChromePortable.exe Make sure you typed the address correctly"
I have tried starting the BAT in administrator mode and this still did not work.
I have tried typing this in step by step and it's the
START GoogleChromePortable.exe
that is failing
SOLUTION
Right. Fixed it. No idea why this works so if anyone knows I'd love to know. Instead of the code above I've used:
START %~dp0folder/chrome/GoogleChromePortable.exe --kiosk "../../../../index.html"
and that's it. Any ideas why this works and the other method doesn't on 1 machine?
"3 above IT" - 3 above what?
You appear to be attempting to add ".\folder\chromefolder" to the path - perhaps it might be an idea to add the directory that is "3 above it" so that GoogleChromePortable.exe is also on the path - presumably on your USB.
Mayhap GoogleChromePortable.exe is already on the path on those other machines...
Right. Fixed it. No idea why this works so if anyone knows I'd love to know. Instead of the code above I've used:
START %~dp0folder/chrome/GoogleChromePortable.exe --kiosk "../../../../index.html"
and that's it. Any ideas why this works and the other method doesn't on 1 machine?

Resources