The connection perfectly works with the regular latest version of Pinegrow (version 6.21), but not with Pinegrow Live. When I’m running Pinegrow Live with Atom, Atom notifies it’s connected to Pinegrow, but whenever I make an action, nothing happens, except the ‘Didn’t yet received parser module from Pinegrow.’ error message gets displayed in Atom.
Pinegrow Live is a nice addition, but it’d be great if I could also use it with Atom just like the regular version. May I expect a fix for this, or is there anything I can do to make it work?
Hi @martonlente,
Sorry for the delay in getting back to you. This feature works for me. Can you try and select the “Reconnect to Pinegrow” menu item in Atom with both programs open? It is located in the Packages → Pinegrow menu.
Cheers,
Bob
Thanks @RobM . I tried, and the connection was actually successful. (Whenever I click ‘Reconnect to Pinegrow’, the connection-confirmation message is shown.) However, the issue still exists: When I do anything in Pinegrow (or vice-versa I click ‘Ctrl + Alt + P’ in Atom), this ‘Didn’t yet received parser module from Pinegrow.’ error message gets displayed.
Do you have any idea what can be the reason for this?
PS: I’d like to confirm again, that I also have the regular latest version of Pinegrow (version 6.21) installed, in that connection works fine.
Hi @martonlente,
I’m still not able to replicate the issue. Can you screenshot the notice? Given that you can connect Pinegrow to Atom I don’t think it can be anything in your settings. Are there any Devtool messages?
Cheers,
Bob
@TechAkayy the URL that’s setup in Atom to access Pinegrow API is the default, which is http://127.0.0.1:40000 . The connection works fine with both versions, but in Pinegrow Live the issue above exists. To me it seems, only the first Pinegrow instance I launch connects to Atom – so that it doesn’t matter if both software are open at the same time or not (only one of them is connected).
Thanks @martonlente for the details, but just to re-confirm - you did have only pinegrow live open (and not the regular pinegrow app) and still getting the above error? Also, did you get the “Connected to Pinegrow” info message at the start?
In Pinegrow console, what do you get for - pinegrow.getApiUrl() ?
Thanks for your ongoing support! I can confirm both are correct, yes –
I’m not sure how I could access Pinegrow console – can you help me, please? I remember there was a Chromium DevTools integrated to PG in earlier versions, that also came with a JS console, but I thought it’s no longer part of the software. Or do you reference something else?
Do you think uninstalling Pinegrow desktop, and reinstalling Pinegrow Live only would be worth a try?
Sorry for my late response. In-between I tried uninstalling Pinegrow Desktop entirely, and reinstalling Pinegrow Live with no luck – the problem is still present.
Thanks @RobM for letting me know how I can access DevTools. @TechAkayy, the console does throw the following error, when the issue happens: node exception Error: ENOENT: no such file or directory, open ‘C:\Program Files\Pinegrow Web Editor Live\lib\crsa\pg-parser.js’
Do you have an idea how I could fix this? Is the referenced file maybe missing from the Live installer?
Update: By manually copying the file ‘pg-parser.js’ from Pinegrow desktop’s Program files folder to Pinegrow Live’s Program files folder (recreating the same folder structure ‘lib/crsa’), the issue seems to be resolved.
FYI Pinegrow Live’s Program files folder doesn’t have the ‘lib’ folder at all by default.
@matjaz is it possible, that the file above is missing from Pinegrow Live’s installer? The fix above works, but is quite dirty – it’d be good to find a cleaner solution, that works out of the box.
@martonlente thank you for debugging the problem. PG live doesn’t install code files locally by design, and instead load them from the server. I will change the code that sends the pg-parser.js to Atom and VS Code plugins to account for this.