scenerygraphics / sciview

sciview is a tool for visualization and interaction with ND image and mesh data
BSD 2-Clause "Simplified" License
62 stars 17 forks source link

`CreateProcess error=206, The filename or extension is too long` when running examples #434

Open skalarproduktraum opened 2 years ago

skalarproduktraum commented 2 years ago

Description

When running sciview from IntelliJ, the error CreateProcess error=206, The filename or extension is too long might occur. This is a known issue in IntelliJ.

Workaround

The problem can be solved by adding the following in .idea/workspace.xml:

<component name="PropertiesComponent">
...
     <property name="dynamic.classpath" value="true"/>
...
</component>

Should the .idea/workspace.xml file not exist, close and re-open the IntelliJ project. Sometimes IntelliJ does not write out project files right on first import.

Source: https://youtrack.jetbrains.com/issue/IDEA-166929

smlpt commented 1 year ago

The properties seem to be stored in a JSON format now. What worked for me was to add the property like this:

<component name="PropertiesComponent">{
"keytostring": {
    ...
    "dynamic.classpath": "true"
    ...
    }
}</component>
kephale commented 3 weeks ago

What is the situation with this now @skalarproduktraum @smlpt ?

smlpt commented 3 weeks ago

@kephale In my latest IDEA install, I didn't need to add this change to the workspace.xml, so maaybe it is solved? Would be good to check if anyone else still needs it. @moreApi maybe?

skalarproduktraum commented 3 weeks ago

I have also not seen this error in a while, IntelliJ seems to handle it gracefully now. I'd keep it pinned though in case somebody stumbles over it again.

moreApi commented 3 weeks ago

I never had that problem.