Login Page - Create Account

Support Board


Date/Time: Sun, 06 Jul 2025 09:00:55 +0000



New/Open Custom Studies File Doesn't Respect Location of notepad++

View Count: 488

[2024-12-05 01:06:53]
Jedi Trader - Posts: 14
Repro:
1. Install Sierra Chart into a custom target path (e.g. Sierra Chart\...)
2. Verify that General Setting => Paths => Text Editor Path and Filename has correctly captured the installation folder
3. Open Analysis => New/Open Custom Studies File
4. Attempt new file name

Results:
A. Files successfully created;
B. Error opening per log:

2024-12-04 19:57:08.194 | Error creating process C:\Program Data\NPP\notepad++.exe. Windows error code 2: The system cannot find the file specified. *

Observation: the path in the log and the path visible under General Settings>>Paths are not equal.
[2024-12-05 04:44:00]
Sierra_Chart Engineering - Posts: 20092
This error is not reproducible. The text editor folder path is set correctly, and we do not get that error on a new installation and the notepad editor is started in the new installation subfolder for NPP. We do not know how it would be set to this folder: C:\Program Data\

There is nothing in Sierra Chart that would ever set it to that location.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-12-05 13:20:22]
Jedi Trader - Posts: 14
Revised repro:
1. Install Sierra Chart into the default target path (i.e. c:\Program Data\...)
2. Cut and paste the entire installation into a new root folder: c:\Sierra Chart\
3. Start the application and verify that General Setting => Paths have automatically adapted to the new folder, as you intend.
4. Open Analysis => New/Open Custom Studies File
5. Attempt new file name

You must be writing the original absolute path c:\Program Data\... to configuration and not updating it in your folder-self-discovery process. Unfortunately, because your configuration file is not human readable, I cannot help you with that. Incidentally, this issue is low priority for me personally, because I use VS 2022 for C++. It is primarily relevant to the "portability" of an installation.

Date Time Of Last Edit: 2024-12-05 13:49:20
[2024-12-05 14:27:50]
Sierra_Chart Engineering - Posts: 20092
The Text editor path will not update when you move Sierra Chart. You will need to manually change that.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-12-05 14:48:49]
Jedi Trader - Posts: 14
Sorry to contradict you, but all of the values under "Files and Folder Paths" do move correctly. I just tried moving the whole installation from c:\Sierra Chart\... to c:\Charting\... All four of the listed files and folder paths (including the "Text Editor new Path and Filename") correctly moved, automagically.

But still, when I go to create a New/Open Custom Studies File I get the same (old) error message.

2024-12-05 09:39:55.547 | Error creating process C:\Program Data\NPP\notepad++.exe. Windows error code 2: The system cannot find the file specified. *

I notice one other casualty of the move:

2024-12-05 09:36:16.982 | Error creating the file folder: C:\Sierra Chart New\Program Data\Images\. Windows error code 3: The system cannot find the path specified. *

So, your automatic adjustment of paths for your portability scenario is working reasonably well, but not flawlessly. I'd give these bugs low importance, unless the portability scenario (referenced in the docs below) is important to your users.

Transferring Sierra Chart Settings and Data From Existing Installation to New Installation: Simple Transfer/Copy of Sierra Chart Installation to Another Folder or Computer System
[2024-12-05 15:33:48]
Sierra_Chart Engineering - Posts: 20092
Yes, but that particular folder does not automatically update. It may point to a fixed location where the editor is located.

Paths do not automatically update:
So, your automatic adjustment of paths

There is an option with the Data Files Folder to cause it to use a subfolder in the Sierra Chart installation folder always. Also, if the Data Files Folder path is completely wrong, it will default to that same subfolder.

You are making an assumption that paths automatically update, and they do not. The Data Files Folder does support that capability but only if enabled and only if the prior path is invalid.

