Skip to content
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

Docs Integration: Several in-built variables do not open their own manual page if clicked in Code Editor 2 #6249

Closed
gm-bug-reporter bot opened this issue Jun 13, 2024 · 15 comments
Assignees
Labels
docs-bug GameMaker Manual Bugs
Milestone

Comments

@gm-bug-reporter
Copy link

Description

Pressing F1 or using a middle mouse button click on cursor_sprite built-in variable doesn't open the related manual page, but instead opens up manual home page.

Manual Link

https://manual.gamemaker.io/monthly/en/#t=GameMaker_Language%2FGML_Reference%2FGeneral_Game_Control%2Fcursor_sprite.htm&rhsearch=cursor_sprite&rhhlterm=cursor_sprite

Steps To Reproduce

Anywhere in the code write:
cursor_sprite
and try middle clicking it or use F1 while mouse is hovering over the name.

Which version of GameMaker are you reporting this issue for?

IDE v2024.4.1.152 Runtime v2024.4.1.201

Which operating system(s) are you seeing the problem on?

Windows 10.0.19045.0

bd7c0583-30b8-41b0-b42e-46e28308d0cf

@gm-bug-reporter gm-bug-reporter bot added the docs-bug GameMaker Manual Bugs label Jun 13, 2024
@stuckie stuckie moved this from Triage to Todo in Team Workload Jun 14, 2024
@stuckie stuckie added this to the 2024.8 milestone Jun 14, 2024
@YYBartT YYBartT self-assigned this Jun 18, 2024
YYBartT added a commit to YoYoGames/GameMaker-Manual that referenced this issue Jun 18, 2024
YoYoGames/GameMaker-Bugs#6249

* Fixed the tag and keyword at the bottom of the page
* Visual update of the page
@YYBartT
Copy link

YYBartT commented Jun 18, 2024

Changed the keyword and tag value to cursor_sprite. This should fix things, once a new (beta) manual version is released.

@YYBartT YYBartT moved this from Todo to Ready for QA in Team Workload Jun 18, 2024
@YYBartT YYBartT closed this as completed Jun 26, 2024
@github-project-automation github-project-automation bot moved this from Ready for QA to Done in Team Workload Jun 26, 2024
@YYBartT YYBartT moved this from Done to Ready for QA in Team Workload Jun 27, 2024
@mgeddesGM
Copy link

this fails in CE2 as of Beta IDE v2024.800.0.593 Runtime v2024.800.0.617

@mgeddesGM mgeddesGM reopened this Jul 19, 2024
@github-project-automation github-project-automation bot moved this from Ready for QA to Todo in Team Workload Jul 19, 2024
@yyalansavage
Copy link

The manual page/lookup is all present and correct, this is a CE2 specific issue. Document.RequestDefinitionLink returns no link for this from Language Server.
There are a number of other similar asset-type variables which have the issue in CE2 only - path_index, timeline_index, mask_index, sprite_index, room_first, room_last

@stuckie stuckie modified the milestones: 2024.8, 2024.10 Aug 2, 2024
gurpreetsinghmatharoo pushed a commit to YoYoGames/GameMaker-Manual that referenced this issue Aug 8, 2024
YoYoGames/GameMaker-Bugs#6249

* Fixed the tag and keyword at the bottom of the page
* Visual update of the page

(cherry picked from commit 1d534b8)
@YYDan YYDan changed the title cursor_sprite - manual page doesn't open Docs Integration: "cursor_sprite" does not open its own manual page Sep 24, 2024
@YYDan YYDan changed the title Docs Integration: "cursor_sprite" does not open its own manual page Docs Integration: Various in-built variables does not open their own manual page if clicked in Code Editor 2 Sep 24, 2024
@YYDan YYDan changed the title Docs Integration: Various in-built variables does not open their own manual page if clicked in Code Editor 2 Docs Integration: Several in-built variables do not open their own manual page if clicked in Code Editor 2 Sep 24, 2024
@zreedy zreedy moved this from Todo to In Progress in Team Workload Nov 7, 2024
@zreedy
Copy link

zreedy commented Nov 7, 2024

Fixed with #7150

