command line options to open file on line

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

command line options to open file on line

1,703件の閲覧回数
funbotix
Contributor I

I'm looking for a way to cause the currently opened instance of MCUXpresso to open a file at a specified line. Search tools like grepWin have editor configurations to support executing a command line when a search result is double-clicked. For example, here's the options to do that using Notepad++.

C:\Program Files\Notepad++\notepad++.exe %path% -n%line%

 

I don't see relevant command line options in the MCUXpresso IDE help feature. Can someone point me to where relevant MCUXpresso command line options are documented?

Thanks!!

0 件の賞賛
返信
3 返答(返信)

1,690件の閲覧回数
ErichStyger
Specialist I
0 件の賞賛
返信

1,675件の閲覧回数
funbotix
Contributor I

Thanks, but unfortunately your suggestion didn't work for me. Perhaps it's due to something in MCUXpresso. Your suggestion resulted in attempting to open another instance of MCUXpresso, which failed because the associated workspace was already in use by the prior instance of MCUXpresso.

These are the command lines I tried (for grepWin) (ensuring the IDE was closed first).

C:\nxp\MCUXpressoIDE_11.4.1_6260\ide\mcuxpressoide.exe -name Eclipse --launcher.openFile %file%:%line%

C:\nxp\MCUXpressoIDE_11.4.1_6260\ide\mcuxpressoide.exe -name mcuxpressoide --launcher.openFile %file%:%line%

While they both opened the IDE, neither opened a file in the IDE.

 

0 件の賞賛
返信

1,669件の閲覧回数
ErichStyger
Specialist I

Yes, I faced the same thing. I'm not sure why it does not work as expected. Some posts in the internet somehow suggest to add a custom entry point, but not sure why this would be needed.

0 件の賞賛
返信