There is definitively no bug here. You are looking for functionality that is just not supported.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-12-05 16:23:46]
Jedi Trader - Posts: 14
Happy to do a brief Google Meeting video call to do a live demo of what I'm clearly seeing (the automatic moving of the four paths upon a cut and paste of the installation; and, the persistence of an old path for notepad++). Of course only if this issue rises to the level of justifying your further investment of time. Otherwise, perfectly happy to drop it. As I noted, I'm not personally affected by this issue.
[2024-12-06 17:27:03]
Jedi Trader - Posts: 14
I found a workaround for the case of a incorrect path to notepad++, despite this being set correctly via:

General Settings => Paths => Text Editor Path and Filename

It seems that a persistent incorrect path can be viewed and reset (and here it is respected) via the somewhat surprising location:

Analysis => Build Advanced Custom Studies => File => Select Editor => Yes => Folder

This resolves the error in creating a new study file.

These two workflows apparently access two versions of ostensibly the same configuration parameter, which is not necessarily kept synchronized, in two separate storage places.

(Clearly, there should be only one version.)
Date Time Of Last Edit: 2024-12-06 17:31:57
[2025-05-20 14:11:21]
The 2 Minute Trader - Posts: 5
I have experienced exactly the same thing, so thanks for finding the solution. This is still a bug in the latest version (2757) as of today.

I made a new install at Y:\SierraChart-Stage5\
In General Settings > Paths I see Y:\SierraChart-Stage5\NPP\notepad++.exe (see attached image)

When I go to Analysis > New/Open Custom Studies File, I get the correct window at Y:\SierraChart-Stage5\ACS_Source (see attached image)

But when I select a file and click Open, I get the Message Log pop-up with the following message:
"2025-05-20 14:02:37.977 | Error creating process Y:\SierraChart\NPP\notepad++.exe. Windows error code 2: File not found. *
2025-05-20 14:02:37.977 | Error creating the Advanced Custom Studies editor process. *" (see attached image)

Note the Y:\SierraChart\NPP\notepad++.exe in the error message. The path reflected in the General Settings is clearly not the path the process uses. The process is incorrectly looking in the default location, not the actual installation location (which is correctly reflected in General Settings).
Date Time Of Last Edit: 2025-05-20 14:20:32
imageScreenshot 2025-05-20 at 11.55.56 pm.png / V - Attached On 2025-05-20 14:08:17 UTC - Size: 126.61 KB - 92 views
imageScreenshot 2025-05-21 at 12.03.43 am.png / V - Attached On 2025-05-20 14:08:29 UTC - Size: 179.29 KB - 92 views
imageScreenshot 2025-05-21 at 12.03.02 am.png / V - Attached On 2025-05-20 14:08:41 UTC - Size: 28.89 KB - 91 views
[2025-05-20 16:19:43]
John - SC Support - Posts: 40745
There are two places to set the editor to use.

The one under "Global Settings >> General Settings >> Paths" is for editing text files, such as when selecting "Edit >> Edit Data - Historical Chart". Refer to the following:
General Settings Window: Text Editor Path and Filename (Global Settings >> General Settings >> Paths >> Files and Folder Paths)

The other one is set by selecting "Analysis >> Build Custom Studies DLL >> File >> Select Editor". This is used when you select "Analysis >> New/Open Custom Studies File". Refer to the following:
Analysis Menu: Select Editor (Build Advanced Custom Studies DLL Window >> File)
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2025-05-21 00:58:17]
The 2 Minute Trader - Posts: 5
Thanks, John. That explains the two different settings, but there still seems to be a bug.

The installer sets the default location/path for ALL the various folders and application components correctly (in relation to the installation location), EXCEPT, it does NOT set the correct default path for the default editor. If there is a rational reason for this, I'd be interested to know.
[2025-05-21 14:05:38]
John - SC Support - Posts: 40745
We do not know the reason why this is the case.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2025-05-21 20:12:33]
Sierra_Chart Engineering - Posts: 20092
We had a quick look at this. The text editor path, is an empty string initially. In this case, when it is referenced, it is returned as:
[SierraChartInstallationPath]\NPP\Notepad++.exe

And really this is what you would see by default. You would never see an empty string.

We do see the Advanced Custom Study editor is stored as a separate variable, initialized to the same as the text editor. We will add a setting for it to Global Settings >> General Settings >> Paths.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2025-05-21 20:13:00

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account