# Can't open styles with hyphens or underscores

**URL:** <https://forum.inductiveautomation.com/t/cant-open-styles-with-hyphens-or-underscores/58884>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [April 26, 2022, 4:45pm UTC](https://forum.inductiveautomation.com/t/cant-open-styles-with-hyphens-or-underscores/58884 "2022-04-26T16:45:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@peter](https://forum.inductiveautomation.com/u/peter)\
**Post date:** [April 26, 2022, 4:45pm UTC](https://forum.inductiveautomation.com/t/cant-open-styles-with-hyphens-or-underscores/58884/1 "2022-04-26T16:45:18Z")

</div>

This is in 8.1.15, Perspective, Linux

I created a style with a hyphen in it, closed it and then found I couldn’t open it again. I experimented with various style names and discovered that if I had a hyphen or underscore in the name that I couldn’t open them. But if those characters didn’t exist then I could open them:

![Screen Shot 2022-04-26 at 10.37.49 AM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/8/a83079bc30016d81bbab9a44f271ac79424fddbf.png)

EG I can open “PanelHeader” and “TheStyle”, but can’t open “Panel-Header” or Panel\_Header"

I thought that this was strange, as I have an 8.1.3 installation with the “simplequickstart” project installed, and it has styles with underscores and hyphens in them, and I can open those styles:

![Styles](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/b/ebc4d1b8ec1e975694b13ced8f40c215a1bb240a.png)

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [April 26, 2022, 5:02pm UTC](https://forum.inductiveautomation.com/t/cant-open-styles-with-hyphens-or-underscores/58884/2 "2022-04-26T17:02:11Z")

</div>

I think using a hyphen in the style class is IA’s best practice. I’m on 8.1.16 and don’t see the issue you described. I upgraded from 8.1.15 a little while ago and didn’t see it on that version either.

---

<div class="post-metadata">

**Author:** ![peter](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@peter](https://forum.inductiveautomation.com/u/peter)\
**Post date:** [April 26, 2022, 5:04pm UTC](https://forum.inductiveautomation.com/t/cant-open-styles-with-hyphens-or-underscores/58884/3 "2022-04-26T17:04:14Z")

</div>

It’s weird. It can’t be my mouse clicking technique as I can reliably open the non-hyphenated etc styles.

---

<div class="post-metadata">

**Author:** ![peter](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@peter](https://forum.inductiveautomation.com/u/peter)\
**Post date:** [April 26, 2022, 5:06pm UTC](https://forum.inductiveautomation.com/t/cant-open-styles-with-hyphens-or-underscores/58884/4 "2022-04-26T17:06:25Z")

</div>

What OS are you running under? I’m running this under Linux

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [April 26, 2022, 5:15pm UTC](https://forum.inductiveautomation.com/t/cant-open-styles-with-hyphens-or-underscores/58884/5 "2022-04-26T17:15:43Z")

</div>

Win10x64. I had issues the other day where views and styles were doing weird things. I rebooted and it went away. Maybe you have something is la la land.

---

<div class="post-metadata">

**Author:** ![peter](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@peter](https://forum.inductiveautomation.com/u/peter)\
**Post date:** [April 26, 2022, 5:29pm UTC](https://forum.inductiveautomation.com/t/cant-open-styles-with-hyphens-or-underscores/58884/6 "2022-04-26T17:29:33Z")

</div>

Apparently this was not the stability that I was looking for.

I also just saw:

[[Bug] Perspective View Unexpected Behavior (Loss of Cut/Copy/Paste)](https://forum.inductiveautomation.com/t/bug-perspective-view-unexpected-behavior-loss-of-cut-copy-paste/48689)

Where rebooting was also the solution

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 27, 2022, 8:39pm UTC](https://forum.inductiveautomation.com/t/cant-open-styles-with-hyphens-or-underscores/58884/7 "2022-04-27T20:39:24Z")

</div>

Any errors in the designer console when this happens/was happening?

---

<div class="post-metadata">

**Author:** ![peter](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@peter](https://forum.inductiveautomation.com/u/peter)\
**Post date:** [April 27, 2022, 11:32pm UTC](https://forum.inductiveautomation.com/t/cant-open-styles-with-hyphens-or-underscores/58884/8 "2022-04-27T23:32:14Z")

</div>

Sorry, I didn’t even think to look

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 28, 2022, 3:02pm UTC](https://forum.inductiveautomation.com/t/cant-open-styles-with-hyphens-or-underscores/58884/9 "2022-04-28T15:02:51Z")

</div>

If you see it happen again, please do - _usually_ in these kind of “it just does nothing” cases there’s actually an error being thrown and trapped, but _usually_ we’re at least putting those into the logs.
