7 Replies Last post: Oct 17, 2013 12:04 AM by Andriy Bazanov  
Jozef Môstka Newbie 6 posts since
Aug 18, 2013
Currently Being Moderated

Oct 16, 2013 6:22 PM

refresh file by command line

Hi All.

 

can I refresh file from command line? when I changed it by code generation and after call command

"C:\....\PhpStorm.exe" --line 1 "C:\dev\project\generated\test.txt"

 

now is file not refreshed.

 

thanks.

Andriy Bazanov Master 3,991 posts since
May 28, 2010
Currently Being Moderated
Oct 16, 2013 7:02 PM in response to: Jozef Môstka
Re: refresh file by command line

Hi there,

 

now is file not refreshed.

1) What do you mean by "not refreshed"? I assume it still shows old content?

 

2) Does it necessarily to be "via command line"? Why?

 

3) To refresh files from within IDE use " File | Synchronize"

Andriy Bazanov Master 3,991 posts since
May 28, 2010
Currently Being Moderated
Oct 16, 2013 10:12 PM in response to: Jozef Môstka
Re: refresh file by command line

1) As far as I'm aware PhpStorm has no synchronize command issued from command line (at very least I know none)

 

2) The automatic synchronisation is already available: "Settings | General | Synchronize files on frame activation" -- happens when IDE receives focus from another app/desktop (i.e. on Alt+Tab)

 

3) In cases when automatic synchronisation cannot spot changes (for whatever possible reason: because project has many files; or OS specific/disk-specific issue (i.e. slowdowns because of Antivirus; heavy disk activity etc); or whatever else) the manual synchronisation is available (File | Synchronize)

 

 

P.S.

You can use built-in terminal (upcoming v7) or command line tools functionality (especially this one) -- IDE should be more accurate/persistent with detecting changes/finding new/deleted files when executing commands from here.

Andriy Bazanov Master 3,991 posts since
May 28, 2010
Currently Being Moderated
Oct 16, 2013 11:40 PM in response to: Jozef Môstka
Re: refresh file by command line

thanks. build in command line will be good. I use version 7. what is command for synchronize? or where I can find list of commands?

I think you (possibly) misunderstood me.

 

By "use command line tools" I meant "Tools | Run Command..." functionality -- use it to execute your commands that you use to generate your code (the idea is to do it from inside IDE rather than from outside). That's of course, if command line tool was used in first place. http://confluence.jetbrains.com/display/PhpStorm/Command+Line+Tools

Andriy Bazanov Master 3,991 posts since
May 28, 2010
Currently Being Moderated
Oct 17, 2013 12:04 AM in response to: Jozef Môstka
Re: refresh file by command line
but when I do it from that command line, can I synchronize file from there ?

As far as I'm aware ... when any command gets executed via Command Line Tools, it should automatically sync after it was completed (at very least it's my impression)

 

is there command for synronization?

File | Synchronize ??

 

or is it in ide some comand for show last runed commands list?

Sorry, I have no idea what this one is about.

More Like This

  • Retrieving data ...