I am building a NextJS app using the T3 stack. When I autosave my schema.prisma file it is not automatically adding the #relation tags, a friend is using the same stack and not having any issues.
I have highlighted in pink the part I would expect to generate automatically
I have tried to update prisma.
I have the prisma extension installed.
I have tried to google the issue but cant find people with a similar issue.
Nurul pointed me in the right direction. I had to click ctrl, alt + shift to format the document, I then got a warning that Prettier could not format Prisma files, I was then prompted to select a formatted for Prisma files and I selected the prisma.prisma option in the dropdown.
Hope this helps someone.
Related
I have a problem with references to an image not updating in pages that are using that image.
This is the steps that the users are reporting
go to /siteadmin#/content/dam/
on the "new" dropdown menu, select "new file"
select an image file that is a different image but has the same name as a file that already exists
upload the file and when asked that a file already exists, choose replace
activate the file when the upload completes
The problem is that when I check pub I can see the image is updated, and if I navigate to the path of the image, for example:
pub1.mypub:4503/content/dam//my-image.png
I can see the new image I replaced the old one with
the problem is that pages that were referencing the image, specifically the image component, still shows the old image. I've check flush rules, checked workflows and nothing seems to work
The one thing I noticed is that in pages that are referencing the image the path is like this
/content//_jcr_content/my-component/my-component-parsys/columns/parsyscenter/image.img.jpg/1538602163986.jpg
so it seems the path it is using is like a generated path and not the same path as this one: pub1.mypub:4503/content/dam//my-image.png
im at a complete loss, I honestly do not know what else to check, has anyone ran into this and figured out how to fix it?
this is on aem 6.3
the problem is that in pubs the image being referenced in the component does not update, and since it does not update in pub, it never updates dispatcher
You can try activating the referenced pages after the image has been published. Since the page on publish has reference to the previous image.
I am trying to use the "find in project" feature of Atom editor.
I am coming from sublime and assumed that opening a folder is the equivalent of opening a project. Is this assumption correct?
If so, then I have a project open. I then search from a string using "Find in project". I am certain the string exists, and the file type is not ignored, yet it still returns no result.
I ran into this issue, and it only affected one project - a project in a git repo.
I checked the settings of the search field.. they were fine.
My issue was, as #fab313 mentioned above, as the setting in Core > Exclude VCS ignored paths.
Once I unchecked that box (Atom menu, Preferences, Core).. all project searches worked fine!
I had this same problem and I found that I accidentally clicked some of the settings boxes in the bottom right.
You just want to make sure you know which boxes are checked.
If I check one of those boxes (making them blue) then my CTRL/Command + F will only find a single result.
The settings will look like this and cause the problems for me:
I'm using testng, testers asked me if it possible to add test description into test results ( email and index).
I have checked the solution but I did not found and proper solution. In index.html steps are displayed, but in emailable-report.html are not. I would like to have#description displayed in emailable-report.html.
Does anyone have solution to my problem or what I doing wrong?
You need to Customize testng report by using testng Listeners
Detailed instruction to customize emailable reports is here
I have managed to build OpenGTS 2.4.7 and works well. I would like to use GoogleMaps V3 instead, however i am not sure how to go about this. I have read the google tutorials but not sure how to make the changes.
I would be very grateful if someone can point me to the right direction.
I have managed to resolve this issue by the use of Google API site and a few sites. So first of you have to create a GoogleMapsV3.js and edit the GoogleMaps.java file.
Rebuild the track files and reload.
I managed to migrate OpenGTS v.2.4.7 from GoogleMapsAPIv2 to GoogleMapsAPIv3.
follow this link sourceforge forum
here is the GoogleMapsV3.js file link to file
My OpenGTS version is 2.4.7.
I were using GoogleMaps APIv2, today it was disabled by Google, so i made the following changes:
Placed above GoogleMapsV3.js file in %GTS_HOME%/war/track/js/maps/ directory.
Added property in the private.xml as follows:
<MapProvider name="googleMaps"
active="${Domain.MapProvider.active=true}"
class="org.opengts.war.maps.jsmap.GoogleMaps"
key="${Domain.MapProvider.key=<<my api key>>}"
rtPropPrefix="Domain.MapProvider.">
<Property key="google.version">3</Property>
That's all, everything works fine now.
PS. The key from apiV2 also works for apiV3.
Here is the newer version of GoogleMapsV3.js: pastebin.com/8jwVhhK3
I am trying to chance the icon of the exe file created native bundling of javafx packaging but it still contains the default icon. Please suggest
primaryStage.getIcons().add(FileUtility.loadImage("icon.png"));
did not help, it only changes the title bar and task bar icon.
The ico file still gets generated and icon of the exe files remains the default one
I also tried to assign an icon in the project properties-> Deployment-> icon but did not help
I believe I have encountered the same issue and the solution is described in the following thread.
As a side note - neither specifying your icon in the build.xml file or via the project's options in the deployment section is going to work thus far, but it seems to be fixed in the upcoming release of 7u10.
I added response here How to set custom icon for javafx native package icon on Windows and thinks it is the same issue you started out with. However you seem to have moved on, but others might find it interesting...
I added src/main/deploy/package/windows/myapp.ico there and it finally worked :)
For you:
Create src/main/deploy/package/windows/ folder
Add icon with name ${project.build.finalName}.ico
Run mvn jfx:build-native
I haven't played with it extensively - just got it to work and wanted to share. So if you want to use icon with different name, I don't know how. Not yet at least. The ... section in the config section seems to be for webstart, so I haven't been using it. Hope you get it to work!
Answered at How to set custom icon for javafx native package icon on Windows