-
Notifications
You must be signed in to change notification settings - Fork 44
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
Support for the new Apex null-coalescing operator (Spring '24) #1176
Comments
Update from the tooling team: the new jorje JAR should be pushed near the Spring '24 release date (Feb 10-11). |
Awesome, thanks for letting me know about it. I'll add support for it when the new JAR is out! |
Hi @dangmai, it looks like the product team released the JAR last week. |
Awesome! I'll most likely add support for this this weekend, thank you for the heads up! |
Support for the Null-Coaslescing Exression has been added and will be included in the next release. Thanks again for raising this! |
This has been released as part of |
Thank you so much! |
@dangmai I installed
|
@msouther-lisc How are you running Prettier Apex? If you're running it via VSCode, did you try restarting VSCode yet? Also, try running these commands and paste the results here:
|
@dangmai I hadn't restarted VS Code yet when I was getting the error. After restarting VS Code, I am no longer getting the error, but I'm not getting any formatting on Apex files whatsoever (other files, e.g. JavaScript files, still work OK). It looks like Prettier is disabled when I'm on an Apex file: There is probably a simple reason for this, but I'm not sure what I'm doing wrong. Here is the output of the commands you requested:
|
I see - for your initial issue the reason VSCode has to be restarted when a Prettier plugin is upgraded is because of this bug on their repo prettier/prettier-vscode#3179 As for your current problem, I'm not sure what the issue is, but have you applied the workaround in this ticket yet? #1168 (comment) |
I got it working after some trial and error. I added a new comment on the workaround thread so others can benefit from my experience. |
That means you upgraded from |
Yep, you nailed it. That's exactly what the issue was there. 😝 Many thanks for your support! Much admiration for the work you do. |
For anyone seeing this later the summary of what you need to do:
|
Hi @dangmai, the Spring '24 release introduces the Apex null-coalescing operator
??
. It would be great to add support for this in your plugin.I see that the Apex team recently updated the jorje parser so it looks like you could proceed with an update of your plugin. Let me know if not and I'll raise the issue with the team.
Once again, thanks a lot for your great tool.
The text was updated successfully, but these errors were encountered: