Sync NameSpaces with FilePath

Sometimes we create classes in some files and then (in some time) group
its in folders, but namespaces stay the same. so if class namespace in
Firm.Data but it placed in Firm.Data.Entities it can deceive

So, I want sugges to automatic sync namespaces with file path and change
usages of this classes at all

how do you think?

14 comments
Comment actions Permalink

Sounds like a great idea for an add-in! :)


"Airex" <airex.s@gmail.com> wrote in message
news:op.s5hh1yw4yg18dx@w-skachkovsky.lana.vl.net.ua...
Sometimes we create classes in some files and then (in some time) group
its in folders, but namespaces stay the same. so if class namespace in
Firm.Data but it placed in Firm.Data.Entities it can deceive

So, I want sugges to automatic sync namespaces with file path and change
usages of this classes at all

how do you think?


0
Comment actions Permalink

Hello Jeff,

actually we already have this functionality as an internal add-in.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Sounds like a great idea for an add-in! :)

"Airex" <airex.s@gmail.com> wrote in message
news:op.s5hh1yw4yg18dx@w-skachkovsky.lana.vl.net.ua...
Sometimes we create classes in some files and then (in some time)
group
its in folders, but namespaces stay the same. so if class namespace in
Firm.Data but it placed in Firm.Data.Entities it can deceive
So, I want sugges to automatic sync namespaces with file path and
change usages of this classes at all

how do you think?



0
Comment actions Permalink

Dmitry Shaporenkov (JetBrains) wrote:

Hello Jeff,

actually we already have this functionality as an internal add-in.


I would love to use that myself. It's a real pain not having class
filepaths match up with namespaces. Could you release this internal
add-in as an open-source plugin for us to hack and customize? Even
without any official support, it would be awesome.

Matt.

0
Comment actions Permalink

Hello Matthew,

It's not that wonderful. Often you will have several subfolders to group
things logically, but they still belong to same namespace. You will have
then false warning you cannot get rid of. It sounds more like Nerpa-style
suggestion and should have
a) Fine configuration to establish rules
b) Way to ignore warning for some particular cases

Personally, I've tried this plugin and had to turn it off, because way too
often it generates false positives for my code. May it can work for yours :)

Sincerely,
Ilya Ryzhenkov


MM> Dmitry Shaporenkov (JetBrains) wrote:
MM>
>> Hello Jeff,
>>
>> actually we already have this functionality as an internal add-in.
>>
MM> I would love to use that myself. It's a real pain not having class
MM> filepaths match up with namespaces. Could you release this internal
MM> add-in as an open-source plugin for us to hack and customize? Even
MM> without any official support, it would be awesome.
MM>
MM> Matt.
MM>


0
Comment actions Permalink

Hello Ilya,

yes, the plugin is hardly completed to an usable state, but it's internal
after all. So I don't see
why we can't publish it as another Open API sample.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hello Matthew,

It's not that wonderful. Often you will have several subfolders to
group
things logically, but they still belong to same namespace. You will
have
then false warning you cannot get rid of. It sounds more like
Nerpa-style
suggestion and should have
a) Fine configuration to establish rules
b) Way to ignore warning for some particular cases
Personally, I've tried this plugin and had to turn it off, because way
too often it generates false positives for my code. May it can work
for yours :)

Sincerely,
Ilya Ryzhenkov

MM>> Dmitry Shaporenkov (JetBrains) wrote:
MM>>
>>> Hello Jeff,
>>>
>>> actually we already have this functionality as an internal add-in.
>>>
MM>> I would love to use that myself. It's a real pain not having class
MM>> filepaths match up with namespaces. Could you release this
MM>> internal add-in as an open-source plugin for us to hack and
MM>> customize? Even without any official support, it would be awesome.
MM>>
MM>> Matt.
MM>>


0
Comment actions Permalink

Hello Matthew,

please post a request to the tracker to publish this plugin for plug-in developers.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Dmitry Shaporenkov (JetBrains) wrote:

>> Hello Jeff,
>>
>> actually we already have this functionality as an internal add-in.
>>