@stuckie stuckie closed this as completed Nov 12, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in Team Workload Nov 12, 2024
@YYBartT YYBartT moved this from Done to Ready for QA in Team Workload Nov 12, 2024
@alicemoretti alicemoretti self-assigned this Nov 12, 2024
@alicemoretti
Copy link
Contributor

@YYBartT @zreedy
Has the Beta Manual been published now?

On IDE v2024.1100.0.681 Runtime v2024.1100.0.703, when trying to open the manual for any of the built-in variables above, nothing happens. I'm not sure if this is because the pages for these variables are not online yet or if there's another issue here.

@alicemoretti alicemoretti reopened this Nov 12, 2024
@github-project-automation github-project-automation bot moved this from Ready for QA to Triage in Team Workload Nov 12, 2024
@YYBartT
Copy link

YYBartT commented Nov 12, 2024

@alicemoretti There hasn't been a new release of the Beta Manual, though the manual should have all pages tagged with the right keywords and none were added/changed since the last beta manual release. Clicking the variable names and keywords listed in this ticket and the linked ticket in IDE v2024.1100.0.681 Runtime v2024.1100.0.703 opens the correct page in CE1 (except macro, which opens the home page), though in CE2 the manual doesn't open for all of them.
Not sure if the changes made for this are in the beta releases?

@stuckie stuckie self-assigned this Nov 13, 2024
@stuckie stuckie moved this from Triage to Todo in Team Workload Nov 13, 2024
@zreedy
Copy link

zreedy commented Nov 14, 2024

@YYBartT Can you list what specifically doesn't open? Otherwise I will close this ticket again.

@YYBartT
Copy link

YYBartT commented Nov 15, 2024

@zreedy In IDE v2024.1100.0.685 Runtime v2024.1100.0.707 the correct manual page opens for cursor_sprite and all the variable names in #6249 (comment), both in CE1 and CE2. Though clicking macro opens the manual's start page in CE1 and doesn't open the manual in CE2.

@zreedy
Copy link

zreedy commented Nov 15, 2024

If there's no symbol to navigate to then not opening the manual is the preferred behavior. MMB in CE1 on the symbol #macro opens the Home page of the Manual which is not useful.

@YYBartT
Copy link

YYBartT commented Nov 18, 2024

Indeed, that makes sense. Though macros are on the Constants page, which enums are also on, and the page also has keywords and tags for both (enum and macro). When you click the enum keyword the Constants page is opened, though the same doesn't happen for macro for some reason. Perhaps it's the difference between #macro and macro?

@stuckie stuckie modified the milestones: 2024.11, 2025.1 Nov 21, 2024
@zreedy
Copy link

zreedy commented Nov 21, 2024

The functionality can only open a single page and the mapping is provided by RoboHelp in the helpdocs_tags.json file which is rooted in the manual .zip artifact.
I looked into it more and the server reports back help:#macro instead of help://macro as it's also capturing the preceding # which clobbers the URI. The keyword macro without the # appears in the helpdocs_tags.json and can be discovered. The server just has to strip the leading #.

@stuckie
Copy link

stuckie commented Nov 27, 2024

One variable that has come up that does not seem to jump to a manual page is
GM_build_type which should point to https://manual.gamemaker.io/monthly/en/#t=GameMaker_Language%2FGML_Reference%2FOS_And_Compiler%2FGM_build_type.htm

YYBartT added a commit to YoYoGames/GameMaker-Manual that referenced this issue Nov 27, 2024
…l page if clicked in Code Editor 2

YoYoGames/GameMaker-Bugs#6249

Changed tag and keyword on the GM_build_type page: "gm_build_type" -> "GM_build_type"
@YYBartT
Copy link

YYBartT commented Nov 27, 2024

The manual page had gm_build_type instead of GM_build_type as the tag and keyword, so GM_build_type would not be in the list. Changed this on the manual page.

@gurpreetsinghmatharoo
Copy link

Pending a beta release before setting this to Ready for QA

@YYBartT
Copy link

YYBartT commented Dec 6, 2024

The beta manual has been updated and this can be tested now.

@YYBartT YYBartT moved this from Done to Ready for QA in Team Workload Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-bug GameMaker Manual Bugs
Projects
Status: Ready for QA
Development

No branches or pull requests

7 participants