asafbibas / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

Import Project->External Project Assets does not work on Windows #489

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This was tested with SDK Alpha 4 and SVN from 04.08.2012

When I use Import Project->External Project Assets
and I target src\main\resources for the assets folder, on windows it generates

assets.jmp which looks like the following:

--------------------------------------------
#assets properties
#Sun Apr 08 16:13:20 EDT 2012
assets.folder.name=\\src\\main\\resources

---------------------------------------------

The project fails to load, and generates the following message:
"Add locator:C:/Users/cessationoftime/gits/projectName/\src\main\resources/"

when jMonkeyPlatform is closed and the file edited to change the property line 
to:
assets.folder.name=src/main/resources

When the platform is opened again the correct message is generated
"Add locator:C:/Users/cessationoftime/gits/projectName/src/main/resources/"
and the project loads properly.

Original issue reported on code.google.com by Cessatio...@gmail.com on 8 Apr 2012 at 8:36

GoogleCodeExporter commented 8 years ago
Seems like a conflict of different file separator characters. The same format 
should be used both for the project path and the assets folder path stored in 
assets.jmp otherwise the issue mentioned above would occur.

Original comment by ShadowIs...@gmail.com on 1 Jun 2012 at 3:54

GoogleCodeExporter commented 8 years ago
Did you enter the path by hand? If you choose the path with the filechooser it 
should not use the backslashes and thus work as expected.

Original comment by normen667 on 11 Jun 2012 at 2:16

GoogleCodeExporter commented 8 years ago
The filechooser uses backslashes on Windows 7, I just tried it (running 
Alpha-4):

Project Folder:
C:\Users\cvanvranken\gits\datawareHouseQuery

Assets Folder:
\datawarehousequery-common

Original comment by Cessatio...@gmail.com on 11 Jun 2012 at 3:00

GoogleCodeExporter commented 8 years ago
Alpha-4.... what about beta with stable updates?

Original comment by normen667 on 11 Jun 2012 at 3:06

GoogleCodeExporter commented 8 years ago
It has been a little while since I was actively using jMonkeyEngine. But I will 
install the newer version and it give it a try.

Original comment by Cessatio...@gmail.com on 11 Jun 2012 at 3:08

GoogleCodeExporter commented 8 years ago
I had been running a version from SVN 04.08.2012 when I originally posted. not 
sure what happened to that installation though.

I just installed the Beta 3 and updated it, then I used the filechooser to 
select the Assets folder.  

The filechooser textboxes show:

Project Folder: C:\Users\cvanvranken\Documents\Projects
Assets Folder: \WTF

The log message shows this:

"DesktopAssetManager created.
Add locator:C:/Users/cvanvranken/Documents/Projects/\WTF/"

Original comment by Cessatio...@gmail.com on 11 Jun 2012 at 3:24

GoogleCodeExporter commented 8 years ago
It seems as though the string for the project folder textbox converts from 
backslashes to forward slashes, but the string for the Assets folder does not.

Original comment by Cessatio...@gmail.com on 11 Jun 2012 at 3:26

GoogleCodeExporter commented 8 years ago
Okay, I'll check that, thanks

Original comment by normen667 on 11 Jun 2012 at 3:31

GoogleCodeExporter commented 8 years ago
I changed the code to finally go over the string and replace any backslashes 
again, maybe you can check with the nightly tomorrow (don't break your stable 
install for it, check the manual on how to create a test SDK for the nightly 
version)

Original comment by normen667 on 11 Jun 2012 at 3:57

GoogleCodeExporter commented 8 years ago
OK, I will try tomorrow's nightly.  Thanks.

Original comment by Cessatio...@gmail.com on 11 Jun 2012 at 4:13

GoogleCodeExporter commented 8 years ago
The nightly is no longer able to launch the Assets folder filechooser.  It 
throws the following exception:

java.util.regex.PatternSyntaxException: Unexpected internal error near index 1
\
 ^
    at java.util.regex.Pattern.error(Pattern.java:1713)
    at java.util.regex.Pattern.compile(Pattern.java:1466)
    at java.util.regex.Pattern.<init>(Pattern.java:1133)
    at java.util.regex.Pattern.compile(Pattern.java:823)
    at java.lang.String.replaceAll(String.java:2189)
    at com.jme3.gde.core.codeless.CodelessProjectWizardVisualPanel1.jButton2ActionPerformed(CodelessProjectWizardVisualPanel1.java:238)
    at com.jme3.gde.core.codeless.CodelessProjectWizardVisualPanel1.access$100(CodelessProjectWizardVisualPanel1.java:39)
    at com.jme3.gde.core.codeless.CodelessProjectWizardVisualPanel1$2.actionPerformed(CodelessProjectWizardVisualPanel1.java:186)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.Component.processMouseEvent(Component.java:6290)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6055)
    at java.awt.Container.processEvent(Container.java:2039)
    at java.awt.Component.dispatchEventImpl(Component.java:4653)
    at java.awt.Container.dispatchEventImpl(Container.java:2097)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
    at java.awt.Container.dispatchEventImpl(Container.java:2083)
    at java.awt.Window.dispatchEventImpl(Window.java:2482)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:648)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:607)
    at java.awt.EventQueue$1.run(EventQueue.java:605)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    at java.awt.EventQueue$2.run(EventQueue.java:621)
    at java.awt.EventQueue$2.run(EventQueue.java:619)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:618)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
[catch] at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269
)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
    at java.awt.Dialog$1.run(Dialog.java:1044)
    at java.awt.Dialog$3.run(Dialog.java:1096)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Dialog.show(Dialog.java:1094)
    at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:1038)
    at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1072)
    at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1060)
    at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:126)
    at org.openide.util.Mutex.doEventAccess(Mutex.java:1361)
    at org.openide.util.Mutex.readAccess(Mutex.java:271)
    at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:1045)
    at java.awt.Component.show(Component.java:1584)
    at java.awt.Component.setVisible(Component.java:1536)
    at java.awt.Window.setVisible(Window.java:841)
    at java.awt.Dialog.setVisible(Dialog.java:984)
    at com.jme3.gde.core.codeless.CodelessProjectWizardAction.performAction(CodelessProjectWizardAction.java:69)
    at org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:129)
    at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
    at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
    at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
    at org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:126)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
    at java.awt.Component.processMouseEvent(Component.java:6290)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6055)
    at java.awt.Container.processEvent(Container.java:2039)
    at java.awt.Component.dispatchEventImpl(Component.java:4653)
    at java.awt.Container.dispatchEventImpl(Container.java:2097)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
    at java.awt.Container.dispatchEventImpl(Container.java:2083)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:648)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:607)
    at java.awt.EventQueue$1.run(EventQueue.java:605)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    at java.awt.EventQueue$2.run(EventQueue.java:621)
    at java.awt.EventQueue$2.run(EventQueue.java:619)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:618)
    at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:148)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Original comment by Cessatio...@gmail.com on 12 Jun 2012 at 9:47

GoogleCodeExporter commented 8 years ago
fixed

Original comment by normen667 on 17 Jan 2013 at 2:07