I would love to use that myself. It's a real pain not having class
filepaths match up with namespaces. Could you release this internal
add-in as an open-source plugin for us to hack and customize? Even
without any official support, it would be awesome.

Matt.



0
Comment actions Permalink

Done.

Dmitry Shaporenkov (JetBrains) wrote:

Hello Matthew,

please post a request to the tracker to publish this plugin for plug-in
developers.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>> Dmitry Shaporenkov (JetBrains) wrote:
>>
>>> Hello Jeff,
>>>
>>> actually we already have this functionality as an internal add-in.
>>>
>> I would love to use that myself. It's a real pain not having class
>> filepaths match up with namespaces. Could you release this internal
>> add-in as an open-source plugin for us to hack and customize? Even
>> without any official support, it would be awesome.
>>
>> Matt.
>>


0
Comment actions Permalink

Hello Dmitry,

Of course, it can be published as plugin sample and probably some people
will find it useful. However, please clean it up before publishing. At least
remove IDE-related code ;)

Sincerely,
Ilya Ryzhenkov


DS> Hello Matthew,
DS>
DS> please post a request to the tracker to publish this plugin for
DS> plug-in developers.
DS>
DS> Regards,
DS> Dmitry Shaporenkov
DS> JetBrains, Inc
DS> http://www.jetbrains.com
DS> "Develop with pleasure!"
>> Dmitry Shaporenkov (JetBrains) wrote:
>>
>>> Hello Jeff,
>>>
>>> actually we already have this functionality as an internal add-in.
>>>
>> I would love to use that myself. It's a real pain not having class
>> filepaths match up with namespaces. Could you release this internal
>> add-in as an open-source plugin for us to hack and customize? Even
>> without any official support, it would be awesome.
>>
>> Matt.
>>


0
Comment actions Permalink

Hello Ilya,

not sure what you're talking about. I think it's up to his author :)


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hello Dmitry,

Of course, it can be published as plugin sample and probably some
people will find it useful. However, please clean it up before
publishing. At least remove IDE-related code ;)

Sincerely,
Ilya Ryzhenkov

DS>> Hello Matthew,
DS>>
DS>> please post a request to the tracker to publish this plugin for
DS>> plug-in developers.
DS>>
DS>> Regards,
DS>> Dmitry Shaporenkov
DS>> JetBrains, Inc
DS>> http://www.jetbrains.com
DS>> "Develop with pleasure!"
>>> Dmitry Shaporenkov (JetBrains) wrote:
>>>
>>>> Hello Jeff,
>>>>
>>>> actually we already have this functionality as an internal add-in.
>>>>
>>> I would love to use that myself. It's a real pain not having class
>>> filepaths match up with namespaces. Could you release this internal
>>> add-in as an open-source plugin for us to hack and customize? Even
>>> without any official support, it would be awesome.
>>>
>>> Matt.
>>>


0
Comment actions Permalink

Hello Dmitry,

As far as I remember looking at it through reflector, it contains icons for
solution explorer and other features not available when running as VS add-in.
I think, someone told me this was done for IDE sometime ago, but maybe I'm
mistaken. Or may be it's some future or internal feature to put icons on
project items. I don't know :)

Sincerely,
Ilya Ryzhenkov


DS> Hello Ilya,
DS>
DS> not sure what you're talking about. I think it's up to his author
DS> :)
DS>
DS> Regards,
DS> Dmitry Shaporenkov
DS> JetBrains, Inc
DS> http://www.jetbrains.com
DS> "Develop with pleasure!"
>> Hello Dmitry,
>>
>> Of course, it can be published as plugin sample and probably some
>> people will find it useful. However, please clean it up before
>> publishing. At least remove IDE-related code ;)
>>
>> Sincerely,
>> Ilya Ryzhenkov
DS>>> Hello Matthew,
DS>>>
DS>>> please post a request to the tracker to publish this plugin for
DS>>> plug-in developers.
DS>>>
DS>>> Regards,
DS>>> Dmitry Shaporenkov
DS>>> JetBrains, Inc
DS>>> http://www.jetbrains.com
DS>>> "Develop with pleasure!"
>>>> Dmitry Shaporenkov (JetBrains) wrote:
>>>>
>>>>> Hello Jeff,
>>>>>
>>>>> actually we already have this functionality as an internal add-in.
>>>>>
>>>> I would love to use that myself. It's a real pain not having class
>>>> filepaths match up with namespaces. Could you release this
>>>> internal add-in as an open-source plugin for us to hack and
>>>> customize? Even without any official support, it would be awesome.
>>>>
>>>> Matt.
>>>>


