Config.cson


#1

hi i am a new in this forum and also a new atom user.
if i start atom editor i become this message.

Failed to load config.cson
[stdin]:25:19: error: invalid regular expression flags bin
phpPath: /usr/bin/php

can somebody tell what does mean
advanced thank you for any help and answer

ignarein


#2

Please share the contents of your config.cson file (at ~/.atom/config.cson or File -> Config...). Hastebin is a great site for that. Make sure to censor any API keys you see, but otherwise leave everything intact.


#3

“*”:
“atom-beautify”:
general:
_analyticsUserId: “539fac4b-2942-473e-83a4-3a5b366d0557”
core:
disabledPackages: [
“autocomplete-atom-api”
“intentions”
“linter-ui-default”
“ide-php”
“php-cs-fixer”
]
telemetryConsent: “limited”
themes: [
“atom-dark-ui”
“atom-dark-syntax”
]
editor:
fontSize: 15
“exception-reporting”:
userId: “29556dab-b77f-4283-948f-764eaacafea0”
fonts:
fontFamily: “Overpass Mono”
“ide-php”:
phpPath: /usr/bin/php
“php-cs-fixer”:
phpExecutablePath: usr/bin/php
welcome:
showOnStartup: false
‘linter-php’:

php path. run ‘which php’ to find the path

‘executablePath’: /usr/bin/php

that’s it also the beautyfi dosen’t work the program starts and nothing it’happen.
Thank’s for you help


#4

i use linux mint os 18.3


#5

Like I said, Hastebin is a great site for file sharing and you should use it. I can’t read what you’ve posted because the forum formatted it, and I can’t help you unless you follow my instructions and give me something that I can read.


#6

ok i will look about them!


#7

Don’t just look at it. Post your file to that site, save it, and post the link here and I can help you.


#8

hi damned i hope that’s it

https://hastebin.com/puxiqizuva.bash

Failed to load config.cson
[stdin]:25:19: error: invalid regular expression flags bin
phpPath: /usr/bin/php


#9

Okay. You need to remove two of the spaces in front of 'linter-php' and delete the line that starts with #. Then it will work.


#10

Doesn’t he also need to indent line 32 as well? It looks like it’s for the linter-php property.


#11

Oh, yeah. That would help. Indent that, outdent 'linter-php', and remove the line in between, and add quotes to the paths. It will look like

  "ide-php":
    phpPath: '/usr/bin/php'
  "php-cs-fixer":
    phpExecutablePath: 'usr/bin/php'
  welcome:
    showOnStartup: false
  'linter-php':
    'executablePath': '/usr/bin/php'

#12

Hi,
thanks for you help
it works
great community

ignarein