Replies: 1 comment 5 replies
-
Thanks for the detailed notes, @joyously! Let me clarify a few things to help troubleshoot:
Hope this helps clear things up! Let us know if these notes address your concerns, or share an example file so we can dig in further. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I discovered phcode last week and installed Release 4.0 build 4.0.3-20878 on Ubuntu Studio 24.04.
At first, I couldn't select any text, since there were always MDN boxes popping up, in the way. I think I got those turned off by disabling the built-in extension, but it took me awhile to figure that out.
I installed some of the extensions I used to use with Brackets, but when I started to work on a HTML file, the auto indent was all wacky. I disabled most of the extensions I had added, and a few more of the built in ones, but it still puts a random number of tabs at the beginning of a new line. I thought maybe it was related to the type of code, and it seems to be, but still not making sense. With the settings at Tab size 2 and Auto, I tried it in HTML, a script inside the HTML file, and a CSS file.
In HTML context, a newline usually produces 5 or 6 tabs instead of matching the line before it. In JS lines in HTML file, it gives 5 or fills the new line with tabs. In CSS, I get no tabs, even on lines that are already indented (although those might be spaces; I can't find the way to make spaces visible).
The preview is not rendering all of my radial gradients, which use custom properties (CSS variables). It does some though. Annoyingly, the default is one file visible, so I have opened the HTML file and see that there are issues. But switching to the CSS file to see what is different about the ones not showing, of course the preview goes away. I tried the Horizontal Split and followed the prompt about opening a file when that was in focus, but it would only open it in the top pane. I'm not sure how I got it to work (I think I chose File - Open on a file that wasn't already in the top).
The conical gradients aren't showing either. All of them work in Firefox and Brave.
I opened the CSS file from the external file manager, but it came up in phcode. I read another discussion here complaining that the editor had changed the file associations. But I've seen that on my system for a long while. I think it's the OS, not the application.
I had looked into the console for errors, trying to find why the gradients weren't there. I saw a bunch of errors about not being able to load some sort of json file (I think these are old extensions), and some "couldn't find the dom for tauri/my file", and "Error thrown in tern worker: undefined is not an object" on a JS file that isn't open. It's annoying that the X to close the console is on the left (not following system) when the split window X and the search X matched the system ones.
This screenshot is phcode preview on the left and Firefox on the right.

Looking at it, I realized it might be because I used a fairly new color function on the ones that aren't working. And when I switched to the CSS file to see which one, the editor has frozen. I tried closing the preview (no luck), switching back to the HTML file (no luck), moving the window (it redrew it, all white, still stuck), clicking the X(no response). I had to kill it from Task Manager. When I restarted phcode, it was in the default project, not my project.
I see that the color function I used is

lch()
. When I assigned normal colors instead, I see the phcode preview is working.I also see that hovering on any radial gradient line in the CSS file pops up a gray square, which is not helpful.
Beta Was this translation helpful? Give feedback.
All reactions