[236] Members of Resources class are not recognized until build.

New resources added to the resource file are not recognized by R# until I
build the project.
I mean that the newly created property in the Resources class is marked as
an error. When I build, go to another file and then back, the error has
gone.

Regards,

Patrick


7 comments
Comment actions Permalink

Patrick,

Could You provide us some more details? What type of project do You use,
what type of resource?

--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

Sergey V. Coox (JetBrains) wrote:

Patrick,

Could You provide us some more details? What type of project do You use,
what type of resource?



Just add a new resource file (*.resx file) to the project - VS 2005 will
automatically create a designer class for the file. Let's assume the
designer class is called 'Messages' (the res file is Messages.resx):

- create a new entry in the resx-File with key "Hello"
- Go to another class, type 'Messages.' -> Intellisens won't list the
new "Hello" entry, and if you type it by hand, RS will mark it as an
error until rebuild.

...this behaviour has not been introduced with #236, it's always been
that way.

Cheers,
Philipp

0
Comment actions Permalink

The problem description of Philipp is correct.
I have to add that this does not occur every time. Sometimes the resource is
recognized immediately by R#. But I haven't detected a pattern yet.

Regards,

Patrick

"Philipp Sumi" <nospam@this.domain.doesnotexist.xxx> schreef in bericht
news:e2819a$qvk$1@is.intellij.net...

Sergey V. Coox (JetBrains) wrote:

>> Patrick,
>>
>> Could You provide us some more details? What type of project do You use,
>> what type of resource?
>>
>
>

Just add a new resource file (*.resx file) to the project - VS 2005 will
automatically create a designer class for the file. Let's assume the
designer class is called 'Messages' (the res file is Messages.resx):

>

- create a new entry in the resx-File with key "Hello"
- Go to another class, type 'Messages.' -> Intellisens won't list the new
"Hello" entry, and if you type it by hand, RS will mark it as an error
until rebuild.

>

...this behaviour has not been introduced with #236, it's always been that
way.

>

Cheers,
Philipp



0
Comment actions Permalink

Patrick wrote:

The problem description of Philipp is correct.
I have to add that this does not occur every time. Sometimes the resource is
recognized immediately by R#. But I haven't detected a pattern yet.


My guess is: If you rename a resource key, VS's renaming feature kicks
in and checks the source for references to the key. R# seems to catch
that one in most cases. However, I'm not 100% sure, either :)

0
Comment actions Permalink

Sergey V. Coox (JetBrains) wrote:

Patrick,

Could You provide us some more details? What type of project do You use,
what type of resource?


One more: If you have a custom resource file and rename the folder that
hosts the resource file, this causes VS to change the namespace of the
desiger class. As R# doesn't get that too, it get's really annoying
because R# always displays popups to import the old namespace (that
doesn't even exist anymore). A fix would be nice :)

Cheers,
Philipp

0
Comment actions Permalink

Philipp,
A request into the tracker would be REALLY nice just not to miss the
problem.

--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

Philipp,

could You create a sample solution, pls.

--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com


0

Please sign in to leave a comment.