-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No information provided when set is fixed to certain element #3
Comments
Made a suggestion in #4, you can download the extension (VSIX) including the suggested changes here: Clicking on a quoted element will now show the expected set at the argument position of the enclosing parameter/variable/equation/set in the sidebar. The picture shows this for the quoted element "67kW": It is the 2nd domain argument of the
Known issues
This happens because PEG.js outputs the same start and end locations for every domain encountered within a symbol, e.g. {
type: "functionCall",
name: "c_p_t_i",
args: [
{
name: "curCrops",
location: {
start: { offset: 8, line: 1, column: 9 },
end: { offset: 39, line: 1, column: 40 },
},
},
{
name: "plot",
location: {
start: { offset: 8, line: 1, column: 9 },
end: { offset: 39, line: 1, column: 40 },
},
}, To find the index of the domain that was clicked upon, we currently check if the word that was clicked upon is included the domains "name" property, and also if the start and end positions match with the current cursor position. |
fixed by #4 |
When I specify an element name in quotes to cause GAMS to operate over just a single element of a set (e.g. "noTill" in "c_p_t_i(curCrops,plot,"noTill","normal"), gams-ide does not provide me any information on this set.
However, often it would be helpful to 1) get the name of the set and 2) get the same information as clicking on the set.
The text was updated successfully, but these errors were encountered: