Not sure if I can follow... You created a export variable like this?
export var test
And then you commented it out like this?
# export var test
If so and that's your only export variable, then yes, the inspector won't show any script variables. Why should it? There are none! You commented the only one out!
If you want to bring it back, you would... uncomment it again?