0
Comment actions Permalink

Hello Ilya,

it definitely works under VS, so I think the issues you mentioned can't stop
it.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hello Dmitry,

As far as I remember looking at it through reflector, it contains
icons for solution explorer and other features not available when
running as VS add-in. I think, someone told me this was done for IDE
sometime ago, but maybe I'm mistaken. Or may be it's some future or
internal feature to put icons on project items. I don't know :)

Sincerely,
Ilya Ryzhenkov

DS>> Hello Ilya,
DS>>
DS>> not sure what you're talking about. I think it's up to his author
DS>> :)
DS>>
DS>> Regards,
DS>> Dmitry Shaporenkov
DS>> JetBrains, Inc
DS>> http://www.jetbrains.com
DS>> "Develop with pleasure!"
>>> Hello Dmitry,
>>>
>>> Of course, it can be published as plugin sample and probably some
>>> people will find it useful. However, please clean it up before
>>> publishing. At least remove IDE-related code ;)
>>>
>>> Sincerely,
>>> Ilya Ryzhenkov
DS>>>> Hello Matthew,
DS>>>>
DS>>>> please post a request to the tracker to publish this plugin for
DS>>>> plug-in developers.
DS>>>>
DS>>>> Regards,
DS>>>> Dmitry Shaporenkov
DS>>>> JetBrains, Inc
DS>>>> http://www.jetbrains.com
DS>>>> "Develop with pleasure!"
>>>>> Dmitry Shaporenkov (JetBrains) wrote:
>>>>>
>>>>>> Hello Jeff,
>>>>>>
>>>>>> actually we already have this functionality as an internal
>>>>>> add-in.
>>>>>>
>>>>> I would love to use that myself. It's a real pain not having
>>>>> class filepaths match up with namespaces. Could you release this
>>>>> internal add-in as an open-source plugin for us to hack and
>>>>> customize? Even without any official support, it would be
>>>>> awesome.
>>>>>
>>>>> Matt.
>>>>>


0
Comment actions Permalink

Hello Dmitry,

Yes, it works. But if this plugin is intended for developers, then having
extra information in it will not help people understand your OpenAPI.

Sincerely,
Ilya Ryzhenkov


DS> Hello Ilya,
DS>
DS> it definitely works under VS, so I think the issues you mentioned
DS> can't stop it.
DS>
DS> Regards,
DS> Dmitry Shaporenkov
DS> JetBrains, Inc
DS> http://www.jetbrains.com
DS> "Develop with pleasure!"
>> Hello Dmitry,
>>
>> As far as I remember looking at it through reflector, it contains
>> icons for solution explorer and other features not available when
>> running as VS add-in. I think, someone told me this was done for IDE
>> sometime ago, but maybe I'm mistaken. Or may be it's some future or
>> internal feature to put icons on project items. I don't know :)
>>
>> Sincerely,
>> Ilya Ryzhenkov
DS>>> Hello Ilya,
DS>>>
DS>>> not sure what you're talking about. I think it's up to his author
DS>>> :)
DS>>>
DS>>> Regards,
DS>>> Dmitry Shaporenkov
DS>>> JetBrains, Inc
DS>>> http://www.jetbrains.com
DS>>> "Develop with pleasure!"
>>>> Hello Dmitry,
>>>>
>>>> Of course, it can be published as plugin sample and probably some
>>>> people will find it useful. However, please clean it up before
>>>> publishing. At least remove IDE-related code ;)
>>>>
>>>> Sincerely,
>>>> Ilya Ryzhenkov
DS>>>>> Hello Matthew,
DS>>>>>
DS>>>>> please post a request to the tracker to publish this plugin for
DS>>>>> plug-in developers.
DS>>>>>
DS>>>>> Regards,
DS>>>>> Dmitry Shaporenkov
DS>>>>> JetBrains, Inc
DS>>>>> http://www.jetbrains.com
DS>>>>> "Develop with pleasure!"
>>>>>> Dmitry Shaporenkov (JetBrains) wrote:
>>>>>>
>>>>>>> Hello Jeff,
>>>>>>>
>>>>>>> actually we already have this functionality as an internal
>>>>>>> add-in.
>>>>>>>
>>>>>> I would love to use that myself. It's a real pain not having
>>>>>> class filepaths match up with namespaces. Could you release this
>>>>>> internal add-in as an open-source plugin for us to hack and
>>>>>> customize? Even without any official support, it would be
>>>>>> awesome.
>>>>>>
>>>>>> Matt.
>>>>>>


