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

Use the local dockerfile over the image #334

Merged
merged 12 commits into from
Oct 11, 2024
Merged

Conversation

escopecz
Copy link
Member

@escopecz escopecz commented Oct 9, 2024

No description provided.

@dennisameling
Copy link
Member

@escopecz sorry about that dennisameling/python-vale:latest image - didn't know it was still lingering around! It was basically built from this Dockerfile and then I pushed it to Docker Hub here, so Gitpod could access it.

Were you able to get things to work already? Happy to chime in if you're still running into issues! CC @RCheesley

@RCheesley
Copy link
Member

@dennisameling we have been trying to get it working but it seems there's a bug with the Esbonio language server currently which is preventing it from running: swyddfa/esbonio#896 (comment). It seems to install fine, but never starts up.

Any help you might be able to give would be awesome!

@dennisameling
Copy link
Member

Had to read up a bit on the current situation. Looks like the reStructuredText extension that we used has removed support for previews in version 190.1.17, back in January of this year. Apparently folks should now be using the new Esbonio VS Code extension, which is still a pre-release version, and seems to be lacking proper documentation.

When I download the older .vsix for 190.1.4 and drag it into GitPod, then use the "Install from VSIX" option, the preview is working just fine:

afbeelding afbeelding

So until Esbonio releases their v1 stable version, you may want to replace this snippet in .gitpod.yml:

vscode:
  extensions:
    - ms-python.python
    - lextudio.restructuredtext

... with this:

vscode:
  extensions:
    - ms-python.python
    - [email protected]

That would give a bit more breathing space to figure out the Esbonio extension setup. Hope this helps! 🙏🏼

@escopecz
Copy link
Member Author

@dennisameling Thanks for looking into it! Much appreciated!

I'm getting this message now but from the language server output it seems like it's done:
Screenshot 2024-10-11 at 10 13 37

Also, do you have some idea how to avoid the failing CI with rate-limited link?:

-rate limited-   https://github.com/search?q=repo%3Amautic%2Fmautic+Dashboard+menu+language%3AINI | sleeping...
-rate limited-   https://github.com/search?q=repo%3Amautic%2Fmautic+Dashboard+menu+language%3AINI | sleeping...
-rate limited-   https://github.com/search?q=repo%3Amautic%2Fmautic+Dashboard+menu+language%3AINI | sleeping...
-rate limited-   https://github.com/search?q=repo%3Amautic%2Fmautic+Dashboard+menu+language%3AINI | sleeping...
-rate limited-   https://github.com/search?q=repo%3Amautic%2Fmautic+Dashboard+menu+language%3AINI | sleeping...

@dennisameling
Copy link
Member

dennisameling commented Oct 11, 2024

I'm getting this message now but from the language server output it seems like it's done:

Can you click "esbonio" in the bottom right corner of the screen? That'll trigger a rebuild. I just started a fresh GitPod instance based on your latest commit here, and it's working nicely 👌🏼

Also, do you have some idea how to avoid the failing CI with rate-limited link?:

IIRC GitHub made a change a couple months ago to to prevent unauthenticated users from using the search page. If you open an incognito window on your local machine and go to the URL in question (https://github.com/search?q=repo%3Amautic%2Fmautic+Dashboard+menu+language%3AINI), you'll get the rate limit as well. Apparently there's an option in linkcheck to provide auth, so we might be able to leverage GitHub's GITHUB_TOKEN that it exposes in the CI pipeline. Will check. If that's too much work to implement, we might as well just ignore this URL from linkcheck.

@dennisameling
Copy link
Member

If that's too much work to implement, we might as well just ignore this URL from linkcheck.

I went with that route after some checks. There's no easy way to generate a session cookie for the GitHub UI for this purpose, so let's ignore it.

@escopecz can you add this commit to your PR here? That should fix the build. The broken 404 links should be replaced sometime.

@escopecz
Copy link
Member Author

@dennisameling thank you! The CI is green now. I'm not sure what I do wrong or where to search for an error message:
Screenshot 2024-10-11 at 13 47 26
Is gitpod somehow remembering extensions from my previous sessions?

Copy link
Member

@RCheesley RCheesley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's working OK for me - I can now preview the files without a problem and Esbonio is loading! Thanks so much @dennisameling and @escopecz for looking into this issue!

@escopecz
Copy link
Member Author

Let's get this merged if it works for the 2 of you :)

@escopecz escopecz merged commit 24ab802 into mautic:5.x Oct 11, 2024
2 checks passed
@escopecz escopecz deleted the dockerfile branch October 11, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants