You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Code/Tools/LuaIDE/Source/LUA
lumberyard-employee-dm 669caca9cc
Updated Launching of Lua Editor to supply the project-path (#7706)
* Updated Launching of Lua Editor to supply the project-path

The Lua Launch logic also uses the AzFramework ProcessLauncher instead
of Qt. This has the benefit of being able to pass arguments as an array
instead of in a single string. Therefore paths with spaces in them also
work.

Tweak the Settings Registry logic to locate the
project-path/engine-path by scanning upwards for a
project.json/engine.json respectively to inject the found paths to the
front of the command line parameters instead of the back.
This has the effect of making sure that command line parameters for the
project-path/engine-path always takes precedence over scanning upwards
for a project.json/engine.json.

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>

* Removed prepend of EngineRoot in CheckProjectPathProvided

The Editor would attempt to validate that the project path supplied via
the command line contained a valid project.json file before contining
the Editor startup flow.

This was taking the engine root path and appending the project path to
it, which works when the project path is absolute

But when the project path is relative it is treated as relative to the
current working directory by the SettingsRegistry, but the logic in the
CheckProjectPathProvided was treating it has relative to the engine
root. Therefore supplying a relative path as part of the Editor.exe
launch command would fail.

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>

* Fixed resolving of relative paths to absolute paths in the Editor

The Editor was changing the current working directory to the nearest
ancestor directory containing an `engine.json` file.
This resulted in the ConvertToAbsolutePath function resolving relative
paths to that directory instead of the launch directory of the Editor.

Signed-off-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com>
4 years ago
..
CodeCompletion Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
BreakpointPanel.cpp Range adaptor support (#7388) 4 years ago
BreakpointPanel.hxx Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
ClassReferenceFilter.cpp Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
ClassReferenceFilter.hxx Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
ClassReferencePanel.cpp Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
ClassReferencePanel.hxx Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
DebugAttachmentButton.cpp Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
DebugAttachmentButton.hxx Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUABreakpointTrackerMessages.cpp Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUABreakpointTrackerMessages.h Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAContextControlMessages.h Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUADebuggerComponent.cpp Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUADebuggerComponent.h Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorBlockState.h Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorBreakpointWidget.cpp Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorBreakpointWidget.hxx Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorContext.cpp Updated Launching of Lua Editor to supply the project-path (#7706) 4 years ago
LUAEditorContext.h Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorContextInterface.h Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorContextMessages.h Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorDebuggerMessages.h Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorFindDialog.cpp Fix: Find function reports code with a line offset of 1 (#6331) 4 years ago
LUAEditorFindDialog.hxx Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorFindDialog.ui Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorFindResults.cpp Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorFindResults.hxx Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorFindResults.ui Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorFoldingWidget.cpp Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorFoldingWidget.hxx Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorGoToLineDialog.cpp Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorGoToLineDialog.hxx Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorGoToLineDialog.ui Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorMainWindow.cpp Lua Editor: Prev Document Tab option from the View menu is misspelled #7345 (#7402) 4 years ago
LUAEditorMainWindow.hxx Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorMainWindow.ui Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorPlainTextEdit.cpp Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorPlainTextEdit.hxx Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorSettingsDialog.cpp Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorSettingsDialog.hxx Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorSettingsDialog.ui Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorStyleMessages.cpp Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorStyleMessages.h Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorSyntaxHighlighter.cpp Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorSyntaxHighlighter.hxx Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorView.cpp Fix: jumps disordered (Go to Line,Transpose Lines UP,Transpose Lines (#6210) 4 years ago
LUAEditorView.hxx Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorView.ui Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAEditorViewMessages.h Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUALocalsTrackerMessages.h Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAStackTrackerMessages.h Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUATargetContextTrackerMessages.h Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
LUAWatchesDebuggerMessages.h Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
StackPanel.cpp Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
StackPanel.hxx Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
TargetContextButton.cpp Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
TargetContextButton.hxx Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
WatchesPanel.cpp Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago
WatchesPanel.hxx Moves Code/Tools/Standalone to Code/Tools/LuaIDE 4 years ago