0
Comment actions Permalink

No problem, of course, we will remove all extra code which is not necessary.

Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hello Dmitry,

Yes, it works. But if this plugin is intended for developers, then
having extra information in it will not help people understand your
OpenAPI.

Sincerely,
Ilya Ryzhenkov

DS>> Hello Ilya,
DS>>
DS>> it definitely works under VS, so I think the issues you mentioned
DS>> can't stop it.
DS>>
DS>> Regards,
DS>> Dmitry Shaporenkov
DS>> JetBrains, Inc
DS>> http://www.jetbrains.com
DS>> "Develop with pleasure!"
>>> Hello Dmitry,
>>>
>>> As far as I remember looking at it through reflector, it contains
>>> icons for solution explorer and other features not available when
>>> running as VS add-in. I think, someone told me this was done for IDE
>>> sometime ago, but maybe I'm mistaken. Or may be it's some future or
>>> internal feature to put icons on project items. I don't know :)
>>>
>>> Sincerely,
>>> Ilya Ryzhenkov
DS>>>> Hello Ilya,
DS>>>>
DS>>>> not sure what you're talking about. I think it's up to his author
DS>>>> :)
DS>>>>
DS>>>> Regards,
DS>>>> Dmitry Shaporenkov
DS>>>> JetBrains, Inc
DS>>>> http://www.jetbrains.com
DS>>>> "Develop with pleasure!"
>>>>> Hello Dmitry,
>>>>>
>>>>> Of course, it can be published as plugin sample and probably some
>>>>> people will find it useful. However, please clean it up before
>>>>> publishing. At least remove IDE-related code ;)
>>>>>
>>>>> Sincerely,
>>>>> Ilya Ryzhenkov
DS>>>>>> Hello Matthew,
DS>>>>>>
DS>>>>>> please post a request to the tracker to publish this plugin for
DS>>>>>> plug-in developers.
DS>>>>>>
DS>>>>>> Regards,
DS>>>>>> Dmitry Shaporenkov
DS>>>>>> JetBrains, Inc
DS>>>>>> http://www.jetbrains.com
DS>>>>>> "Develop with pleasure!"
>>>>>>> Dmitry Shaporenkov (JetBrains) wrote:
>>>>>>>
>>>>>>>> Hello Jeff,
>>>>>>>>
>>>>>>>> actually we already have this functionality as an internal
>>>>>>>> add-in.
>>>>>>>>
>>>>>>> I would love to use that myself. It's a real pain not having
>>>>>>> class filepaths match up with namespaces. Could you release
>>>>>>> this internal add-in as an open-source plugin for us to hack and
>>>>>>> customize? Even without any official support, it would be
>>>>>>> awesome.
>>>>>>>
>>>>>>> Matt.
>>>>>>>


0
Comment actions Permalink

There's already a similar request which is almost 2 years old:
http://www.intellij.net/tracker/resharper/viewSCR?publicId=2509

Regards,
Thomas

Airex wrote:

Sometimes we create classes in some files and then (in some time) group
its in folders, but namespaces stay the same. so if class namespace in
Firm.Data but it placed in Firm.Data.Entities it can deceive

So, I want sugges to automatic sync namespaces with file path and change
usages of this classes at all

how do you think?

0

Please sign in to leave a comment.